• Dear support,

    Why sometimes WordPress request to do an update via the “one-click update feature” and why sometimes it does not?

    Right now we could update our WordPress installation to version 4.0 but even after clicking on “Updates” > “Check Again” it does not request to perform the update.

    This problem is happening with some (not all) account of our server and with all new installations via the “Site Software” feature of cPanel. The version of WordPress present in the server is outdated and when we try to update it to the latest one by going to “Updates” > “Check Again” it does NOT give us the possibility to perform the one-click update.

    How do we make WordPress to ask to perform the update automatically as we did with all the other accounts?

    Regards,
    Christian.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator James Huff

    (@macmanx)

    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

    Thread Starter domainpack

    (@domainpack)

    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,

    Moderator James Huff

    (@macmanx)

    By “some accounts” do you mean different blogs on the same server? Is this a Multisite installation?

    Thread Starter domainpack

    (@domainpack)

    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.

    Moderator James Huff

    (@macmanx)

    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

    Thread Starter domainpack

    (@domainpack)

    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?

    Moderator James Huff

    (@macmanx)

    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).

    Thread Starter domainpack

    (@domainpack)

    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?

    Moderator James Huff

    (@macmanx)

    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?

    Thread Starter domainpack

    (@domainpack)

    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!

    Moderator James Huff

    (@macmanx)

    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.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘WP One-click Update is not there’ is closed to new replies.