Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED cPanel WordPress Manager Error - "/usr/local/bin/php"

Discussion in 'General Discussion' started by CDT, Jun 3, 2019.

  1. CDT

    CDT Registered

    Joined:
    Jun 3, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    Greeting everyone...
    /etc/redhat-release:CentOS release 6.10 (Final)
    /usr/local/cpanel/version:11.80.0.11
    /var/cpanel/envtype:virtuozzo
    CPANEL=release

    I have a couple of Wordpress sites I installed "manually" (i.e. server side). I am wanting Wordpress Manager to recognize these sites... after running the "Discover Sites" I get the following error. Screenshot attached.

    "The system found a new WordPress site, “/home/alamojo/public_html/wp-config.php”, but could not make it manageable because of the following error: (XID csn2k9) “/usr/local/bin/php” reported error code “255” when it ended: "

    Wordpress also returns this error in error_log:
    "[04-Jun-2019 11:46:11 Pacific/Auckland] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in phar:///usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar/vendor/wp-cli/config-command/src/Config_Command.php(358) : eval()'d code:91
    Stack trace:
    #0 phar:///usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar/vendor/wp-cli/config-command/src/Config_Command.php(358): eval()
    #1 phar:///usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar/vendor/wp-cli/config-command/src/Config_Command.php(289): Config_Command::get_wp_config_vars()
    #2 [internal function]: Config_Command->list_(Array, Array)
    #3 phar:///usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(93): call_user_func(Array, Array, Array)
    #4 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
    #5 phar:///usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(449): call_user_func(Object(Closure), Array, Array)
    # in phar:///usr/local/cpanel/3rdparty/share/cpanel-wp-cli/wp-cli.phar/vendor/wp-cli/config-command/src/Config_Command.php(358) : eval()'d code on line 91
    "
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @CDT,

    Can you open a support ticket so we can take a closer look at your system to see why the Discover Sites feature in WordPress Manager isn't working as intended?

    You can post the ticket number here once it's opened and I'll link this forums thread to it.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. CDT

    CDT Registered

    Joined:
    Jun 3, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    Done
    Your Support Request ID is: 12503001
    Thankyou
     
  4. CDT

    CDT Registered

    Joined:
    Jun 3, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    This was resolved :) Very simple fix

    Thanks to
    JC Newton, Technical Analyst III / Migration Specialist, cPanel L.L.C.
     
    cPanelMichael likes this.
  5. CDT

    CDT Registered

    Joined:
    Jun 3, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    Also found the following in wp-config.php is a problem too and needs commenting out :)

    add_filter( 'auto_update_theme', '__return_false' );
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @CDT,

    I'm glad to see the issue was solved. Thanks for sharing the outcome!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice