Written by Editorial Team on June 29, 2020

How To Quickly Solve WordPress Plugin Failed To Update?

You know that keeping your WordPress site updated is crucial for website security. But what happens when you try to update a WordPress plugin but the update failed?

In today's tutorial, you will learn how to solve WordPress plugin failed to update.

WordPress plugin failed to update
~WordPress plugin failed to update

Understanding the root cause for WordPress plugin failed to update

This rarely happens but if the site permission isn't setup correctly, you will not be able to update the WordPress plugin or theme.

The default permission should be as follow:

  • 755 for all folders and sub-folders
  • 644 for all files

What does the numbers in file permissions mean?

The key concept is that when it comes to file permissions, there are three classes of users involved - Owner, Group and Others. We won't get into the details of this and you may look upon the internet to read more about it. There are three main permissions involved - read, write and execute. They are symbolically denoted by the letters:

  • r if reading is permitted, - if it is not
  • w if writing is permitted, - if it is not
  • x if execution is permitted, - if it is not

In numeric notation, file permission may be shown as 755, which means":

  • OWNER has permission 7 or 111 (in binary) or rwx
  • GROUP has permission 5 or 101 (in binary) or r-x
  • OTHERS has permission 5 or 101 (in binary) or r-x

So symbolically 755 means rwxr-xr-x, where the first three letters denote the permission for OWNER, the middle three-letter denotes the permission for GROUP and the last three letters denote permissions for OTHERS.

Similarly, 644 means 110100100 or rw-r--r--

  • OWNER has permission rw-
  • GROUP has permission r--
  • OTHERS has permission r--

In web host file manager, you may have a web interface from where you can change file permission such as in the image given below:

WP Directory
~WP Directory

Solution #1: Chmod the upgrade directory to 777

One ofthe method to fix the Update Failed: Plugin update failed is by updating your WP directory to 777.

This directory is found here: /wp-content/upgrade

In order to access this directory, you would need to login to your hosting panel and do a quick search for the folder.

We use FTP most of the time, but if you want, you can also use the file manager in your cPanel hosting to change the permission from the default 644 to 777.

Change WP Directory Permission To 777
~Change WP Directory Permission To 777

After updating the permission, try to update your plugin once more. Now, it should work just fine.

Remember that you must change the permission level back to 644 after updating the plugin (for security reasons).

Solution #2: Delete upgrade directory and recreate the directory

You should consider this solution if the first solution doesn't work. This solution is rather straight forward—delete the directory and recreate the directory again.

Important: Create a backup prior to deleting any files from your WP database for safety reasons.

Using an FTP client such as FileZilla, simply delete the 'upgrade' directory and recreate it. Make sure the permission is 644 after you create the directory.

Once that is done, head over to your WordPress dashboard and try to update the plugin again.

If this solution works, it is probably the directory is somehow corrupted. Re-creating a new directory solved the issue once and for all.

Other solutions that others reported to have worked for "Update Failed: Plugin update failed" in WordPress

Disabling Ask Apache Password Protect Plugin

If you have 'Ask Apache Password Protect' plugin installed, try disabling this plugin and try the other plugin update. This plugin is known to create issues when it comes to updating WordPress plugins.

No hard disk space left?

We rarely see this as a problem since running out of hard disk space is super rare. Here are some hints that your hard disk space is limited or full:

  • Could not remove the old plugin
  • Plugin upgrade Failed or Unpacking the update
  • Could not copy file /public_html/wp-content/xxxx

If you are getting any of the above error messages, it is time to do some website maintenance, including clearing old backups you no longer need. Clearing unwanted files from your database will free up the disk space.

Do you experience any of the above? Let us know which one worked for you or if you have other solutions to resolve this issue - "Update Failed: Plugin update failed" in the comments below!

Article written by Editorial Team

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts