Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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. 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...