Without changing anything WordPress version updated from 4.9.4 to 4.9.5. on Azure server.
Please let me know how this happened?
It is an auto-update. (as already show in the image you posted)
By default, only minor releases – such as for maintenance and security purposes are auto-updated but they are configurable. This is the recommended behavior.
However this can be prevented by defining certain constants or by applying filter hooks
To completely disable all types of automatic updates, core or otherwise, add the following to your wp-config.php file:
define( 'AUTOMATIC_UPDATER_DISABLED', true );
You can also disable all automatic updates using the following filter:
add_filter( 'automatic_updater_disabled', '__return_true' );
It is also possible to allow the partial updates.
The detailed instruction can be found in the link https://wordpress.org/support/article/configuring-automatic-background-updates/
Related
In my Wordpress site, this issue appears when adding or editing posts.
Notice: register_rest_route was called incorrectly. REST API routes must be registered on the rest_api_init action. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.) in /project/wp/wp-includes/functions.php on line 5167
Note: I didn't make any WP update or any plugin update on the site.
Any idea to fix this issue? Thank you.
In WordPress 5.5, a change was made to how REST routes are registered and now required a permission_callback.
The reason you may see it the notice on one site and not all is that notices only appear when WordPress is run in DEBUG mode, confirm by checking the value of wp-config.php for
define( 'WP_DEBUG', true );
If the site showing the notices should not be in debug mode, simply change the value of WP_DEBUG to false.
A plugin or your theme are creating a REST-Api route in a wrong hook.
This is correctly done by using add_action('rest_api_init', 'function_to_create_end_endpoint');
function_to_create_endpoint contains the function register_rest_route().
In your case it's something else ('init' or 'plugins_loaded' instead of 'rest_api_init')
Some solutions:
Update all Plugins/your Theme to a current Version
If this doesn't help you can: Deactivate Plugins one by one, to see which one causes the issue, than maybe replace it or check if is abandoned
Search for "register_rest_route" in your wp-content folder and find the plugin that calls it in a hook something other than "rest_api_init".
Lastly Notices only show up when you turn on full debugging in your wp-config, this isn't meant for sites running in production. You could turn it off.
I want to disable all updates in my website. I have set below variable in wp-config.php file.
define( 'automatic_updater_disabled', true );
define( 'wp_auto_update_core', false );
But I don't know why, every other day it keeps on updating itself, which breaks some of my code.
Does any one know how to disable the updates PERMANENTLY !
By default, WordPress can automatically update itself when a security or minor release is available.
For major releases, you have to initiate the update yourself. You also have to install plugin and theme updates yourself.
Wondering if you are on Managed Wordpress hosting??
IF YES then that's where those updates are happening automatically.
You can Hosting support to not update without confirming with you.
define( 'AUTOMATIC_UPDATER_DISABLED', true );
define( 'WP_AUTO_UPDATE_CORE', true );
Disable automatic WordPress plugin updates:
add_filter( 'auto_update_plugin', '__return_false' );
Disable automatic WordPress theme updates:
add_filter( 'auto_update_theme', '__return_false' );
For your better understanding please visit here
On some hosting platforms you install Wordpress as an 'App' through something like Installatron. This has settings about updating Wordpress too, you may want to check for this in your hosting backend/dashboard.
It looks like this
Where it says My blog it will probably say Wordpress. If you click edit below, it has some settings about updating.
In reference to the following existing question. Wordpress Plugin : Can't process Indexing Queue I was unable to participate in the comments due to having a new account and less than 50 reputation.
I am having a problem getting the Algolia WordPress plugin to process the index. Running the latest version of WP and just downwloaded the WP Plugin from Algolia today. When I run WP_DEBUG and WP_DEBUG_LOG in my wp-config file I get the following output on any WP back end page.
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/html/dealer/wp-includes/functions.php on line 3890
Line 3890 in wp-includes/functions.php just references the code that generated the error.
trigger_error( sprintf( __('%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s'), $function, $version, $message ) );
This appears to be an unrelated issue.
I should point out that this is a dev test server running locally on our internal network. I'm starting to wonder if that's causing the issue. I installed the same plugin on our live version of the site and everything works as expected.
We have never noticed any logs related to user capabilities. Your best bet to remove those notices is to:
Be sure all your plugins are updated,
Disable/Test/Enable plugins one by one to locate the plugin raising those.
Please ensure that all the requirements are met: https://community.algolia.com/wordpress/installation.html
Do you have any errors logged on the "Logs" page of the Algolia plugin?
Might be useful to also give us the list of plugins you are using.
does this line of code disables all updates?
define( 'AUTOMATIC_UPDATER_DISABLED', true );
I mean, all core, minor, plugin, themes, etc.?
Yes it will disable the automatic installation of new updates but It will still check for new updates and display them.
If you're going to apply some patches you can still do it manually.
I'm looking a plugin that allow me to know/identify when I am in a page the php classes used in that page.
For example, a page can be part of a plugin or a part of a template,
so if I have to change it how can I know where I need to change the code among the many php classes?
Thanks so much
You can set on your wp-config.php file:
define( 'WP_DEBUG', true );
It will enable the “debug” mode throughout WordPress.
When set to "true", you’ll start seeing PHP notices, WordPress-generated debug messages, deprecated function usage, etc.
If this is not enough for you, you can try this plugin:
https://wordpress.org/plugins/debug-my-plugin/