Question

Cant Update plugins or theme (wordpress)

Hello, whenever i try to update any plugin that comes as bundled with my theme i cant update. it says

update failed 
cant remove previous/old data

or sometime it says cant delete “plugins folder name”. same this happens when i try to update my theme from envato theme update plugin. my theme is purchased from envato.

but when i try to update any plugin which i downloaded separately, ex. yoast seo, it updates without any problem.

does anyone faced similar issue?

What im using is Wordpress 4.2.4 Nginx 1.8 PHP 5.5

thanks in advance.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thats about permission.

First define this on your wp-config.php and see if it solves: define(‘FS_METHOD’, ‘direct’);

If not you have to take ownership of the whole site directory. Let’s suppose your install is on /var/www/html and your site user operator is fatorbinario so you can type these:

sudo chown -R fatorbinario:www-data /var/www/html sudo chmod -R g+w /var/www/html sudo find /var/www/html -type d -exec chmod g+s {} +

*Make a backup first.

This comment has been deleted

A few possible causes of this type of error are 1) incorrect ownership or permissions on the wp-content directory or its contents, and 2) running out of disk space. There certainly could be other causes. So, check permissions and disk space first to see if either of those are the cause of the problem.