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

grav.CRITICAL: 'break' not in the 'loop' or 'switch' context #1579

Closed
jorgemfm opened this issue Jul 21, 2017 · 0 comments
Closed

grav.CRITICAL: 'break' not in the 'loop' or 'switch' context #1579

jorgemfm opened this issue Jul 21, 2017 · 0 comments

Comments

@jorgemfm
Copy link

jorgemfm commented Jul 21, 2017

EDIT: Just realized this is an error on the snappygrav plugin. Thank you.

Hi,

After upgrade from v1.2.4 to v1.3.1 I get this error:

grav.CRITICAL: 'break' not in the 'loop' or 'switch' context - Trace: #0 /var/www/grav/vendor/filp/whoops/src/Whoops/Run.php(382): Whoops\Run->handleError(64, ''break' not in ...', '/var/www/grav...', 273) #1 /var/www/grav/system/src/Grav/Common/Errors/SystemFacade.php(36): Whoops\Run->handleShutdown() #2 [internal function]: Grav\Common\Errors\SystemFacade handleShutdown() #3 {main} [] []

Apache error log, has the missing part of the grav.log:

PHP Fatal error: 'break' not in the 'loop' or 'switch' context in /var/www/grav/user/plugins/snappygrav/classes/snappymanager.php on line 273

Apparently since 7.0 break statment are only allowed inside for, foreach, while, do-while or switch structure.

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

No branches or pull requests

1 participant