• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Wordpress Toolkit Cache errors

theywill

Basic Pleskian
CentOS Linux 7.9.2009
Plesk Obsidian Version 18.0.41 Update #1

I'm having a problem with the Wordpress Toolkit on one particular domain/site/instance. First, the toolkit generates an error message as a matter of routine. It gets emailed to the end-client.

Website "[name]" (http://[domain]): Failed to reset cache for the instance #3: PHP Warning: Creating default object from empty value in /var/www/vhosts/[domain]/httpdocs/wp-content/plugins/levelup-core/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 29
...
#7 /var/www/vhosts/[domain]/httpd in /var/www/vhosts/[domain]/httpdocs/wp-content/plugins/levelup-core/post-types.php on line 580
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

Next, when I try to manually (command line) clear the cache or clone the site, I get a similar though different error.

Failed to reset cache for the instance #3: PHP Fatal error: Uncaught Error: Call to undefined function levelup_get_social_icons_data() in
...
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

The web site itself seems to be working fine. Wordpress and the theme it uses are fully updated.

Other Wordpress sites on the same server are not generating a similar error.

How can I get past this issue with the Toolkit cache?

Best regards,
James
 
According to the provided error messages, it seems there is some incompatibility between WordPress Toolkit and "levelup-core" plugin. Do you know anything additional about the plugin: where to take it from, how was it installed to WordPress site, are there any customizations in WordPress site code to enable the plugin? Any chance to temporary disable the plugin and check if it helps?
 
The plugin is part of the commercially purchased theme the site uses. It, along with the theme, was recently upgraded. The problem persisted before and after the recent update, but was not present a few years ago when the theme was first installed.

I suppose I could disable the theme and then run a manual cache clearing (plesk ext wp-toolkit --clear-cache -instance-id 3). I'll try that after hours, as I'm sure the site won't work without the core plugin.

When I searched this forum, I noticed that others have had similar problems, but there didn't appear to be a single remedy.

At one point, I manually edited the problem files, inserting an innocuous workaround. However, the wordpress toolkit just failed on other lines of the same site. I rolled everything back since it didn't work, and it made me wonder if there's something else entirely occurring, perhaps a problem with the toolkit.
 
The WordPress toolkit uses the WP-CLI utility to interact with WordPress sites, so to find out what the problem is, I suggest trying to interact with your WordPress installation using your own WP-CLI installation and the command:
Code:
php wp-cli.phar instance info
 
Last night I disabled the Level Up Core plug-in, per the suggestion. That did allow me to clear up the cache. It breaks the site though. So I had to re-enable it and now the Wordpress Toolkit is generating the error again. I suppose the thing to do is to detach the site from the kit... or spend a lot of time hand editing the plugin.
 
Back
Top