Fix Error: “Update failed: Could not copy file.” in WordPress

Share with others

I recently came across this error that appeared when I was trying to update the plugins to their latest update. After some digging in and talking to hosting support, it turns out that the resource limit of my hosting package was hitting high and hence the plugins were not able to update along with themes. This was the error I was getting:

Update failed: Could not copy file.elementor/modules/apps/images/crocoblock.png
Update failed: Could not copy file. WordPress error

Why was it happening?

  1. Exceeding hosting resources limit
  2. Exceeding hosting inodes limit

Features that were affected by this:

WordPress plugin updates
  1. Unable to install/update plugins
  2. Unable to install/update themes

I had two options:

  1. To upgrade the hosting
  2. To free the resources used and get out of the limit

Normally, this error doesn’t occur but for the past six months, I’ve not been focusing on managing the hosting resources and keeping the junk. It requires a lot of work to manage your hosting as well. Since I didn’t need an extra package, I decided to manage the current resources and remove the unnecessary files.

Solution: The first thing I did was to clean the default mailbox that was full of junk emails and removing unecessary cache and files in directories.

This was helpful in resolving the issue and after trying again, I was able to update the plugins and themes of the WordPress website that was facing the issue.

Share with others
Abdullah
Abdullah

Abdullah, AKA "abdugeek," is a computer scientist turned tech writer and certified Growth Hacker. He has a versatile entrepreneurial mindset and is well-versed in the digital world with passion for animals, particularly fish. Founder of multiple digital startups in technology sector, he's constantly pushing boundaries and seeking new opportunities. Follow him on social media or learn more about him on his website.

Articles: 30

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.