dongliao1948 2014-04-28 14:24
浏览 150

通过WordPress Media Uploader上传图像时出现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".

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

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

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

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:

Acer Aspire One netbook

  • Chrome - problem exists
  • FireFox - problem exists
  • IE - working
  • Safari - problem exists

Acer Aspire 5552 laptop

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

Google Nexus 7 tablet

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

Samsung Galaxy G4 Mini

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

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?

  • 写回答

12条回答 默认 最新

  • duannaikuang1301 2014-04-28 14:37
    关注

    Try a smaller image - both file size and display size - and see if you can upload it.

    mod_security might be causing problems. Disable it to see if that is the problem.

    Make an .htaccess file in your wp-admin directory. Add this to it:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
    
    评论

报告相同问题?

悬赏问题

  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行