简体   繁体   English

在Wordpress中上传主题时显示错误

[英]Error showing while uploading theme in wordpress

I have tried to install a wordpress theme using upload option in wordpress. 我尝试使用wordpress中的上载选项安装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 提前致谢

That sounds like the zip file you are uploading either isn't a zip file or is corrupt. 听起来您正在上传的zip文件不是zip文件,或者已损坏。

Try re-downloading the theme from the source and then try uploading again. 尝试从源中重新下载主题,然后再次尝试上传。

I had same issue on php 7.2 |ubuntu 18.04 | 我在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. wordpress 5.2,然后根据一些研究,使用apt install php7.2-zip但是它没有从后端修复主题更新问题 Then I installed php curl using sudo apt-get install php7.2-curl and that fix the issue. 然后我使用sudo apt-get install php7.2-curl安装了php curl并解决了这个问题。

php curl for ubuntu: php curl for ubuntu:

  • PHP 7.2: sudo apt-get install php7.2-curl PHP 7.2: sudo apt-get安装php7.2-curl
  • PHP 7.1: sudo apt-get install php7.1-curl PHP 7.1: sudo apt-get安装php7.1-curl
  • PHP 7.0: sudo apt-get install php7.0-curl PHP 7.0: sudo apt-get安装php7.0-curl
  • PHP 5.6: sudo apt-get install php5.6-curl PHP 5.6: sudo apt-get安装php5.6-curl
  • PHP 5.5: sudo apt-get install php5.5-curl PHP 5.5:须藤apt-get install php5.5-curl
  • If you don't know your php version: sudo apt-get install php-curl 如果您不知道自己的php版本: sudo apt-get install php-curl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM