Fatal error 'break' not in the 'loop' or 'switch' context Fatal error 'break' not in the 'loop' or 'switch' context
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Fatal error 'break' not in the 'loop' or 'switch' context

Started by Mag, March 05, 2018, 08:39:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mag

Hi,

When trying to upload photos, I get the following error message:
Fatal error: 'break' not in the 'loop' or 'switch' context in /home2/venia/public_html/galerija/include/picmgmt.inc.php on line 588

Could you please advise how to fix the issue? The version I'm using is 1.5.8.

Thank you.

phill104

Upgrading should fix that. You are a very long way behind. I would recommend jumping to 1.6.x now if your themes and plugins are compatible
It is a mistake to think you can solve any major problems just with potatoes.

ron4mac

That error would occur if your host is now use PHP 7 on your site. You should upgrade as soon as possible to CPG 1.6.x as it is the only version that fully works with PHP 7. Perhaps your host has a way they can allow you to run an older (5.x) version of PHP until you get everything brought up to date.