• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Plesk WordPress Manager Failing with WordPress 4.7 Upgrade

J.Wick

Regular Pleskian
Ran the upgrade on two domains and it killed both sites requiring a massive manual upgrade to bring them back online.

This is the error that showed during the upgrade and now shows when you enter the installation detail of the domain.

PHP Fatal error: Uncaught Error: Call to a member function do_action() on array in /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:453 Stack trace: #0 /var/www/vhosts/domain.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/domain.com/httpdocs/wp-includes/plugin.php on line 453 Fatal error: Uncaught Error: Call to a member function do_action() on array in /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:453 Stack trace: #0 /var/www/vhosts/domain.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/domain.com/httpdocs/wp-includes/plugin.php on line 453

Currently unable to apply further updates or security functions. I tried disconnected the sites and re-scanning, it did nothing.

Any suggestions on resolve this? Plesk Bug???
 
Looks like WordPress 4.7 is not supported by your current Plesk configuration.
Note, that 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
 
Hi, that didn't help
i installed the micro updates but error still exists(plesk 12.5 on CENTOS 7)
 
Hi,

i can confirm that the patch didn't help
After installation the lastes patches the error is still there
 

Attachments

  • os_pleskversion.png
    os_pleskversion.png
    16.2 KB · Views: 12
Had the error today about plugin.php file as well. I replaced the plugin.php file on the site with an issue with one of the plugin.php files from a site that was still on WP 4.6.1 and that gave me the ability to log into the site on 4.7.

Also had to go into wordpress on the upper right side of the domain info page and click synchronize for the site info to repopulate.
 
I confirm there most be a bug with the wordpress toolkit

Plesk-version 12.5.30 Update #54


On all installed wordpress sites user get:

PHP Fatal error: Call to a member function do_action() on a non-object in /var/www/vhosts/xxxxxxxx/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/xxxxxxxx/httpdocs/wp-includes/plugin.php on line 453
 
I confirm there most be a bug with the wordpress toolkit

Plesk-version 12.5.30 Update #54


On all installed wordpress sites user get:

PHP Fatal error: Call to a member function do_action() on a non-object in /var/www/vhosts/xxxxxxxx/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/xxxxxxxx/httpdocs/wp-includes/plugin.php on line 453

That is the same error I was receiving.
 
We were having the same problem and did the minor update. That did not work. Scanning for installations also did not work, but going to the individual WordPress sites and clicking refresh actually did work. Sound simple but it is working for us. (We are on Plesk 12.0)
 
I can also confirm this issue.

I am running: Centos 6.7 (Final) - 12.0.18 Update #95

I would make the jump and update my server to Plesk Onyx 17.0.17 but I fear it would have consequences which would render my clients unable to use their websites, plus reading the comments it seems it's doesn't fix the issue.

Edit:

I can confirm https://kb.plesk.com/en/128626 fixes the issue on my installation
 
Last edited:
The same here:


warning.png
PHP Fatal error: Uncaught Error: Call to a member function do_action() on array in /var/www/vhosts/mysite/httpdocs/wp-includes/plugin.php:453 Stack trace: #0 /var/www/vhosts/mysite/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/mysite/httpdocs/wp-includes/plugin.php on line 453 Fatal error: Uncaught Error: Call to a member function do_action() on array in /var/www/vhosts/mysite/httpdocs/wp-includes/plugin.php:453 Stack trace: #0 /var/www/vhosts/mysite/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/mysite/httpdocs/wp-includes/plugin.php on line 453
 
Hello,

From this stack trace I see wp-cli has version 0.24.0 but in Plesk 12.5 update #54 0.25.0 has been delivered.

Could you please check the version of package:
# rpm -q plesk-wp-cli
or
# dpkg -l plesk-wp-cli

Also the version of wp-cli is specified in file /usr/share/plesk-wp-cli/VERSION

Possibly you need to reinstall the latest update: # plesk installer --select-release-current --reinstall-patch --install-component base
 
Hello,

From this stack trace I see wp-cli has version 0.24.0 but in Plesk 12.5 update #54 0.25.0 has been delivered.

Could you please check the version of package:
# rpm -q plesk-wp-cli
or
# dpkg -l plesk-wp-cli

Also the version of wp-cli is specified in file /usr/share/plesk-wp-cli/VERSION

Possibly you need to reinstall the latest update: # plesk installer --select-release-current --reinstall-patch --install-component base

Thanks for the answer.
A yum upgrade and a reboot fixed the problem.
 
Hello,

From this stack trace I see wp-cli has version 0.24.0 but in Plesk 12.5 update #54 0.25.0 has been delivered.

Could you please check the version of package:
# rpm -q plesk-wp-cli
or
# dpkg -l plesk-wp-cli

Also the version of wp-cli is specified in file /usr/share/plesk-wp-cli/VERSION

Possibly you need to reinstall the latest update: # plesk installer --select-release-current --reinstall-patch --install-component base

Hi,
i has installed Plesk 12.5 but the reinstall-solution don't work for me.
After reinstall patch the wp-cli-Version is still 0.24. Plesk shows MA#56, so the reinstall has done only MA#56, i guess. Is that the reason, that wp-cli ist not updated, because the newer MA don't have that update included?

i'm not very firm with upadting Plesk manually, how can i reinstall MA#54? (and therefore MA#55 and MA#56 again)

Thx
marc
 
I can confirm, re-installing the micro updates and rebooting the server fixed the issue.

Thanks guys!
 
Hi,
but it don't work for me. I re-installed it twice and reboot the server. WP-cli is still 0.24!

i want to know, how i can install MA#54 instead of MA#56, what is the most recent update by now.
My assumption is, that newer MA's don't update WP-cli anymore, and so i have to try MA#54 instead of the recent version, or is that wrong?

This one:
# plesk installer --select-release-current --reinstall-patch --install-component base

installs only the most recent version of MA (MA#56), but how can i install MA#54?
 
Hi,
but it don't work for me. I re-installed it twice and reboot the server. WP-cli is still 0.24!

i want to know, how i can install MA#54 instead of MA#56, what is the most recent update by now.
My assumption is, that newer MA's don't update WP-cli anymore, and so i have to try MA#54 instead of the recent version, or is that wrong?

This one:
# plesk installer --select-release-current --reinstall-patch --install-component base

installs only the most recent version of MA (MA#56), but how can i install MA#54?

Hi,

Could you please provide your wp-cli package version and attach your Plesk Installer log?
 
Hello Custer,
installer log from update 14/01/2017 is attached. (i hope, it is the right one)
wp-cli Version is 0.24.0 last updated on 14/08/2016

thx
Marc
 

Attachments

  • plesk-installer.txt
    215.5 KB · Views: 2
Hello Custer,
installer log from update 14/01/2017 is attached. (i hope, it is the right one)
wp-cli Version is 0.24.0 last updated on 14/08/2016

thx
Marc
Hello Marc,

Provided log file doesn't contain information about what packages are installed/updated. Could you execute plesk installer with --debug option and provide /var/log/plesk/install/autoinstaller3.log?

Thanks,
 
Back
Top