【问题标题】:Error showing while uploading theme in wordpress在 wordpress 中上传主题时显示错误
【发布时间】:2012-12-03 17:15:59
【问题描述】:

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

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

请提供可能的解决方案。

提前致谢

【问题讨论】:

    标签: php wordpress


    【解决方案1】:

    我在 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

    【讨论】:

    • sudo apt-get install php7.3-curlnow
    【解决方案2】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-20
      • 2017-12-21
      • 2016-09-06
      • 2015-10-01
      • 2017-07-08
      • 1970-01-01
      • 1970-01-01
      • 2017-08-02
      相关资源
      最近更新 更多