Closed LewBr closed 7 years ago
I have configured my database on config.yml but when i try to open my server i have this error on console:
16.09 07:57:14 [Server] Server thread/CRITICAL ErrorException: "mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given" (EXCEPTION) in "ServerAuth/src/ServerAuth/ServerAuth" at line 219 16.09 07:57:14 [Server] Server thread/DEBUG #0 (): pocketmine{closure}(integer 2, string mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given, string /plugins/ServerAuth/src/ServerAuth/ServerAuth.php, integer 219, array Array()) 16.09 07:57:14 [Server] Server thread/DEBUG #1 ServerAuth/src/ServerAuth/ServerAuth(219): mysqli_num_rows(boolean ) 16.09 07:57:14 [Server] Server thread/DEBUG #2 ServerAuth/src/ServerAuth/ServerAuth(289): ServerAuth\ServerAuth->initializeDatabase(string mysql.envioushost.com, integer 3306, string mcus9446, string ***, string auth, string srvauth) 16.09 07:57:14 [Server] Server thread/DEBUG #3 src/pocketmine/plugin/PluginBase(90): ServerAuth\ServerAuth->onEnable() 16.09 07:57:14 [Server] Server thread/DEBUG #4 DevTools.phar/src/FolderPluginLoader/FolderPluginLoader(125): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 16.09 07:57:14 [Server] Server thread/DEBUG #5 src/pocketmine/plugin/PluginManager(603): FolderPluginLoader\FolderPluginLoader->enablePlugin(ServerAuth\ServerAuth object) 16.09 07:57:14 [Server] Server thread/DEBUG #6 src/pocketmine/Server(1926): pocketmine\plugin\PluginManager->enablePlugin(ServerAuth\ServerAuth object) 16.09 07:57:14 [Server] Server thread/DEBUG #7 src/pocketmine/Server(1912): pocketmine\Server->enablePlugin(ServerAuth\ServerAuth object) 16.09 07:57:14 [Server] Server thread/DEBUG #8 DevTools.phar/src/DevTools/DevTools(49): pocketmine\Server->enablePlugins(integer 0) 16.09 07:57:14 [Server] Server thread/DEBUG #9 src/pocketmine/plugin/PluginBase(90): DevTools\DevTools->onEnable() 16.09 07:57:14 [Server] Server thread/DEBUG #10 src/pocketmine/plugin/PharPluginLoader(122): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 16.09 07:57:14 [Server] Server thread/DEBUG #11 src/pocketmine/plugin/PluginManager(603): pocketmine\plugin\PharPluginLoader->enablePlugin(DevTools\DevTools object) 16.09 07:57:14 [Server] Server thread/DEBUG #12 src/pocketmine/Server(1926): pocketmine\plugin\PluginManager->enablePlugin(DevTools\DevTools object) 16.09 07:57:14 [Server] Server thread/DEBUG #13 src/pocketmine/Server(1912): pocketmine\Server->enablePlugin(DevTools\DevTools object) 16.09 07:57:14 [Server] Server thread/DEBUG #14 src/pocketmine/Server(1621): pocketmine\Server->enablePlugins(integer 0) 16.09 07:57:14 [Server] Server thread/DEBUG #15 src/pocketmine/PocketMine(541): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///custom7.phar/, string /, string /plugins/) 16.09 07:57:14 [Server] Server thread/DEBUG #16 /custom7.phar(1): require(string phar:///custom7.phar/src/pocketmine/PocketMine.php)
I have configured my database on config.yml but when i try to open my server i have this error on console:
16.09 07:57:14 [Server] Server thread/CRITICAL ErrorException: "mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given" (EXCEPTION) in "ServerAuth/src/ServerAuth/ServerAuth" at line 219 16.09 07:57:14 [Server] Server thread/DEBUG #0 (): pocketmine{closure}(integer 2, string mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given, string /plugins/ServerAuth/src/ServerAuth/ServerAuth.php, integer 219, array Array()) 16.09 07:57:14 [Server] Server thread/DEBUG #1 ServerAuth/src/ServerAuth/ServerAuth(219): mysqli_num_rows(boolean ) 16.09 07:57:14 [Server] Server thread/DEBUG #2 ServerAuth/src/ServerAuth/ServerAuth(289): ServerAuth\ServerAuth->initializeDatabase(string mysql.envioushost.com, integer 3306, string mcus9446, string ***, string auth, string srvauth) 16.09 07:57:14 [Server] Server thread/DEBUG #3 src/pocketmine/plugin/PluginBase(90): ServerAuth\ServerAuth->onEnable() 16.09 07:57:14 [Server] Server thread/DEBUG #4 DevTools.phar/src/FolderPluginLoader/FolderPluginLoader(125): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 16.09 07:57:14 [Server] Server thread/DEBUG #5 src/pocketmine/plugin/PluginManager(603): FolderPluginLoader\FolderPluginLoader->enablePlugin(ServerAuth\ServerAuth object) 16.09 07:57:14 [Server] Server thread/DEBUG #6 src/pocketmine/Server(1926): pocketmine\plugin\PluginManager->enablePlugin(ServerAuth\ServerAuth object) 16.09 07:57:14 [Server] Server thread/DEBUG #7 src/pocketmine/Server(1912): pocketmine\Server->enablePlugin(ServerAuth\ServerAuth object) 16.09 07:57:14 [Server] Server thread/DEBUG #8 DevTools.phar/src/DevTools/DevTools(49): pocketmine\Server->enablePlugins(integer 0) 16.09 07:57:14 [Server] Server thread/DEBUG #9 src/pocketmine/plugin/PluginBase(90): DevTools\DevTools->onEnable() 16.09 07:57:14 [Server] Server thread/DEBUG #10 src/pocketmine/plugin/PharPluginLoader(122): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 16.09 07:57:14 [Server] Server thread/DEBUG #11 src/pocketmine/plugin/PluginManager(603): pocketmine\plugin\PharPluginLoader->enablePlugin(DevTools\DevTools object) 16.09 07:57:14 [Server] Server thread/DEBUG #12 src/pocketmine/Server(1926): pocketmine\plugin\PluginManager->enablePlugin(DevTools\DevTools object) 16.09 07:57:14 [Server] Server thread/DEBUG #13 src/pocketmine/Server(1912): pocketmine\Server->enablePlugin(DevTools\DevTools object) 16.09 07:57:14 [Server] Server thread/DEBUG #14 src/pocketmine/Server(1621): pocketmine\Server->enablePlugins(integer 0) 16.09 07:57:14 [Server] Server thread/DEBUG #15 src/pocketmine/PocketMine(541): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///custom7.phar/, string /, string /plugins/) 16.09 07:57:14 [Server] Server thread/DEBUG #16 /custom7.phar(1): require(string phar:///custom7.phar/src/pocketmine/PocketMine.php)