Could not copy file.: /public_html/x/wp-admin/css/theme-editor.dev.css
After trying several (probably all) of the suggestions for automatically upgrading from the WordPress Support Forums, I eventually had to resort to a manual upgrade – documented at Updating WordPress « WordPress Codex.
As my host runs CPanel, I changed the way I did the upgrade slightly, so just in case there are others out there with the same predicament, here are the steps I followed:
Before we start, read the Instructions on “Take a Backup” in the updating WordPress link above. If your upgrade goes wrong and you haven’t taken any backups, then the liability is all yours 🙂
- Download the upgrade file from WordPress (v3.0.1 file is here – http://wordpress.org/wordpress-3.0.1.zip)
- Open up the File Manager under CPanel and navigate to your WordPress folder (e.g. /public_html/mywebsite)
- Rename the wp_includes and wp_admin folders (e.g. to wp_includes-old, wp_admin-old)
- Navigate to the wp-content/upgrade folder
- Delete any folders here (there may be a remnant of the failed automatic upgrade called wordpress3-tmp or similar)
- Upload the file you just downloaded in step 1 (e.g. wordpress-3.0.1.zip)
- Right-click the file under CPanel’s File Manager and choose the option to Extract
- The Extract will have created a folder called “wordpress” – Navigate to this folder
- Now Select all the files (hint – in CPanel’s File Manager, there is a button called “Select All”)
- Copy (right-click and select Copy) the files to your WordPress folder (e.g. /public_html/mywebsite)
- Navigate to your WordPress folder (e.g. /public_html/mywebsite) – If you have a file called .maintenance, then delete it
- Login to your WordPress site’s Admin panel – if the upgrade has worked, then you will have a message that your WordPress has been upgraded and your database now needs to be upgraded – click the button and wait for WordPress to upgrade your database
- Check out your upgraded WordPress blog and make sure it’s all working
- When you’re happy it’s all working, delete the wp_includes_old and wp_admin_old folders
- As an additional step, you might want to delete the contents of the upgrade folder
Voila! The work is done. And with any luck, next time you upgrade, you’ll be able to upgrade WordPress automatically.
If you have this problem and you need to manually upgrade, then Good Luck!