Fatal error

Caitlin Neal asked 4 months ago

https://www.eolapower.com/  
The Cherry plugin is currently inactive because when I activate it I\’m getting a fatal error:  
 
Fatal error: \’continue\’ not in the \’loop\’ or \’switch\’ context in /home/southflc/public_html/wp-content/plugins/cherry-plugin.broken/includes/widgets/widgets-manager.php on line 563 The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.  
 
Please advise.

 
 

 

2 Answers
Gert Vernhout answered 4 months ago

Same here
Versie: 1.2.8.1 | Door Cherry Team. | Bezoek plugin site
 De plugin kon niet juist geladen worden en is gepauzeerd tijdens herstel mode.

Een fout van het type E_COMPILE_ERROR werd veroorzaakt op regelnummer 564 van het bestand /var/www/vhosts/pamakassar.nl/httpdocs/wp-content/plugins/cherry-plugin/includes/widgets/widgets-manager.php. Foutmelding: 'continue' not in the 'loop' or 'switch' context

Gert Vernhout answered 4 months ago

I changed line 564 in widgets-manager.php:
Old:
// if widget doesn’t exists – skip this iteration
if ( !isset($wp_registered_widgets[$id]) ) continue;
New:
// if widget doesn’t exists – skip this iteration
// if ( !isset($wp_registered_widgets[$id]) ) continue;
It looks to work for me

Your Answer

15 + 9 =