• Resolved AccountKiller

    (@bazajaytee)


    After updating to WordPress 4.4 none of the plugins or themes will update, instead they error out with the same error but substitute the theme for plugin when doing plugins.

    Downloading update from https://downloads.www.ads-software.com/theme/twentyfifteen.1.4.zip…
    Unpacking the update…
    Installing the latest version…
    Removing the old version of the theme…
    Theme update failed.

    An error occurred while updating Twenty Fifteen: Could not create directory. /public_html/wp-content/themes/twentyfifteen/

    Nothing has changed on the server side, just the WordPress version.

    I have tried CHMOD’ing the wp-content to 777 instead of 755 but no dice. Still the same error.

Viewing 13 replies - 31 through 43 (of 43 total)
  • I was having the same problem with updating Photo album plugin. Was watching this topic for a while, waiting for new 4.4.1 version to fix the problem. Finally it is here, but… I cannot install WP update either!! Getting error:

    Unpacking the update…
    Verifying the unpacked files…
    The update could not be unpacked
    Installation Failed

    Other people are having the same problem:
    https://www.ads-software.com/support/topic/install-issue-would-not-unzip-file-never-seen-until-441

    So, what you are saying is: we cannot update to 4.4.1 via admin panel and have to do it manually via FTP?

    Moderator James Huff

    (@macmanx)

    Correct, this will require a manual update: https://codex.www.ads-software.com/Upgrading_WordPress_Extended

    It’s not too complicated of the process, the guide is just *excessively* detailed. ??

    This is really annoying. Luckily I have two sites, one with hardly any traffic, one with a lot of traffic. Will try the manual update with the first one.

    They should release a 4.4.0.1 or something that just tells us what code to change to make normal updates possible again. I’m afraid many people will now simply not bother to upgrade because it’s too technical. I’ve had many WordPress-sites for 8 years now and even I am very anxious about this manual update.

    Just updated from 4.4 to 4.4.1 with no problems.
    Just went through like it always did.

    Nice one.

    I have already applied this patch to version 4.4
    In file: wp-admin/includes/class-wp-filesystem-ftpext.php, lines 329-338

    Change
    $file_list = @ftp_nlist( $this->link, ‘-a ‘ . $path );

    to
    $file_list = @ftp_nlist( $this->link, $path );

    After that, everything worked fine… for me anyway. Updates updated, and the new upgrade to 4.4.1 worked no problems.

    /**
             * @access public
             *
             * @param string $file
             * @return bool
             */
            public function exists( $file ) {
                    $path = dirname( $file );
                    $filename = basename( $file );
    
                    $file_list = @ftp_nlist( $this->link, $path );
                    if ( $file_list ) {
                            $file_list = array_map( 'basename', $file_list );
                    }
    
                    return $file_list && in_array( $filename, $file_list );
            }

    @shanghaitimes this worked for me thank you ??
    after updates should i delete this code?

    Same question as simpsonhf

    I don’t think so, because after the update –
    7 Jan 13:43 class-wp-filesystem-ftpext.php

    Which I just did today – updated from 4.4 to 4.4.1, that code is now slightly changed
    The file is new – but the code is the same now as our fix … almost. It’s changed a little bit, different variable names, but essentially the same.
    So the fix allows it to work, then it overwrites it with the “updated” version.

    I just updated 5 virtual hosts I have, and they all went through no worries. Updated plugins first, then upgraded WordPress.

    /**
    * @access public
    *
    * @param string $file
    * @return bool
    */
    public function exists($file) {
    $list = @ftp_nlist($this->link, $file);

    if ( empty( $list ) && $this->is_dir( $file ) ) {
    return true; // File is an empty directory.
    }

    return !empty($list); //empty list = no file, so invert.
    }

    Thread Starter AccountKiller

    (@bazajaytee)

    The official steps are way more complicated than what I did ??

    Open Filezilla
    Connect to host
    Upload WordPress files overwriting over the top of my 4.4 files
    Done

    Go into Dashboard
    Update Plugins and Themes as normal

    Was very tough ??

    Moderator James Huff

    (@macmanx)

    That’s basically exactly what the official steps say, but the official steps are just *excessively* detailed, because we’ve learned over the past 12 years that critical misunderstandings can apparently happen with anything. ??

    https://codex.www.ads-software.com/Upgrading_WordPress_Extended

    @shanghaitimes

    Worked perfectly! Thank you!

    @shanghaitimes

    worked for me too (tried one of two sites, but guess it will work for the second time as well).

    What I did:
    – changed the line of code
    – updated to 4.4.1. within admin dashboard
    – got stuck in maintenance mode: deleted .maintenance (in your wordpress root, same place as wp-config.php)
    – f5 and all is fine
    – updating plugins worked fine too

    Moderator James Huff

    (@macmanx)

    Thanks for confirming, you two!

    The issue has been fixed in WordPress 4.4.1.

    If you are still having this issue under 4.4.1, it’s likely a different problem, so please open your own thread: https://www.ads-software.com/support/forum/how-to-and-troubleshooting#postform

Viewing 13 replies - 31 through 43 (of 43 total)
  • The topic ‘Unable to update plugins/themes post 4.4 Update’ is closed to new replies.