WordPress Toolkit error: Call to a member function do_action()

Created:

2016-12-18 07:23:51 UTC

Modified:

2017-08-08 13:45:19 UTC

2

Was this article helpful?


Have more questions?

Submit a request

WordPress Toolkit error: Call to a member function do_action()

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk Onyx for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Symptoms

  • Unable to install WordPress:

    PHP Fatal error: Call to a member function do_action() on a non-object in /var/www/vhosts/example.com/httpdocs/wp-includes/plugin.php on line 453 Fatal error: Call to a member function do_action() on a non-object in /var/www/vhosts/example.com/httpdocs/wp-includes/plugin.php on line 453
  • WordPress has been upgraded to the version 4.7. When trying to access WordPress Toolkit, the following error appears:

    PHP Fatal error: Uncaught Error: Call to a member function do_action() on array in /var/www/vhosts/example.com/httpdocs/wp-includes/plugin.php:453

    Stack trace: #0 /var/www/vhosts/example.com/httpdocs/wp-settings.php(433): do_action('after_setup_the...') #1 /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php(1015): require('/var/www/vhosts...') #2 /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php(959): WP_CLI\\Runner->load_wordpress() #3 /usr/share/plesk-wp-cli/php/wp-cli.php(21): WP_CLI\\Runner->start() #4 /usr/share/plesk-wp-cli/php/boot-fs.php(24): include('/usr/share/ples...') #5 {main} thrown in /var/www/vhosts/example.com/httpdocs/wp-includes/plugin.php on line 453

Cause

WordPress 4.7 is not supported by the current Plesk configuration.

WordPress 4.7 is supported starting from:

  • Plesk 12.0 with MU#96

  • Plesk 12.5 with MU#54

  • Plesk Onyx with WordPress Toolkit 1.2.2

Resolution

  1. Install the latest Plesk updates according to [KB128626]Using Micro-Updates in Plesk 11.x and 12.x

  2. Click 'Synchronize' option in WordPress instance for the affected domain through Plesk UI.

Have more questions? Submit a request
Please sign in to leave a comment.