wordpress
How to solve ‘Could not copy file – Installation Failed’ while Upgrading WordPress
I was trying to upgrade WordPress for one of my client’s website. Although it is easy to do from WP-Admin, all of my client are depending on me to keep all their websites up to date with latest version of WordPress as well as latest version of WordPress plugins.
I just logged in to admin to auto upgrade WordPress using one click from WP-admin. Please make sure you should back up the files and database before auto upgrade the WordPress version just in case anything went wrong. When i click on upgrade button, I got the below error.
Upgrade WordPress Downloading update from http://wordpress.org/... Unpacking the update. Could not copy file: /public_html/wp-content/upgrade/... Installation Failed.
Here are the few solutions to overcome from this error message.
SOLUTION 1
Please make sure there should be “upgrade” directory available under wp-content directory. WordPress uses the upgrade directory to temporarily write some file.
SOLUTION 2
Make sure that you have enough space left on server for the update package to be fully decompressed. If you are not sure, you can go to your Server control panel and take a look for space availability.
SOLUTION 3
This is tricky. Sometimes, files on the server were not owned by Apache web server user. You can check it by uploading the test file under your FTP and you can see the groups and users for your file and other files placed over there. If you see the difference over there, just contact server person and ask them to change all files of server should own by Apache web server user. Once it is done, you can do auto upgrade from your WP-admin panel.
jack
11/04/2020 at 16:43
Installation failed: Could not copy file. woocommerce/vendor/pelago/emogrifier/src/Emogrifier/HtmlProcessor
CodeRevolution
11/04/2020 at 18:56
To solve this, please install WooCommerce manually using WordPress plugin installer, after uninstalling it. Or, you can also upload it using FTP or from cPanel: https://www.youtube.com/watch?v=FnIu58tBdDQ
Brian
13/08/2020 at 20:39
My issue was due to lack of space for the “update package to be fully decompressed”. Thanks for the tip.
CodeRevolution
14/08/2020 at 04:59
I am happy I could help! 🙂
The Network
11/12/2021 at 11:18
Installation failed: Could not copy file. magic-post-thumbnail/freemius/includes/entities/index.php
please any sollution for this error ?
CodeRevolution
11/12/2021 at 22:06
In this case, you might have some hosting space related issues. Is your hosting space full? This might be causing this kind of issues.
Atif
18/02/2022 at 14:43
Could not copy file. forms-gutenberg/Utils/Bucket.php
how to resolve this issue?
CodeRevolution
19/02/2022 at 12:36
Does this issue appear with any plugin you upload to your site or just for the forms-gutenberg plugin? If only with this specific plugin, you should contact this plugin’s developer for details on this.
Regards,
Szabi – CodeRevolution.
Ken
28/08/2022 at 09:41
Installation failed: Could not copy file. woocommerce/src/Internal/Admin/Notes/SellingOnlineCourses.php
how to resolve this issue?
CodeRevolution
24/10/2023 at 16:10
Check https://wordpress.org/support/topic/error-installing-woocommerce-could-not-copy-file-woocommerce-packages-woo/