• A heads up about a depreciated warning if you have wp-debug on, (The plugin still works ok)

    Deprecated: Assigning the return value of new by reference is deprecated in /my-host/public_html/wp-content/plugins/exec-php/exec-php.php on line 22

    Plugin version 4.9 WordPress 4.3.1 host running PHP Version 5.4.43

    line 22 of exec-php.php is

    $GLOBALS['g_execphp_manager'] =& new ExecPhp_Manager();

    any thoughts of a patch or alt plugin that could be used as a drop in replacement??

    https://www.ads-software.com/plugins/exec-php/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tastycarp

    (@tastycarp)

    Answering part of my own question after a bit of googling the issue looks to be the usage of =&

    $obj =& new MyClass();
    The ampersand is not required any more since php 5; you can simply write

    $obj = new MyClass();

    removing the & from every file that the error pops up on will see you modding lines on exec-php.php as well as admin.php ,ajax.php, cache.php and manager.php in the includes dir

    Doing that gets rid of the debug message and the plugin still works.

    That said, although this issue is not a deal breaker at the moment it is concerning using such an out of date plugin. Any suggestions of a better drop in replacement would be most welcome.

    Hey tastycarp – I re-uploaded the one that I had created many years ago, due to people emailing me about it. Seems the plugin still does the trick for several hundred thousand people, after 7 years of non-development. That’s staying power!

    Here’s the link:

    https://www.codingconcepts.net/exec-php.zip

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated Warning’ is closed to new replies.