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

Sre*_*ree 0 php wordpress

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

The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure
Run Code Online (Sandbox Code Playgroud)

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

提前致谢

Pra*_*yan 8

我在 php 7.2 |ubuntu 18.04 | 上遇到了同样的问题 apt install php7.2-zipwordpress 5.2,然后我根据一些研究 安装了 php7.2-zip ,但它没有解决后端的主题更新问题。然后我使用安装了 php curlsudo apt-get install php7.2-curl并解决了问题。

ubuntu 的 php 卷曲:

  • 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