All updates (plugins or WordPress) fail with critical error
-
I am migrating a site over to a cPanel server from Flywheel and after moving the site over I’m in a situation where all of the updates show a fatal error.
When clicking upgrade on any plugin, it comes back with Update failed: There has been a critical error on this website. Please check your site admin email inbox for instructions.Learn more about troubleshooting WordPress.
I can look in the wp-content/upgrade directory and the upgrade file is there. It then is removing the outdated info from the plugin folder under plugins and then it stops without moving the files over. I can move the files over manually and the plugin is updated. But the automated process doesn’t work.
If I want to upgrade WordPress itself, I can start the process and I see the files get downloaded into the upgrade directory, the .maintenance file is created, the lock on the database is created, then it hangs.
The upgrade directory is set to 755 and owned by the owner of the site (and it can write to this directory just fine). The plugins directory is owned by the right user and group and has 755 permissions. I deleted and recreated the upgrade folder but that didn’t change anything. I added a line in the wp-config.php to say DEFINE (‘WP_TEMP_DIR’ , ABSPATH . ‘wp-content/’);
I increased the memory through wp-config.php to 512M.
I’ve run out of ideas here.
- The topic ‘All updates (plugins or WordPress) fail with critical error’ is closed to new replies.