1

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?

enter image description here

charan kumar
  • 2,119
  • 2
  • 20
  • 26
mehmood khan
  • 497
  • 1
  • 7
  • 20

7 Answers7

3

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.

charan kumar
  • 2,119
  • 2
  • 20
  • 26
Rob C.
  • 137
  • 5
  • I upgrade folder permission to 777 and uncheck the read only box as well,now when I want to search for plugins it show this error Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\ocover\wordpress-4.9.8\wordpress\wp-includes\Requests\Transport\cURL.php on line 463 – mehmood khan Sep 28 '18 at 09:54
  • Looks like the solution works. To fix the other problem just go here https://stackoverflow.com/questions/32198287/fatal-error-maximum-execution-time-of-30-seconds-exceeded-in-c-xampp-htdocs-wo – Rob C. Sep 28 '18 at 10:14
  • Waoo !! I did the same thing earlier but didn't restart the apache , it worked – mehmood khan Sep 28 '18 at 10:22
1

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!

Akif Malik
  • 49
  • 1
  • 1
  • 6
0

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

0

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

Simpa
  • 151
  • 6
0

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.

Nour Eddine
  • 131
  • 2
  • 6
-1

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');
NAVNEET CHANDAN
  • 268
  • 3
  • 7
-1

Download .zip From wordpress org/plugins/woocommerce/