Wordpress 主题上传错误 PCLZIP_ERR_BAD_FORMAT [英] Wordpress theme upload error PCLZIP_ERR_BAD_FORMAT

查看:32
本文介绍了Wordpress 主题上传错误 PCLZIP_ERR_BAD_FORMAT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 php 和 wordpress 的新手,但是由于某些需要,我只能使用 wordpress.所以刚开始我阅读了一个教程并创建了我自己的 wordpress 主题,当我尝试上传我的主题时,我收到以下错误:

I'm new to php as well as wordpress however because of some need I had to work with wordpress only. So just to start I read a tutorial and created a wordpress theme of my own and when I tried to upload my theme I got the below error:

The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

搜索相同的我发现这种错误的原因通常是最大可用空间或上传文件大小问题.但是,由于我在 localhost 上工作,因此我认为情况并非如此.此外,我还增加了 upload_max_filesizepost_max_sizememory_limit.但我仍然遇到同样的错误.

Searching for the same I've found that usually the cause of such an error is maximum available space or upload file size issue. However since I'm working on localhost I don't think it could be the case. Moreover I've increased the upload_max_filesize, post_max_size and memory_limit as well. But still I'm getting the same error.

我使用的是 Wordpress 3.5.2.

I'm using Wordpress 3.5.2.

推荐答案

此错误是由于您尝试上传 ZIP 以外的压缩版本.在wordpress中上传插件时不支持其他格式.

This error due to you are trying to upload Other than ZIP Compressed version. Other format is not supported while uploading the plugin in wordpress.

您应该解压缩您的插件并确保您使用 ZIP 格式压缩并上传它会正常工作.

You should unzip your plugin and make sure you compress with ZIP format and upload it will be working fine.

这篇关于Wordpress 主题上传错误 PCLZIP_ERR_BAD_FORMAT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆