Wordpress:“HTTP错误”。上传文件时 [英] Wordpress: "HTTP Error." When Uploading Files

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

问题描述

我正在使用PHP5在共享主机上运行WP 3.0.1。我在通过WP的管理部分中的媒体上传器上传更大的文件时遇到问题。

I'm running WP 3.0.1 on a shared host using PHP5. I'm having issues uploading files that are a little larger via the media uploader in the admin section of WP.

每次我尝试上传一些超过几个文件的文件时兆字节,它上传,说它的嘎吱嘎吱,然后给了我一个大的红色HTTP错误。 - 仅此而已。

Every time I try to upload a file thats over a few megabytes, it uploads, says its crunching, then gives me a big red "HTTP Error." - nothing more.

这仅发生在稍微大一点的文件上 - 即20mb .mp3文件。一个5mb的文件似乎工作正常。奇怪的是,过去我们上传的40mb文件没有问题。

This only happens on files that are a little larger - ie a 20mb .mp3 file. A 5mb file seems to work fine. Whats weird is in the past we've uploaded 40mb files without a problem.

-

这是到目前为止,我已尝试采取措施来解决问题:

Here's the steps I've taken so far to try and remedy the situation:


  1. 仔细检查php.ini以确保增加上传,发布和内存大小足够高了。

  2. 更新了.htaccess以包含过滤我在其他地方找到的安全模式。

  3. 通过ftp双重检查所有文件权限以确保它们是755。

  4. 称主持人 - 他们不支持第三方脚本(我讨厌IPower)

  5. 尝试使用类似的不同音频文件

  6. 禁用所有插件

  1. Double checked php.ini to ensure increase upload, post and memory size were high enough.
  2. Updated .htaccess to include filter the security mod I found elsewhere.
  3. Double checked all file permissions via ftp to ensure they were 755.
  4. Called the host - "They don't support 3rd party scripts" (I hate IPower)
  5. Tried with different audio files of similar size.
  6. Disabled all plugins

-

你们有什么想法可能导致模糊的HTTP错误吗?问题?

Do you guys have any more ideas regarding what might be causing the vague "HTTP Error." problem?

提前致谢。

推荐答案

问题如同你已经推断过,你的文件上传大小。只是提醒你,HTTP并不是真的用于传输大文件... 可以这样做,但并非总是如此,而且不是很好。您遇到的问题是主机因为文件太大而切断了传输。它很可能是一个你无法访问的服务器设置。

The problem, as you've already inferred, is in the size of your file upload. Just to remind you, HTTP isn't really built for transferring large files ... it can do it, but not always, and not very well. You're running into an issue where your host is cutting off the transfer because the file is too large. It's most likely a server setting somewhere that you don't have access to.

因为他们不支持第三方脚本我猜你在一个共享的托管环境,这就是为什么在你没有做任何事情的情况下可能会在你的服可能的解决方案:

Since "they don't support 3rd party scripts" I'm guessing you're in a shared hosting environment, which is why something could change on your server without you doing anything. Possible solutions:


  1. 获取不同的主机

  2. 使用专用服务器

  3. 通过FTP传输较大的文件,而不是从WordPress传输。

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

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