Jump to content

Site offline (urgent)


Peter Knight
 Share

Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

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