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