1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved ErrorException: "Object of class SQLite3Result could not be converted to int" (EXCEPTION)

Discussion in 'Plugin Help' started by TeraCube, Oct 9, 2018.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    what is the problem ?
    I opened an issue but SonsaYT said that he told me he did not have this problem
    thanks

    Code:
    2018-10-09 [18:12:09] [Server thread/INFO]: [18:12:09] Aqoi47 en y [-]
    2018-10-09 [18:12:09] [Server thread/INFO]: Aqoi79 en y[/9X.XX.XXX.XXX:37028] logged out due to Kicked by admin. Reason: You are banned by Player03 for 30 day/s, 0 hour/s, 1 minute/s.
    Reason: x-ray
    2018-10-09 [18:12:09] [Server thread/INFO]: Aqoi79 en y has been banned by Player03 for 30 day/s, 0 hour/s, 1 minute/s. Reason: x-ray
    2018-10-09 [18:12:09] [Server thread/CRITICAL]: ErrorException: "Object of class SQLite3Result could not be converted to int" (EXCEPTION) in "TempBanUI_dev-54.phar/src/SonsaYT/TempBanUI/Main" at line 72
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #0 TempBanUI_dev-54.phar/src/SonsaYT/TempBanUI/Main(72): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Object of class SQLite3Result could not be converted to int, string phar:///home/myserver/plugins/TempBanUI_dev-54.phar/src/SonsaYT/TempBanUI/Main.php, integer 72, array Array())
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #1 FormAPI_dev-7.phar/src/jojoe77777/FormAPI/Form(46): SonsaYT\TempBanUI\Main->SonsaYT\TempBanUI\{closure}(pocketmine\Player object, array Array())
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #2 src/pocketmine/Player(3386): jojoe77777\FormAPI\Form->handleResponse(pocketmine\Player object, array Array())
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(242): pocketmine\Player->onFormSubmit(integer 0, array Array())
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(pocketmine\network\mcpe\protocol\ModalFormResponsePacket object)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\ModalFormResponsePacket object)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #8 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/RakLibInterface(161): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #10 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 90.35.180.111 60933, raklib\protocol\EncapsulatedPacket object, integer 0)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(102): raklib\server\ServerHandler->handlePacket()
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #12 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(92): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #16 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1539101529.5659)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #17 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #18 src/pocketmine/Server(1700): pocketmine\Server->start()
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
    2018-10-09 [18:12:09] [Server thread/DEBUG]: #20 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    2018-10-09 [18:12:09] [RakLibServer thread/NOTICE]: Blocked 9X.XX.XXX.XXX for 5 seconds
     
  2. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Post the link or the phar of the plugin?
     
  3. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  4. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    TeraCube likes this.
  5. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    I haven't looked at formAPI much, but I would try simply returning if $result is an instance of
    SQLite3Result or null at line 67.
     
    TeraCube likes this.
  6. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Last edited: Oct 12, 2018
    TeraCube likes this.
  7. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  8. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    You could add return; btw.
     
  9. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.