• 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 15 replies - 16 through 30 (of 43 total)
  • Moderator James Huff

    (@macmanx)

    Well, that’s not a feature of WordPress itself, so I’m not sure. ??

    Where are you seeing that?

    Thread Starter AccountKiller

    (@bazajaytee)

    Oh yeah, it is part of Jetpack under the Manage section

    Enabling Manage allows you to update your self-hosted WordPress sites along with any WordPress.com sites you have, all in one simple dashboard.

    Plugins
    Now you can update plugins, set plugins to automatically update, and activate or deactivate plugins on a per-site basis or in bulk from wordpress.com/plugins.

    But if you go to updates it shows a message at the top

    Reduce security risks with automated plugin updates.

    Moderator James Huff

    (@macmanx)

    Yep, that should work just fine under WordPress 4.4.

    Add me to one of the people with this issue. It tells me that I have 20 updates, but when I click on the update icon, there isn’t anything there. When I click “check again” there is still nothing there, but the notification of my updates goes away. It always comes back, though.

    Moderator James Huff

    (@macmanx)

    Please provide as MUCH detail about your server as possible (OS, PHP version and flavor, etc) where the fix is in progress at https://core.trac.www.ads-software.com/ticket/34976

    For now, you can “update” plugins and themes by deleting and installing the latest version.

    Sorry for the late response.

    OS X Yosemite: 10.101.5

    I have no idea where to get my php version and flavor? Sorry.

    Moderator James Huff

    (@macmanx)

    No worries, I think they have enough info now. ??

    Hey guys to fix this problem just add in wp-config.php after:

    require_once(ABSPATH . ‘wp-settings.php’);

    if(is_admin()) {
    add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ ));
    define( ‘FS_CHMOD_DIR’, 0751 );
    }

    With that you will have everything working good again, let me know if it work for you guys too ??

    Could you explain that a little bit more? Sorry, I’m not great at the coding. Where is that code found in the editor? and do I just put “wp-config.php” after that code on a line by itself?

    Yes, at the end of the file wp-config.php

    just before the close tag ?>

    wp4.4 is not recognizing that you are logged in as admin so it rejects creation or deletion of files or folders, that little snippet just tell wordpress that you are actually an admin if you are logged in as one , and add the correspondent permissions to the folders you are trying to modify, so everything works good.

    not working your code
    if(is_admin()) {
    add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ ));
    define( ‘FS_CHMOD_DIR’, 0751 );
    }

    I tried poseso’s hack: after the final line in wp-config.php–

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    I added:

    if(is_admin()) {
    add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
    define( 'FS_CHMOD_DIR', 0751 );
    }

    It seems to do something: instead of “could not create directory” and having the backend lock up in maintenance mode, as it was doing before, I just get “plugin failed to update.” So I guess that’s an improvement but I still can’t update my plugins. Hope that WP update with the bug fix comes along soon…

    Moderator James Huff

    (@macmanx)

    This has been corrected in WordPress 4.4.1, released just a few minutes ago: https://codex.www.ads-software.com/Version_4.4.1

    Still stuck after two tries to install 4.4.1. Just now it quit with the message unable to unpack files.

    Site is https://www.trinitykirkwood.org, but it actually lives at trinitykirkwood.org/wordpress_renew It’s cPanel shared hosting

    Thread Starter AccountKiller

    (@bazajaytee)

    You have to upload the 4.4.1 files over your installation with FTP. As the problem prevents updates it can’t update WordPress itself.

    Just copy over all the files and it’ll update to 4.4.1 and I can confirm that once you have done that all updating works again. Done it on multiple sites on my server.

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