The plugin doesn't work on PHP version 7
-
Dear-,
I install PHP version 7 and get this error:
Parse error: syntax error, unexpected ‘new’ (T_NEW) in wordpress\wp-content\plugins\exec-php\exec-php.php on line 22Could you please upgrade this plugin to fix it?
Thank you.
-
I use ezphp plugin with 1and 1 .
still working but I did have to halt / rename a few plugings to get my site past all the errors. at startup.In exec-php.php, includes/admin.php, includes/ajax.php, includes/cache.php, includes/config_ui.php, includes/const.php replace any
=& new
by= new
. And the plugin works like a charm again.@ditler’s solution worked for me. However, I also needed to replace
=& new
with= new
in includes/manager.php.thx
I will do the manual fix, but it will be great to have a new official version of this plugin!
I got the following report from another plugin:FILE: exec-php/includes/option.php
————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————-
29 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
————————————————————————————-FILE: exec-php/includes/script.php
————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————-
20 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
————————————————————————————-FILE: exec-php/includes/usermeta.php
—————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————
24 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
—————————————————————————————FILE: exec-php/includes/config_ui.php
—————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————-
30 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
—————————————————————————————-FILE: exec-php/includes/cache.php
—————————————————————————————————————
FOUND 3 ERRORS AFFECTING 3 LINES
—————————————————————————————————————
20 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
22 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
39 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
—————————————————————————————————————FILE: exec-php/includes/runtime.php
————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————–
21 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
————————————————————————————–FILE: exec-php/includes/style.php
————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————
12 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
————————————————————————————FILE: exec-php/includes/manager.php
—————————————————————————————————————
FOUND 5 ERRORS AFFECTING 5 LINES
—————————————————————————————————————
25 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
36 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
37 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
38 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
39 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
—————————————————————————————————————FILE: exec-php/includes/ajax.php
—————————————————————————————————————
FOUND 2 ERRORS AFFECTING 2 LINES
—————————————————————————————————————
21 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
64 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
—————————————————————————————————————FILE: exec-php/includes/write_ui.php
—————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————
26 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
—————————————————————————————FILE: exec-php/includes/admin.php
—————————————————————————————————————
FOUND 7 ERRORS AFFECTING 7 LINES
—————————————————————————————————————
37 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
53 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
56 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
57 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
63 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
64 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
79 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
—————————————————————————————————————FILE: exec-php/includes/l10n.php
————————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————————————-
33 | WARNING | Function name “__s” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
————————————————————————————————————————————-FILE: exec-php/includes/user_ui.php
————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————–
23 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
————————————————————————————–FILE: exec-php/exec-php.php
—————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————
22 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and forbidden in PHP 7.0
—————————————————————————————————————Well I have updated to ezPHP at the end, it is working well and compatible with PHP7. I guess this plugin is not maintained anymore.
Hello,
I face the same issue. My hoster is 1 and 1; since they migrate to the version 7 of PHP, I was unable to access to my website main content as my web site is mostly based on PHP even if I use WordPress.
I Will try to install ezPHP and get back to you for feedback.
- The topic ‘The plugin doesn't work on PHP version 7’ is closed to new replies.