Peter Knight Posted May 15, 2017 Share Posted May 15, 2017 Just tried installing a Module (AutoSmush) on one of my sites and am now getting following error Quote Fatal error: 'continue' not in the 'loop' or 'switch' context in /var/www/vhosts/domain.com/httpdocs/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module on line 651 It was a 3.0.21 site running on PHP 7.0.18 Any tips? I can't find any references to this error online. Cheers Link to comment Share on other sites More sharing options...
kongondo Posted May 15, 2017 Share Posted May 15, 2017 In a hurry, but maybe this helps... http://stackoverflow.com/questions/34871198/fatal-error-break-not-in-the-loop-or-switch-context-in Link to comment Share on other sites More sharing options...
Peter Knight Posted May 15, 2017 Author Share Posted May 15, 2017 Thanks @kongondo I tried that in tandem with switching to 5.6.30 and something worked. Site back online now. On a side note, I'm not sure why the site crapped out and threw an upgrade warning when I wasn't upgrading. Ah well. Link to comment Share on other sites More sharing options...
ryan Posted May 15, 2017 Share Posted May 15, 2017 Peter, it sounds like you might have an older version of the ProcessWireUpgrade module. It had a bug in it that PHP versions prior to 7.x appear to have ignored, so it doesn't show up except in PHP 7.x versions. If you grab the current version of the ProcessWireUpgrade module and replace the files in /site/modules/ProcessWireUpgrade/, that should fix it. Alternatively, you could just delete the module files and install the upgrade later. If neither of these fixes it, try deleting the /site/assets/cache/FileCompiler/ directory as well. Link to comment Share on other sites More sharing options...
Peter Knight Posted May 15, 2017 Author Share Posted May 15, 2017 Thanks Ryan Will try that laters. Just backing up everything for the moment and relieved to have it back. Appreciate the advice though. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now