Staff Talk
 
BACK
  แก้ปัญา php กับ wordpress cherry plugin

Date : 2020-04-16 Time : 11:12:03

Switched my server to PHP 7.1 and the site crashed, here's the error I got:

Fatal Error (E_COMPILE_ERROR): 'continue' not in the 'loop' or 'switch' context occurred in wp-content/plugins/cherry-plugin/includes/widgets/widgets-manager.php on line 563.

Switched back to PHP 5.6 and it worked again. Is there a fix yet for 7.1? I need to get that server upgraded.


*********************************************************************


Change line 564 of /plugins/cherry-plugin/includes/widgets/widgets-manager.php from:

if ( !isset($wp_registered_widgets[$id]) ) continue;
to
if ( !isset($wp_registered_widgets[$id]) ) return false;



From Author a ( a )



Add Your Comment :
Name :
E-mail :
  ย่อหน้า ตัวหนา ตัวยก เส้นใต้ตัวห้อย ตัวหนังสือเรืองแสง ตัวหนังสือมีเงา ตัวเอียง สีแดง สีเขียว สีน้ำเงิน  
  56968  
 
Message :
Picture(Not More Than 50 k):
  Confirm that not spam
 

 

Back To Comment