I recently migrated a WordPress install from a shared managed host (cPanel) to a VPS. I first installed WordPress on the new server, then installed Migrate Guru and then migrated the install over to the new server.
Everything worked really well, there is just one issue. When I look at the "Site Health" tab I get the following "Critical Issue":
"A plugin has prevented updates by disabling wp_version_check()."
This is the only critical issue the WordPress install shows and it wasn't there before the migration.
What I tried so far to fix it without success:
- Cleared the install and repeat the migration
- Deactivated all plugins
- Deleted all plugins
- Switched to a basic twenty theme
- Installed "Health Check & Troubleshooting" and activated the troubleshooting feature
None of this helped, it still shows them same error. My new host looked into it and said that they've cross checked the possible logs and syntax of the web application in regards with the error shown in the site health tab but weren't able to find any error based on the event.
EDIT: I added the plugin WP Control to see if I can run wp_version_check() manually and I couldn't. Other cron events like wp_update_plugins also "Failed to execute" when I tried running them manually.
I added the following line to the wp-config file: define('ALTERNATE_WP_CRON', true)
Now running those cron events manually worked. However, the initial site health issue still persists.
Next I removed the above line from the wp-config file and now the critical site health issue is gone, but two new critical site health issues show:
"The REST API encountered an error"
"Your site could not complete a loopback request"
Both show the following error in the description:
"Error: cURL error 28: Operation timed out after 10000 milliseconds... (http_request_failed)"
EDIT: Now, without changing anything the two new Site Health issues disappear and the old one is back: "A plugin has prevented updates by disabling wp_version_check()."