• For about the last month or so, every time I there’s an update available (usually for a plugin), 2 out of 3 times the update will fail, leaving me with an horrendous manual clean-up job, and frustrating downtime. At one point I found myself having to reinstall and reconfigure Jetpack from scratch. My gut feeling is that this is an issue with my hosting, but I thought I’d throw this one out there just in case somebody has a better idea. It’s getting to the point where I don’t feel safe to run updates any more.

    Kev

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @kfutter

    Probaly is a hosting issue, indeed. But have you checked the wp-content/plugins permissions?

    Thread Starter kfutter

    (@kfutter)

    I haven’t, but it’s probably a good suggestion to do so, even though nothing should have changed. I guess it would still qualify as a hosting issue, though! However, I would expect a 100% failure rate if it was a permissions issue, whereas it’s more like 70%. For the record, what should the permissions be? 644?

    Kev

    Thread Starter kfutter

    (@kfutter)

    I’ve just discovered that they should be 755, and upon checking, they are correct on my site. So I guess that’s one potential problem we can rule out now.

    Kev

    Hum, ok.

    And the “Memory limit” on wp-config.php (and php.ini) are 256M or higher? Maybe the high process should cause CPU issues and stop updating.

    Another idea is reinstall the WordPress core, but I can’t rely this is solve your problem.

    Thread Starter kfutter

    (@kfutter)

    I doubt the memory limit is as high as 256M, but I can check wp-config.php at least. I don’t think I have access to php.ini on my hosting platform. It would also be something that shouldn’t have changed in anyway in the last month or so.

    Kev

    • This reply was modified 3 years, 5 months ago by kfutter.
    Thread Starter kfutter

    (@kfutter)

    So, wp-config.php has no memory limit setting, so I added the following line:

    define('WP_MEMORY_LIMIT', '256M');

    I can’t edit php.ini directly, but cPanel does give me a user form where I can make the adjustment if necessary. I’m just not clear about where I need to do both, or whether the wp-config setting is sufficient.

    Kev

    I’ve been reading something about your issue and I am going to post it here, maybe can help you (I suggest you to make a backup before):

    1) Add this code in yout wp-config.php:
    Define(‘WP_TEMP_DIR’, ABSPATH . ‘wp-content/’);

    2) Another possible solution for your WordPress plugin update failing is to change the permission of the “upgrade” directory to 777.

    3) Have your disk space enough?

    I hope it helps.

    • This reply was modified 3 years, 5 months ago by bacciotti.
    Thread Starter kfutter

    (@kfutter)

    Thanks. I’ll check out those tips tomorrow, but I don’t want to make too many changes at once. Now that I’ve make a couple, I’d like to see what happens the next time I run an update.

    Kev

    Thread Starter kfutter

    (@kfutter)

    So, two more updates to run today, and they both completed without any issues. This could just be a coincidence, so I’d need to run a few more updates successfully to be certain that the issue has been resolved. So far, the only changes I made were to the memory limits.

    Kev

    Ok, good news. Please take attention if it happens with one plugin specifically or it is random.

    Wait some days and tell us if the problem occurs again.

    ??

    Thread Starter kfutter

    (@kfutter)

    Two more plugin upgrades today, and both went off without a hitch, so that’s good news. I’ll feel even better if I can get upgrades to major plugins like Woocommerce or Jetpack to do the same, but so far it’s looking good.

    Kev

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Plugin Updates Consistently Fail’ is closed to new replies.