How to fix an automatic theme update failure in WordPress ?
When there is a new version update available, you will be prompt in your WordPress dashboard to carry out the update. You may encounter error or failure to update. This documentation discuss the scenario and the steps for rectifying the problem.
Activation Key
Auto-update needs valid Activation Key. Please login to your account to check your activation key. You can refer to the documentation on Activation key renewal, if your key has expired.
Auto-update stopped without completion
During the automatic update, you may have encountered a message similar to the following.
Downloading update from http://presscustomizr.com/?edd_action=package_download&license=xxxxxxxxxxxxxxxxx&id=xxxxxxxxxxx&key=xxxxxxxxxxxxxx&expires=xxxxxxxxxxxxx…
Unpacking the update…
Could not copy file. customizr-pro/addons/activation-key/activation/class_activation_key.php
There will be files left over because the unpacking and copying of files into theme folder is incomplete. You will have to delete them and do a manual theme update by using FTP.
Manually Updating a pro theme
Let's take an example with the Customizr Pro theme.
- Login to your account, click on the View Details and Downloads link.
- You will be taken to a page that shows your purchase details, scroll to the end of the page and you will see customizr-pro download link. Click on it to download. Save a copy of customizr-pro.zip on your computer.
-
Use your FTP program to log into your web hosting server.
-
Navigate to wp-content/themes/customizr-pro
-
If you are able to see customizr-pro folder, you will need to delete the whole customizr-pro folder together with it's content
-
Unzip the copy of customizr-pro.zip that you have downloaded from your account. You should see a folder named customizr-pro with content in it. Do not rename the folder.
-
Upload the customizr-pro folder to wp-content/themes/ on your web hosting server.
-
Login to your WordPress admin -> Appearance -> Themes to activate your Customizr Pro Theme.
-
Clear all browser history (cache), plugin cache content (Example: W3 Total Cache) and server cache.
-
Visit your front end. If you are stuck in Maintenance Mode which shows the following message.
Briefly unavailable for scheduled maintenance. Check back in a minute.
- Use your FTP program to log into your web hosting server.
- Go to your WordPress installation root, the same level as your wp-config.php.
- Look for a file named .maintenance, delete this file and you will have disabled maintenance mode.
NOTE: Steps from 3 to 8 can be done following this alternative procedure.
Fatal error after updating theme
If you have encounter PHP fatal error after automatically updating a theme. Please refer to the following solutions.
Child Theme activated
This could be caused by an activated Child Theme, that has codes or files that are outdated.
- Use your FTP program and log into your server.
- Go to wp-content/themes to find your child theme.
- Download a copy of your child theme onto your computer as a backup.
- After completing your backup, proceed to delete your child theme.
- Visit your website, if you are still experiencing fatal error, you can proceed to carry out the steps as mentioned in the above section on Manually Updating Customizr Pro Theme.
No Child Theme, using the pro theme only
This could be caused by an error in updating package send from remote server, or unfinished unzipping of theme files on your web server. Please carry out the steps as mentioned in the above section on Manually Updating Customizr Pro Theme.
Note: If you are still experiencing fatal error after carrying out the above recommendations. Please contact us via our support system. Please include the PHP fatal error message as well as your System Information, which could be found in WordPress admin -> Appearance -> Themes -> About Customizr Pro, at the end of the page.