• Resolved ganelvi

    (@jaden)


    Plugin updates work fine, but updates fail with no error, just the admin page with a blank area where there would normally be a status. This is on multiple VPSes with several WordPress installations. All exhibit the same behavior.

    PHP 5.6.5, nginx

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    If you enable Debugging (See how to enable Debugging in WordPress) and then try to do the update, does your error logs have any output that might help identify the problem?

    Thread Starter ganelvi

    (@jaden)

    I enabled debugging but didn’t see anything related to the update. There are deprecated warnings about register_sidebar_widget() and has_cap() being called with user levels instead of roles and capabilities.

    I enabled too , it filled with a shitload of errors coming from a plugin named lightbox ,
    i disabled it , but still the update behavior remained as before .

    Same here.

    Tried disabling plugins. Using twentyfourteen theme. Nothing.

    Directories are owned by my account in group www-data.
    Apache runs as www-data in group www-data so manual upgrade is required and never had a problem before.

    Same problem with the french version

    Moderator Marius L. J.

    (@clorith)

    It could be that your host was just very busy (not uncommon when there’s a lot of updates pushing through at once), so before we look into the other troubleshooting steps, are you still experiencing this problem if you try it again now ?

    It’s not working… needs to be fixed.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Censorshipiswrong – We’re not blaming the users. Actually we’re trying to help the users (if anything, we blame your host ?? ).

    Can you guys look at your php error logs and see if there’s anything there? Also you should try it with all plugins turned off. You may have a one-off error.

    Thread Starter ganelvi

    (@jaden)

    Your help is appreciated – I’m not blaming anyone either. Updates have gone smoothly for countless releases.

    Nothing shows up in the error logs and it still happens without any plugins enabled.

    I looked at the code this morning and here are a few things I found:

    wp-admin/update-core.php

    $version = isset( $_POST['version'] )? $_POST['version'] : false;
        $locale = isset( $_POST['locale'] )? $_POST['locale'] : 'en_US';
        $update = find_core_update( $version, $locale );
        if ( !$update )
            return;

    On my systems, $version is empty and find_core_update returns false.

    wp-admin/includes/update.php

    $updates = $from_api->updates;
        foreach ( $updates as $update ) {
            if ( $update->current == $version && $update->locale == $locale )
                return $update;
        }
        return false; // Returns here

    Since $version is empty and $update->current is not empty, it never returns an update. I used Chrome Developer tools to add a version field and set it to 4.1, like so:

    <input name="version" type="hidden" value="4.1">

    I verified it was set, but that still didn’t fix anything.

    Thread Starter ganelvi

    (@jaden)

    I have intentionally set my server up to have WordPress use FTP. I liked having to type in the password to update for an extra layer of security. This meant I didn’t have to let the webserver’s user be able to write to all of the WordPress files.

    But there’s always the tension between security and convenience and I’ve decided to give in to convenience for now. ??

    I added define(‘FS_METHOD’,’direct’); to wp-config.php and set group permissions to be writeable and the update worked.

    I’m marking this as resolved.

    Moderator Marius L. J.

    (@clorith)

    Hi,

    Just an update (as can be seen by the ticket mentioned earlier in this thread) a bug was discovered in 4.1 that caused some problems for setups requiring FTP credentials to update, which translated into 4.1.1 updates failing with a white screen.

    The problem will be solved in the next version of WordPress, but we’ve implemented a temporary fix that should take care of the problem in the meantime for those who require FTP credentials during upgrades without the need for any workarounds from you as site owners.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Core update to 4.1.1 not working’ is closed to new replies.