DaPigGuy / PiggyShopUI

An easy to use shop UI plugin for PocketMine-MP
Apache License 2.0
15 stars 18 forks source link

Crashes when server starts #49

Closed LeoWasCoding closed 1 year ago

LeoWasCoding commented 1 year ago

Fatal error: During inheritance of JsonSerializable: Uncaught ErrorException: Return type of DaPigGuy\PiggyShopUI\libs\jojoe77777\FormAPI\Form::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/libs/jojoe77777/FormAPI/Form.php:53 Stack trace:

0 phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/libs/jojoe77777/FormAPI/Form.php(10): pocketmine\errorhandler\ErrorToExceptionHandler::handle(8192, 'Return type of ...', 'phar:///home/co...', 53)

1 phar:///home/container/PocketMine-MP.phar/vendor/pocketmine/classloader/src/BaseClassLoader.php(93): include('phar:///home/co...')

2 phar:///home/container/PocketMine-MP.phar/vendor/pocketmine/classloader/src/BaseClassLoader.php(83): BaseClassLoader->loadClass('DaPigGuy\PiggyS...')

3 [internal function]: BaseClassLoader->{closure}('DaPigGuy\PiggyS...')

4 phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/PiggyShopUI.php(41): class_exists('DaPigGuy\PiggyS...')

5 phar:///home/container/PocketMine-MP.phar/src/plugin/PluginBase.php(118): DaPigGuy\PiggyShopUI\PiggyShopUI->onEnable()

6 phar:///home/container/PocketMine-MP.phar/src/plugin/PluginManager.php(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)

7 phar:///home/container/PocketMine-MP.phar/src/Server.php(1402): pocketmine\plugin\PluginManager->enablePlugin(Object(DaPigGuy\PiggyShopUI\PiggyShopUI))

8 phar:///home/container/PocketMine-MP.phar/src/Server.php(1037): pocketmine\Server->enablePlugins(Object(pocketmine\plugin\PluginEnableOrder))

9 phar:///home/container/PocketMine-MP.phar/src/PocketMine.php(336): pocketmine\Server->__construct(Object(BaseClassLoader), Object(pocketmine\utils\MainLogger), '/home/container...', '/home/container...')

10 phar:///home/container/PocketMine-MP.phar/src/PocketMine.php(359): pocketmine\server()

11 /home/container/PocketMine-MP.phar(11): require('phar:///home/co...')

12 {main} in phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/libs/jojoe77777/FormAPI/Form.php on line 10

[15:44:45.216] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [15:44:45.223] [Server thread/EMERGENCY]: Please upload the "/home/container/crashdumps/Wed_May_24-15.44.45-UTC_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. Tue_May_23-16.19.28-UTC_2023.log

SillierShark195 commented 1 year ago

Fatal error: During inheritance of JsonSerializable: Uncaught ErrorException: Return type of DaPigGuy\PiggyShopUI\libs\jojoe77777\FormAPI\Form::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/libs/jojoe77777/FormAPI/Form.php:53 Stack trace: #0 phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/libs/jojoe77777/FormAPI/Form.php(10): pocketmine\errorhandler\ErrorToExceptionHandler::handle(8192, 'Return type of ...', 'phar:///home/co...', 53) #1 phar:///home/container/PocketMine-MP.phar/vendor/pocketmine/classloader/src/BaseClassLoader.php(93): include('phar:///home/co...') #2 phar:///home/container/PocketMine-MP.phar/vendor/pocketmine/classloader/src/BaseClassLoader.php(83): BaseClassLoader->loadClass('DaPigGuy\PiggyS...') #3 [internal function]: BaseClassLoader->{closure}('DaPigGuy\PiggyS...') #4 phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/PiggyShopUI.php(41): class_exists('DaPigGuy\PiggyS...') #5 phar:///home/container/PocketMine-MP.phar/src/plugin/PluginBase.php(118): DaPigGuy\PiggyShopUI\PiggyShopUI->onEnable() #6 phar:///home/container/PocketMine-MP.phar/src/plugin/PluginManager.php(454): pocketmine\plugin\PluginBase->onEnableStateChange(true) #7 phar:///home/container/PocketMine-MP.phar/src/Server.php(1402): pocketmine\plugin\PluginManager->enablePlugin(Object(DaPigGuy\PiggyShopUI\PiggyShopUI)) #8 phar:///home/container/PocketMine-MP.phar/src/Server.php(1037): pocketmine\Server->enablePlugins(Object(pocketmine\plugin\PluginEnableOrder)) #9 phar:///home/container/PocketMine-MP.phar/src/PocketMine.php(336): pocketmine\Server->__construct(Object(BaseClassLoader), Object(pocketmine\utils\MainLogger), '/home/container...', '/home/container...') #10 phar:///home/container/PocketMine-MP.phar/src/PocketMine.php(359): pocketmine\server() #11 /home/container/PocketMine-MP.phar(11): require('phar:///home/co...') #12 {main} in phar:///home/container/plugins/PiggyShopUI_dev-74.phar/src/DaPigGuy/PiggyShopUI/libs/jojoe77777/FormAPI/Form.php on line 10 [15:44:45.216] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [15:44:45.223] [Server thread/EMERGENCY]: Please upload the "/home/container/crashdumps/Wed_May_24-15.44.45-UTC_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. Tue_May_23-16.19.28-UTC_2023.log

Fix by ur self is easy

LeoWasCoding commented 1 year ago

Im asking for help because idk. Mind telling me how?

SillierShark195 commented 1 year ago

Im asking for help because idk. Mind telling me how?

Cool name tho, because im good guy discord me

My discord id 520937655119118336

LeoWasCoding commented 1 year ago

Im asking for help because idk. Mind telling me how?

Cool name tho, because im good guy discord me

My discord id 520937655119118336

Added

Aericio commented 1 year ago

please check if the latest build works https://poggit.pmmp.io/ci/DaPigGuy/PiggyShopUI/~/dev:84

LeoWasCoding commented 1 year ago

please check if the latest build works https://poggit.pmmp.io/ci/DaPigGuy/PiggyShopUI/~/dev:84

Tried all of them to the oldest and to the newest. No use.

Aericio commented 1 year ago

image working fine for me.

Aericio commented 1 year ago

did you actually download the latest one image

LeoWasCoding commented 1 year ago

did you actually download the latest one image

New one came out huh imma download it

VortexPMMP commented 1 year ago

Just update the FormAPI DaPigGuy/FormAPI-4.0.0/Form.php Line 53

Add : mixed next to jsonSerialize()

VortexPMMP commented 1 year ago

It would be : array hehe

Aericio commented 1 year ago

Resolved in v3.0.3