Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

Invalid argument supplied for foreach() #25

Closed
LostInInaka opened this issue Aug 20, 2016 · 6 comments
Closed

Invalid argument supplied for foreach() #25

LostInInaka opened this issue Aug 20, 2016 · 6 comments
Labels

Comments

@LostInInaka
Copy link

v1.0.13 crashes on front page load

Whoops\Exception\ErrorException thrown with message "Invalid argument supplied for foreach()"

Stacktrace:
#16 Whoops\Exception\ErrorException in /var/www/public_html/classes/thesis/user/plugins/events/classes/events.php:297
#15 Whoops\Run:handleError in /var/www/public_html/classes/thesis/user/plugins/events/classes/events.php:297
#14 Events\Events:initEventStack in /var/www/public_html/classes/thesis/user/plugins/events/classes/events.php:216
#13 Events\Events:instances in /var/www/public_html/classes/thesis/user/plugins/events/events.php:196
#12 Grav\Plugin\EventsPlugin:onPagesInitialized in /var/www/public_html/classes/thesis/vendor/symfony/event-dispatcher/EventDispatcher.php:184
#11 call_user_func in /var/www/public_html/classes/thesis/vendor/symfony/event-dispatcher/EventDispatcher.php:184
#10 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /var/www/public_html/classes/thesis/vendor/symfony/event-dispatcher/EventDispatcher.php:46
#9 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /var/www/public_html/classes/thesis/vendor/rockettheme/toolbox/Event/src/EventDispatcher.php:23
#8 RocketTheme\Toolbox\Event\EventDispatcher:dispatch in /var/www/public_html/classes/thesis/system/src/Grav/Common/Grav.php:310
#7 Grav\Common\Grav:fireEvent in /var/www/public_html/classes/thesis/system/src/Grav/Common/Processors/PagesProcessor.php:18
#6 Grav\Common\Processors\PagesProcessor:process in /var/www/public_html/classes/thesis/system/src/Grav/Common/Grav.php:121
#5 Grav\Common\Grav:Grav\Common\{closure} in /var/www/public_html/classes/thesis/system/src/Grav/Common/Grav.php:396
#4 Grav\Common\Grav:Grav\Common\{closure} in /var/www/public_html/classes/thesis/system/src/Grav/Common/Grav.php:372
#3 call_user_func_array in /var/www/public_html/classes/thesis/system/src/Grav/Common/Grav.php:372
#2 Grav\Common\Grav:__call in /var/www/public_html/classes/thesis/system/src/Grav/Common/Grav.php:122
#1 Grav\Common\Grav:measureTime in /var/www/public_html/classes/thesis/system/src/Grav/Common/Grav.php:122
#0 Grav\Common\Grav:process in /var/www/public_html/classes/thesis/index.php:45

v1.0.12 was working find, and everything else works once the plugin is removed.

Any ideas?

@kalebheitzman
Copy link
Owner

Do you have any events defined?

@LostInInaka
Copy link
Author

LostInInaka commented Aug 20, 2016

I do not, was planning on doing that today - might that be the possible reason why it is faulting out?

edit: tried adding a simple event in one of the file - and produces the same error
edit 2: rolled back to 1.0.12 and no problems - loads just fine

@kalebheitzman
Copy link
Owner

I've been unable to reproduce this error. If you could zip your events directory up and let me look at it I might be able to figure out what's going on.

@Xarcell
Copy link

Xarcell commented Aug 20, 2016

I can confirm this error. This happens on a fresh install through softaculous, email plugin update, install date plugin, install event plugin, then crash.

A Test Site which may or may not be around when you check it: http://test-apps.xarcell-studios.com/grav/
PHP Info for the site: http://test-apps.xarcell-studios.com/php-info.php

@LostInInaka
Copy link
Author

@kalebheitzman I can, but it was a fresh download with no coding mods - but if you are still interested I am more than happy to zip it up for you

@kalebheitzman
Copy link
Owner

Fixed this with Release 1.0.14.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants