首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >经常上传失败,文件损坏

问经常上传失败,文件损坏
EN

Stack Overflow用户
提问于 2012-03-20 04:19:34
回答 1查看 699关注 0票数 1

我在wordpress (自我托管)上遇到了以下问题。我上传的图片中有80%是失败的,原因要么是没有处理(并提到了HTTP错误),要么是显示了以下错误:

代码语言:javascript
复制
Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-png: fatal libpng error: IDAT: CRC error in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-png error: setjmp returns error condition in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'PNG' format in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-png: fatal libpng error: IDAT: CRC error in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-png error: setjmp returns error condition in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'PNG' format in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-png: fatal libpng error: IDAT: CRC error in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-png error: setjmp returns error condition in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'PNG' format in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /home/content/60/4915360/html/wordpress/wp-includes/media.php on line 258

最重要的是,如果图片太大(400 k是可以的,不是900 K),它将上传,但有80%的机会被破坏(即块倒置/交换/替换颜色)。它可能与wordpress无关,因为我在其他服务上也观察到了这种腐败现象(deviantart,shownd)。我曾经认为这是因为这些服务质量差,但我开始怀疑我的连接(我正在使用我的大学网络)的一个问题。

你知道什么会导致这些问题吗?

EN

回答 1

Stack Overflow用户

发布于 2012-03-27 00:36:18

你用哪种方法上传图片?我没有遇到您正在显示的错误,但有时我确实会遇到崩溃和上传失败时,使用上传器是在Wordpress内。

你试过使用FTP程序上传文件吗?当我遇到来自Wordpress内部的失败上传时,我就会这么做。

如果所有这些都失败了,你可以备份你的网站并重新安装Wordpress。(我也这样做了,并取得了更好的效果。)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9781293

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档