forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: Mag on March 05, 2018, 08:39:10 pm

Title: Fatal error 'break' not in the 'loop' or 'switch' context
Post by: Mag on March 05, 2018, 08:39:10 pm
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.
Title: Re: Fatal error 'break' not in the 'loop' or 'switch' context
Post by: phill104 on March 05, 2018, 08:48:31 pm
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
Title: Re: Fatal error 'break' not in the 'loop' or 'switch' context
Post by: ron4mac on March 05, 2018, 10:09:36 pm
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.