It’s possible that your server is blocking the checker, in which case you would need to do a manual update: https://codex.wordpress.org/Upgrading_WordPress_Extended
Dear James,
I really appreciate your time answering, as this has become a big issue for us.
I’m sure is not the server, this is an aleatory issue. This feature works in some accounts in the same server and in some not.
I would like not to have do upgrade manually every time all the WP installation in my server as I have too many, but I would like to solve this issue with the “one-click update” feature.
Do you have any idea why this happen and how to solve it definitely?
Kind regards,
By “some accounts” do you mean different blogs on the same server? Is this a Multisite installation?
Hi,
No, this is a simple website with one domain name.
What I meant is that many different websites with their own domain name are installed in the same server. In some of them, the “one-click update” feature works and in some it doesn’t.
Please, advice.
Check your wp-config.php file on each site and make sure that you haven’t disabled the updater.
http://codex.wordpress.org/Configuring_Automatic_Background_Updates
Dear James,
As per your update, we have checked if the parameter “define( ‘AUTOMATIC_UPDATER_DISABLED’, true );” is added in any of the wp-config file of the concerned domains. However we could not see any such parameters in any of the wp-config file of the domains in our server.
~~~~~~~~~~~
root@ns3 [~]# locate wp-config.php | xargs grep “define( ‘AUTOMATIC_UPDATER_DISABLED’, true );”
root@ns3 [~]#
~~~~~~~~~~~
Further we also checked if any filters are set in order to stop the automatic update. We could not see the same as well. Therefore we believe that this is not the reason for the issue.
~~~~~~~~~~~
root@ns3 [~]# locate wp-content/mu-plugins | xargs grep “add_filter( ‘automatic_updater_disabled’, ‘__return_true’ );”
root@ns3 [~]#
~~~~~~~~~~~
Any other idea?
Oh, you’re running WordPress Multisite?
You should only be able to update from the Network Admin, one update affects all sites under the Multisite installation.
In the future, please ask at http://wordpress.org/support/forum/multisite#postform since Multisite is sometimes very different (as you can see here).
Dear James,
Our site is not multisite as per the link given below
http://codex.wordpress.org/Create_A_Network
There is no such settings given in the files wp-config and wp-admin side. So we can confirm that all the concerned sites are single site installations.
Any other idea?
I’ve heard about a permission issue could be the cause… what do you think?
Hm, possible. Are you logged in as the administrator on the blog? Can you see the Users section in the Dashboard, and do you see “Administrator” near your username?
Hi,
I found the problem and the solution :
To answer to your question: Yes, I always connected as “Administrator”.
Problem:
Installation of WP via cPanel using a cPAddons
When we compared the server files with a normal WordPress installation, we could see some additional modifications done by cPanel (comments added by cPanel is there in the code. That is how we identified it. We suppose this is because the installations is done via the “Site Software” feature of cPanel.)
Solution:
Just delete lines 31, 32 and 33 of “wp-admin/includes/update.php”
and lines 142 and 143 of “wp-admin/update-core.php”.
Thanks for your time!
Oh, that doesn’t sound good at all. Maybe they wanted to lock you into their updater?
Just in case there are other modifications, I’d recommend downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.