admin管理员组文章数量:1316023
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"
and
"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()."
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"
and
"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()."
Share Improve this question edited Apr 24, 2020 at 16:33 Th526 asked Apr 24, 2020 at 0:40 Th526Th526 211 silver badge3 bronze badges 6 | Show 1 more comment3 Answers
Reset to default 1This might not be the issue, but I would install the All In One WP Security & Firewall plugin by "Tips and Tricks HQ" and use that plugin the check your file and directory permissions. Often times file permissions or also file ownership gets messed up in migrations. Seeing as you have deleted all plugins and are running the stock twenty something theme, it might be giving you a false error. Also, you could try reinstalling WP Core. That might help too. Just a thought.
Please check error.log
from your server if there is something like this:
AH01630: client denied by server configuration: /var/page/wp-admin/site-health.php, referer: https://yourwebsite/wp-admin/site-health.php?health-check-test-wp_version_check=1
Probably most people try to protect wp-admin
, by adding VPN IP address, but forgetting to add local server IP.
I had this same exact situation after moving my wp site from one server to another.
After 30 min. of searching, it dawned on my that the issue was I had changed the /etc/hosts file on my local machine to point to the new site but the actual server the site was on was still using the published DNS settings for the domain the site was using.
Modifying the /etc/hosts file on the server the wp site was hosted on to use the IP address of the server solved the problem as a temporary measure. The more permanent fix is to update the zone record for the domain to point to the new server.
本文标签: Critical Site Health Issue after WordPress Migration
版权声明:本文标题:Critical Site Health Issue after WordPress Migration 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741985372a2408643.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
mu-plugins
directory and see if there's maybe something in there? Additionally, check the wp-config.php file for this line:define(‘WP_AUTO_UPDATE_CORE’, false);
. That could also be the culprit. – Tony Djukic Commented Apr 24, 2020 at 17:11