Title: The plugin doesn&#039;t work on PHP version 7
Last modified: August 31, 2016

---

# The plugin doesn't work on PHP version 7

 *  [cuongvu](https://wordpress.org/support/users/cuongvu/)
 * (@cuongvu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-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 22
 * Could you please upgrade this plugin to fix it?
 * Thank you.
 * [https://wordpress.org/plugins/exec-php/](https://wordpress.org/plugins/exec-php/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [semky](https://wordpress.org/support/users/semky/)
 * (@semky)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-6981153)
 * 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.
 *  [ditler](https://wordpress.org/support/users/ditler/)
 * (@ditler)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-6981204)
 * 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.
 *  [peter_quinn](https://wordpress.org/support/users/peter_quinn/)
 * (@peter_quinn)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-8161774)
 * [@ditler](https://wordpress.org/support/users/ditler/)’s solution worked for 
   me. However, I also needed to replace `=& new` with `= new` in includes/manager.
   php.
 *  [naufal66262](https://wordpress.org/support/users/naufal66262/)
 * (@naufal66262)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-8167900)
 * thx
 *  [Fabian](https://wordpress.org/support/users/carmano/)
 * (@carmano)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-8229965)
 * 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 —————————————————————————————————————
 *  [Fabian](https://wordpress.org/support/users/carmano/)
 * (@carmano)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-8231040)
 * 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.
 *  [kesak](https://wordpress.org/support/users/kesak/)
 * (@kesak)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-8291730)
 * 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.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘The plugin doesn't work on PHP version 7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/exec-php.svg)
 * [Exec-PHP](https://wordpress.org/plugins/exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exec-php/reviews/)

 * 7 replies
 * 7 participants
 * Last reply from: [kesak](https://wordpress.org/support/users/kesak/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/the-plugin-doesnt-work-on-php-version-7/#post-8291730)
 * Status: not resolved