2.14.1.1.4. HTTP Error

When uploading files in WordPress, an HTTP Error may occur. This error can have many causes. To identify them, you should perform initial diagnostics and try to resolve the issue using the following methods:

  1. Check uploading different files of different sizes.
    A situation with a problem uploading a single file due to its specific name or WordPress limitations occurs quite often. For example, the cause can be special characters in the image file name.
  2. Check for the issue in another browser, in incognito mode or by clearing cache of current one.
    Error can occur due to admin panel site information saved in browser cache, which can be resolved by one of suggested methods.
  3. Check available disk space, including number of free inodes.
    One possible cause of problem can be insufficient disk space. It is recommended to have several times more free space than size of uploaded file itself.
  4. Disable site plugins.
    Some WordPress plugins can affect errors in CMS itself or file upload.
  5. Check server error log.
    Some errors can be written to server logs. For example, error log can contain the following entry:
    Internal error on sending request(POST /example.php HTTP/2.0); uri(/example.php) content-length(XXXXXXX): SendRequest: prepare(): open("/home/example/.system/tmp/XXXXX-XXXXXX-XXXXXXXXX", O_RDWR|O_CREAT|O_EXCL, 0600) failed, errno 13, referer https://example.com/example.php

    The cause of this error is incorrect permissions for temporary directory. To fix this, in this case it is enough to reset permissions for all files and directories.

  6. Error can occur when memory_limit or max_execution_time limits are insufficient. In this case, try increasing these limits.
  7. Try changing PHP version.
    After installing any plugins, making changes, or updating WordPress, you may need to change PHP version. (When changing CMS, new scripts may have been added that are supported only in new PHP versions, or, conversely, deprecated functions may have been added that are removed from new PHP versions).
  8. Try replacing current .htaccess file with standard one.
  9. Check the installed WordPress theme. Try temporarily installing another one and check the issue with it.
  10. If the issue started occurring after specific actions on the site, you can try to restore a backup of site files and database. (It is recommended to restore site and database backup for the same date).
Content