code error updating to php 7.0
Hi,
Get the following errors when trying to update to php 7.0:
FILE: /home/shariwes/public_html/wp-content/themes/betheme/muffin-options/validation/preg_replace/validation_preg_replace.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
32 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
-----------------------------------------------------------------------------------------------------------------------------
and
FILE: /home/shariwes/public_html/wp-content/plugins/js_composer/js_composer.php
----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------
220 | ERROR | Visibility for magic method __sleep must be public. Found: private
----------------------------------------------------------------------------------
End Report 1492272046
Get the following errors when trying to update to php 7.0:
FILE: /home/shariwes/public_html/wp-content/themes/betheme/muffin-options/validation/preg_replace/validation_preg_replace.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
32 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
-----------------------------------------------------------------------------------------------------------------------------
and
FILE: /home/shariwes/public_html/wp-content/plugins/js_composer/js_composer.php
----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------
220 | ERROR | Visibility for magic method __sleep must be public. Found: private
----------------------------------------------------------------------------------
End Report 1492272046
Comments
I fixed the second code error myself, but when I contacted my site host for help on the first error, this was their response:
Thank you for contacting our Help Desk.
The error seems to be caused by the theme and the fact that the preg_replace() - /e modifier is removed since PHP 97.
To have the issue resolved, you should contact the theme's developers who should be able to easily resolve the issue for you.
This is error that needs fixing:
FILE: /home/shariwes/public_html/wp-content/themes/betheme/muffin-options/validation/preg_replace/validation_preg_replace.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
32 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0