在wordpress上传主题时显示错误

时间:2012-12-16 09:42:04

标签: php wordpress

我尝试在wordpress中使用上传选项安装wordpress主题。但是,当我上传它时,显示以下错误消息。

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

请帮助解决可能的解决方案。

提前致谢

2 个答案:

答案 0 :(得分:1)

这听起来像你上传的zip文件不是zip文件或已损坏。

尝试从源重新下载主题,然后尝试重新上传。

答案 1 :(得分:0)

我在php 7.2上有相同的问题| ubuntu 18.04 | wordpress 5.2,然后我使用安装php7.2-zip apt install php7.2-zip根据一些研究 ,但是它没有从后端修复主题更新问题 。然后我使用sudo apt-get install php7.2-curl安装了php curl并解决了这个问题。

ubuntu的php curl:

  • 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
  • 如果您不知道自己的php版本: sudo apt-get install php-curl
相关问题