通过字preSS媒体上传上传图片时,HTTP错误 [英] HTTP error when uploading an image via the WordPress Media Uploader

查看:304
本文介绍了通过字preSS媒体上传上传图片时,HTTP错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每一次我尝试使用Word preSS媒体上传在13%左右(WP管理员>新闻>新增)上传摊位上传图片,我得到一个错误信息出现在屏幕上HTTP错误

Each time I try to upload an image using the WordPress Media Uploader (WP Admin > Media > Add new) the upload stalls at around 13% and I get an error message appear on screen "HTTP error".

到目前为止,我已经创建了一个php.ini文件在我的Word preSS根与以下内容:

So far I have created a php.ini file in my WordPress root with the following:

memory_limit = 256M
upload_max_filesize = 16M
post_max_size = 64M

我也把php.ini文件在我/可湿性粉剂管理员/文件夹(一个确切的上述副本)。

I've also put a php.ini file in my /wp-admin/ folder (an exact duplicate of the above).

检查的phpinfo()我能看到这些变化已经生效,但他们并没有解决我收到HTTP错误的问题后。

After checking with phpinfo() I can see these changes have taken effect but they have not resolved the 'HTTP error' problem I am getting.

我使用的是1and1.co.uk专用服务器(管理),所以不具有root权限。的1and1已经证实普通的CGI在服务器上启用(不快速CGI如果使多大差别?)。

I am using a 1and1.co.uk dedicated server (managed) so don't have root access. 1and1 have confirmed plain CGI is enabled on the server (not Fast CGI if that makes much difference?).

为什么会这个错误是这样吗?还有什么我能做的来尝试解决这个问题?

Why might this error be happening? Is there anything else I can do to try to resolve it?

更新:我一直在使用不同的浏览器和不同的设备做了一些测试:

UPDATE: I have done some testing using different browsers and different devices:

宏碁Aspire One上网本

Acer Aspire One netbook


  • - 存在问题

  • 火狐 - 存在问题

  • IE浏览器的 - 工作

  • Safari浏览器的 - 存在问题

宏碁Aspire 5552笔记本电脑

Acer Aspire 5552 laptop


  • 铬的 - 工作

  • 火狐的 - 工作

  • IE浏览器的 - 工作

  • Safari浏览器的 - 工作

  • Chrome - working
  • FireFox - working
  • IE - working
  • Safari - working

谷歌Nexus 7平板电脑

Google Nexus 7 tablet


  • 铬的 - 工作

  • 火狐的 - 工作

  • IE浏览器的 - 工作

  • Safari浏览器的 - 工作

  • Chrome - working
  • FireFox - working
  • IE - working
  • Safari - working

三星Galaxy G4迷你

Samsung Galaxy G4 Mini


  • 铬的 - 工作

  • 火狐的 - 工作

  • IE浏览器的 - 工作

  • Safari浏览器的 - 工作

  • Chrome - working
  • FireFox - working
  • IE - working
  • Safari - working

正如你所看到的问题只存在于浏览器,FF和Safari在我的宏碁Aspire One上网本。可能是什么这个问题的根源?

As you can see the problem only exists in Chrome, FF and Safari on my Acer Aspire One netbook. What could be the source of this problem?

推荐答案

我把下面的code到我functions.php文件。它的工作原理!

I put the following code into my functions.php file. It works!

add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}

这篇关于通过字preSS媒体上传上传图片时,HTTP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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