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

Error with loading plugin #83

Closed
SuperAdam47 opened this issue Sep 7, 2018 · 4 comments
Closed

Error with loading plugin #83

SuperAdam47 opened this issue Sep 7, 2018 · 4 comments
Labels
enhancement New feature or request Ready for testing

Comments

@SuperAdam47
Copy link

[11:14:43] [Server thread/INFO]: Enabling Festival v1.0.7.5-dev
[11:14:43] [Server thread/CRITICAL]: ErrorException: "Invalid argument supplied for foreach()" (EXCEPTION) in "Festival-master/src/genboy/Festival/Main" at line 132
[11:14:43] [Server thread/DEBUG]: #0 Festival-master/src/genboy/Festival/Main(132): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string Invalid argument supplied for foreach(), string C:\Users\aronf\Desktop\yedeksetup\test sunucu\plugins\Festival-master\src\genboy\Festival\Main.php, integer 132, array Array())
[11:14:43] [Server thread/DEBUG]: #1 src/pocketmine/plugin/PluginBase(111): genboy\Festival\Main->onEnable()
[11:14:43] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginManager(422): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[11:14:43] [Server thread/DEBUG]: #3 src/pocketmine/Server(2156): pocketmine\plugin\PluginManager->enablePlugin(genboy\Festival\Main object)
[11:14:43] [Server thread/DEBUG]: #4 src/pocketmine/Server(2142): pocketmine\Server->enablePlugin(genboy\Festival\Main object)
[11:14:43] [Server thread/DEBUG]: #5 src/pocketmine/Server(1882): pocketmine\Server->enablePlugins(integer 1)
[11:14:43] [Server thread/DEBUG]: #6 src/pocketmine/PocketMine(246): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\aronf\Desktop\yedeksetup\test sunucu, string C:\Users\aronf\Desktop\yedeksetup\test sunucu\plugins)
[11:14:43] [Server thread/DEBUG]: #7 C:/Users/aronf/Desktop/yedeksetup/test sunucu/PocketMine-MP.phar(1): require_once(string phar://C:/Users/aronf/Desktop/yedeksetup/test sunucu/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

@genboy
Copy link
Owner

genboy commented Sep 7, 2018

@SuperAdam47 Hi, this error is related to the areas.json file that could not be read properly on startup. If you've edited or changed areas.json there might be a typo, or maybe it wasn't saved properly (by php on the server). Can you check the areas.json code? Or send it here, i can take a look.

@SuperAdam47
Copy link
Author

Festival.zip

@genboy
Copy link
Owner

genboy commented Sep 7, 2018

@SuperAdam47 Try remove the areas.json file (it's empty). Then restart.
I made a fix for checking empty area data to prevent this error, https://github.com/genboy/Festival

@genboy genboy added enhancement New feature or request Ready for testing labels Sep 7, 2018
@SuperAdam47
Copy link
Author

Fixed the bug thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Ready for testing
Projects
None yet
Development

No branches or pull requests

2 participants