Reputation: 489
I'm trying to install a woocommerce plugin on my wordpress website(locally) it is giving such error 'update failed' as you can see in picture,
how to fix this?
Upvotes: 1
Views: 11024
Reputation: 151
It sounds like the files might have been corrupted during the update.
You’d need to access your site FILES, so that you can delete the WooCommerce plugin folder. Locate the plugins folder, and remove the woocommerce folder from there. Once deleted, you should be able to go back to your site’s Dashboard and install the plugin again.
Upvotes: 0
Reputation: 151
An alternative that works for the installation of plugin is to upload the plugin via cPanel's File Manager or the FTP client (e.g FileZilla).
Download the WooCommerce Plugin from https://wordpress.org/plugins/woocommerce/. This will download a zipped file which can be uploaded onto the server.
After download, navigate your way to the wp-content/plugins
folder on the cPanel. Upload the downloaded file, and extract the file to folder.
NOTE: remember to remove the version number from the name of the plugin after downloading e.g change woocommerce.4.0.1.zip to woocommerce.zip
Upvotes: 0
Reputation: 289
If you install any plugins/themes, this could be the reason for continuously fails. Add the below line of code in wp-config.php
define('FS_METHOD','direct');
Upvotes: -1
Reputation: 49
You can also solve this error by increasing the execution time. Just go to your Xampp Control Panel, Stop Apache server, click on config (Apache), then select PHP(php.ini) option, Press Ctrl+F type "execution" and hit enter, then just increase the size of execution time from 30 to 300, save the file and then start Apache again. It Works for Me!
Upvotes: 1
Reputation: 90
see sometimes there is compatibility problem of site effects. If you can not fix, you can install another similar plugin
or
install a plugin that stop the updates of plugins ot theme according to what you want, to stop only the update of this specific plugin, like
https://wordpress.org/plugins/block-specific-plugin-updates/
after when you fixed or come new version you restart the update procedure
Upvotes: 0
Reputation: 147
Go to wp-content/upgrade
directory and change folder permission to 777 (chmod) or in windows make sure that the read only box is uncheck.
That only means you allow that directory to read write and execute without any restrictions.
Upvotes: 4