i have created hello elementor child theme and trying to add a code intof unctions.php file on child theme.whhile i try to update file, i got a error
Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.
so i found solution on that , i installed health check plugin when i checked health of my website. i got two critical error or issue.one of them is following
Error A plugin has prevented updates by disabling wp_version_check()
for that i am trying to find solution but didn’t get any solution
kindly asist
Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.
Warning Could not confirm that the wp_version_check() filter is available.
Passed No version control systems were detected.
Passed Your installation of WordPress doesn’t require FTP credentials to perform updates.
Passed All of your WordPress files are writable.`
What’s strange is that I currently have version 5.7.2 which I believe is the current version.
So I installed and ran the plugin from WordPress called SiteHealth. I disabled all my plugins (other than SiteHealth) and activates the Twenty Twenty One theme. I still have the same update error message problem. I also get an error message within SiteHealth “A plugin has prevented updates by disabling wp_version_check()”
How do I respond to these error messages? It’s confusing since I am updated to the latest version (I think).
]]>I ran some tests in site health and I have noticed when I enable your plugin I get an error Background updates are not working as expected
Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.
Error A plugin has prevented updates by disabling wp_version_check().
Passed No version control systems were detected.
Passed Your installation of WordPress doesn't require FTP credentials to perform updates.
Passed All of your WordPress files are writable.
If I disable it I get an error Your site could not complete a loopback request.
I have 5.6.1. WP.
]]>A plugin has prevented updates by disabling wp_version_check().
I searched where the error message originates and found that it is generated when the function test_wp_version_check_attached
cannot find a filter for the function wp_version_check
.
So I checked where this filter might be set and I found the following lines in wp-includes/update.php
close to the end of the file:
if ( ( ! is_main_site() && ! is_network_admin() ) || wp_doing_ajax() ) {
return;
}
add_action( 'admin_init', '_maybe_update_core' );
add_action( 'wp_version_check', 'wp_version_check' );
If I understand these lines correctly, there is a return
statement before add_action( 'wp_version_check', 'wp_version_check' );
can be executed, when either is_main_site()
or is_network_admin()
is false
. And since is_main_site()
is false for all of the subsites’ health check pages, this return
statement will always kick in for those.
For testing purposes, I tried the following:
if ( ( ! is_main_site() && ! is_network_admin() ) || wp_doing_ajax() ) {
add_action( 'wp_version_check', 'wp_version_check' );
return;
}
add_action( 'admin_init', '_maybe_update_core' );
and the error message on the health check page of all subsites disappeared.
This looks like a bug to me.
In case it is not, I am thankful for all and any hints of how to get rid of the error.
]]>I upgraded to WP 5.6, all plugins and themes were upgraded and everything works (I’m using WP as multisite)
However, the Site health shows me a “critical” about ” a plugin prevents wp_version_check()”. Disabling the plugins, grepping the code for wp_version_check – didn’t help and I couldn’t find anywhere of any code or plugin which can cause this issue.
How can I fix this problem?
]]>I’m using WP as a multisite. I’ve upgraded the WP to 5.6 including all the plugins, themes etc.
So far, the web sites works without any issues.
However, using the JetPack to check the health status, I’m getting an issue about wp_version_check (something is preventing the wp_version_check, I don’t have the message in English).
Using grep, I’ve searched my WP directory tree and the only places that wp_version_check found is in the wordpress itself and the JetPack plugin only, so I don’t think any plugin “messes” with wp_version_check.
Any suggestion how to fix this? is it a known issue? should I talk to the JetPack guys?
Thanks
]]>Background updates are not working as expected
Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.
Error A plugin has prevented updates by disabling wp_version_check().
Passed No version control systems were detected.
Passed Your installation of WordPress doesn’t require FTP credentials to perform updates.
Passed All of your WordPress files are writable.
I don’t have any plugins installed.
I haven’t done any big changes to the child theme. But it is the only thing that can be the cause
Any help in how to fix this?
Which countries should I allow to access the backend to enable wp_version_check()?
]]>But… carring on…
The problem is… When i access https://my.website.com/wp-admin/site-health.php i recieve some errors only when the plugin is active.
These marked with the red arrow: https://prntscr.com/tlsxsd
* API REST found an error
* loopback error
* Problems with wp_version_check()
This is my screen with the plugin disabled: https://prntscr.com/tlt0y3
Really would like to use this plugin, wish you can fix it without have many troubles.
Best Regards.
]]>