TO-Tech Blog Todd Ogasawara’s Tech Blog


Finally Fixed my WordPress Theme Update Problem: Here’s What I Did

I've had a WordPress theme update problem for perhaps a year. However, I've been too lazy to fix it until now. Here's what the problem looked like:

- I tried to update my theme from the WordPress Dashboard in a self-hosted installation
- The error message I saw after any automated update attempt was: Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

I searched around and found a couple of purported fixes including:
- Modify a setting in the php.ini file
- Asking the hosting service to increase the disk quota

I don't have access to to the php.ini file in the /etc directory and my disk quota is claimed to be "unlimited" (yes, I know this is not really true). So, those suggestions would not work for me. Here's what I ended up doing. I should note that my blog is on a Linux based system and that I have access to a shell via scp.

- Download the latest version of the theme I'm using on that blog (barthelme in my case)
- scp the file to my blog hosting service
- unpack the theme into its own folder at my home directory level
- changed current directory to the WordPress themes directory in {myblog}/wp-content/themes
- backed up the current theme into a compressed tarball in my home directory (secondary backup)
- moved current theme directory (renamed it). For example, mv thistheme thistheme.OLD
- moved unpacked current theme from home directory to WordPress theme directory: For example, mv ~/newtheme . (note the space between newtheme and the period "." which points to the current directory)
- The original directory name in my case was Barthelme with a capital "B". The downloaded zip file unpacked to a directory named with a lower case "b". So, I renamed (moved) the directory: Example in my specific case: mv barthelme Barthelme

I pointed my browser at my blog to verify it had worked.

Note that this process is provided for informational purposes. It is not guaranteed to fix your WordPress theme update issue even if you see the same error message I saw. Proceed with caution anytime. Get help if you are not comfortable with the commands and process described here.

Tagged as: No Comments
Skip to toolbar