Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress theme upload error PCLZIP_ERR_BAD_FORMAT

I'm new to php as well as wordpress however because of some need I had to work with wordpress only. So just to start I read a tutorial and created a wordpress theme of my own and when I tried to upload my theme I got the below error:

The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature 

Searching for the same I've found that usually the cause of such an error is maximum available space or upload file size issue. However since I'm working on localhost I don't think it could be the case. Moreover I've increased the upload_max_filesize, post_max_size and memory_limit as well. But still I'm getting the same error.

I'm using Wordpress 3.5.2.

like image 331
dShringi Avatar asked Jul 21 '13 10:07

dShringi


1 Answers

This error due to you are trying to upload Other than ZIP Compressed version. Other format is not supported while uploading the plugin in wordpress.

You should unzip your plugin and make sure you compress with ZIP format and upload it will be working fine.

like image 158
Ashwin Parmar Avatar answered Sep 24 '22 06:09

Ashwin Parmar