But I have the following error:
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Error execution command 'register'' with parameters array (\n 0 => \n array (\n 'user' => 'admin',\n 'server' => 'http://192.168.0.100:4560',\n 'password' => 'pessek&12',\n ),\n 1 => \n array (\n 'host' => 'esfam.auf.org',\n 'user' => 'Ivan',\n 'password' => 'someStrongPassword',\n ),\n). Response: ' in /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php:183\nStack trace:\n#0 /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/Mixins/UserTrait.php(64): GameNet\Jabber\RpcClient->sendRequest('register', Array)\n#1 /var/www/html/php-jabber-rpc/index.php(15): GameNet\Jabber\RpcClient->createUser('Ivan', 'someStrongPassw...')\n#2 {main}\n thrown in /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php on line 183
When I check my ejabberd log I have the following entries:
[warning] <0.623.0>@ejabberd_xmlrpc:build_fault_response:386 Error -118
A problem '{error,invalid_account_data}' occurred executing the command register with arguments
[{host,<<"esfam.auf.org">>},
{user,<<"Ivan">>},
{password,<<"someStrongPassword">>}]
Could someone help me ? I dont know what's wrong with my settings.
hello every I am using php-jabber-rpc with ejabberd ejabberd 16.01. My source code looks as followed:
require 'vendor/autoload.php';
$rpc = new \GameNet\Jabber\RpcClient([ 'server' => 'http://192.168.0.100:4560', 'host' => 'esfam.auf.org', 'username' => 'admin', 'password' => 'pessek&12', 'debug' => true, ]); $rpc->createUser('Ivan', 'someStrongPassword');
But I have the following error: PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Error execution command 'register'' with parameters array (\n 0 => \n array (\n 'user' => 'admin',\n 'server' => 'http://192.168.0.100:4560',\n 'password' => 'pessek&12',\n ),\n 1 => \n array (\n 'host' => 'esfam.auf.org',\n 'user' => 'Ivan',\n 'password' => 'someStrongPassword',\n ),\n). Response: ' in /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php:183\nStack trace:\n#0 /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/Mixins/UserTrait.php(64): GameNet\Jabber\RpcClient->sendRequest('register', Array)\n#1 /var/www/html/php-jabber-rpc/index.php(15): GameNet\Jabber\RpcClient->createUser('Ivan', 'someStrongPassw...')\n#2 {main}\n thrown in /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php on line 183
When I check my ejabberd log I have the following entries:
[warning] <0.623.0>@ejabberd_xmlrpc:build_fault_response:386 Error -118 A problem '{error,invalid_account_data}' occurred executing the command register with arguments [{host,<<"esfam.auf.org">>}, {user,<<"Ivan">>}, {password,<<"someStrongPassword">>}]
Could someone help me ? I dont know what's wrong with my settings.
Thanks a lot.