1

I have tried to install a wordpress theme using upload option in wordpress. However when I upload it the following error message is showing.

The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure

Please help with the possible solutions.

Thanks in advance

2 Answers 2

10

I had same issue on php 7.2 |ubuntu 18.04 | wordpress 5.2, then I install php7.2-zip using apt install php7.2-zip according to some research but it didn't fix theme update issue from back-end. Then I installed php curl using sudo apt-get install php7.2-curl and that fix the issue.

php curl for ubuntu:

  • PHP 7.2: sudo apt-get install php7.2-curl
  • PHP 7.1: sudo apt-get install php7.1-curl
  • PHP 7.0: sudo apt-get install php7.0-curl
  • PHP 5.6: sudo apt-get install php5.6-curl
  • PHP 5.5: sudo apt-get install php5.5-curl
  • If you don't know your php version: sudo apt-get install php-curl
Sign up to request clarification or add additional context in comments.

1 Comment

sudo apt-get install php7.3-curlnow
1

That sounds like the zip file you are uploading either isn't a zip file or is corrupt.

Try re-downloading the theme from the source and then try uploading again.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.