Title: Plugin deleted during update
Last modified: September 9, 2020

---

# Plugin deleted during update

 *  Resolved [Chad Warner](https://wordpress.org/support/users/chad-warner/)
 * (@chad-warner)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/plugin-deleted-during-update/)
 * I’ve had repeated issues updating WooCommerce on 3 sites for the last few weeks(
   WooCommerce 4.4.1, 4.5.1, and maybe others). Updating via WP Admin fails, and
   the plugin gets deleted. The Updates screen shows:
 * > Warning: fopen(/www/wp-content/plugins/woocommerce/woocommerce.php): failed
   > to open stream: No such file or directory in /wordpress/wp-includes/functions.
   > php on line 6023 Warning: fread() expects parameter 1 to be resource, boolean
   > given in /wordpress/wp-includes/functions.php on line 6026 Warning: fclose()
   > expects parameter 1 to be resource, boolean given in /wordpress/wp-includes/
   > functions.php on line 6029
 * The plugin screen shows:
 * > The plugin woocommerce/woocommerce.php has been deactivated due to an error:
   > Plugin file does not exist.
 * The plugin can’t be reinstalled via WP Admin. I can delete via SFTP then upload
   the latest version via SFTP. However, when I later try to update to a newer version(
   e.g., 4.4.1 to 4.5.1) in WP Admin, the problem recurs.
    -  This topic was modified 5 years, 8 months ago by [Chad Warner](https://wordpress.org/support/users/chad-warner/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [visual.destini](https://wordpress.org/support/users/visualdestini/)
 * (@visualdestini)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/plugin-deleted-during-update/#post-13384938)
 * Also having this issue.
 *  [Siew](https://wordpress.org/support/users/kosiew/)
 * (@kosiew)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/plugin-deleted-during-update/#post-13386239)
 * Hi there,
 * I just tested updating on my site from 4.5 to 4.5.1 without issues.
 * Can you try to disable all plugins before updating WooCommerce?
 * I hope this points you in the right direction.
 *  Thread Starter [Chad Warner](https://wordpress.org/support/users/chad-warner/)
 * (@chad-warner)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/plugin-deleted-during-update/#post-13388857)
 * Thanks for the suggestion. I tested 3 sites (using staging sites), updating WooCommerce
   with and without deactivating all plugins first. For 2 sites with WooCommerce
   4.4.1, the update to 4.5.1 failed, with and without deactivating plugins first.
   In all cases, WooCommerce was deleted and I got the errors described in my original
   post.
 * For 1 site with WooCommerce 4.3.1, the update to 4.5.1 worked properly, with 
   and without deactivating plugins first.
 * So disabling plugins didn’t make a difference. What else can I try?
 *  Thread Starter [Chad Warner](https://wordpress.org/support/users/chad-warner/)
 * (@chad-warner)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/plugin-deleted-during-update/#post-13394953)
 * I asked Flywheel (web host), and they said,
 * > I was able to link this issue to a bug that we have outstanding at this time.
   > There is not a workaround for this at this time but moving forward, I would
   > recommend manually updating the plugin via SFTP until this is fixed. You can
   > certainly jump into chat and have them look up ticket [removed] to get the 
   > status on the bug but it might be at least a couple of weeks before we have
   > an update on this.
 *  [Siew](https://wordpress.org/support/users/kosiew/)
 * (@kosiew)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/plugin-deleted-during-update/#post-13441327)
 * Hi there,
 * Since this is due to a bug with the host, and we haven’t heard back from you 
   in a while, so I’m going to mark this as resolved – if you have any further questions,
   you can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin deleted during update’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [update](https://wordpress.org/support/topic-tag/update/)

 * 5 replies
 * 3 participants
 * Last reply from: [Siew](https://wordpress.org/support/users/kosiew/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/plugin-deleted-during-update/#post-13441327)
 * Status: resolved