Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating User #8

Closed
lakshmaji opened this issue May 29, 2016 · 3 comments
Closed

Creating User #8

lakshmaji opened this issue May 29, 2016 · 3 comments

Comments

@lakshmaji
Copy link

I am using the following code

require_once __DIR__.'/vendor/autoload.php';
// use \GameNet;

    $rpc = new \GameNet\Jabber\RpcClient([
        'server' => 'http://127.0.0.1:4560',
        'host' => 'lakki.com',
        'debug' => false,
    ]);

    //Create 2 new users with name `Ivan` and `Petr` with password `someStrongPassword`
    $rpc->createUser('Ivan', 'someStrongPassword');

When I'm trying to excute the script I was getting following error

Argument 1 passed to fXmlRpc\Transport\HttpAdapterTransport::__construct() must be an instance of Http\Message\MessageFactory, instance of Ivory\HttpAdapter\CurlHttpAdapter given, called in /var/www/html/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php on line 140 and defined in /var/www/html/php-jabber-rpc/vendor/lstrojny/fxmlrpc/src/fXmlRpc/Transport/HttpAdapterTransport.php on line 39

What is wrong in my script??

@gunblues
Copy link

gunblues commented Jun 5, 2016

I got the same error too.

@lakshmaji
Copy link
Author

@gunblues Hi , Have you got any solution to fix above issue

@gunblues
Copy link

gunblues commented Jun 6, 2016

@lakshmajim Hi, I haven't go any solution yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants