HTTP Error

When uploading files to WordPress, you may receive an HTTP Error. There can be many reasons for this error. To determine them, it is worth conducting an initial diagnosis and trying to fix the problem using the following methods:

  1. Check uploading different files of different sizes.
    The situation with the problem of uploading one file due to its specific name or limitations of WordPress itself is quite common. For example, the reason may be the presence of special characters in the name of the image file.
  2. Check for the problem in another browser, incognito mode or clearing the cache current.
    The error can occur due to the information stored in the browser cache of the site's admin panel, which can be solved by one of the proposed methods.
  3. Check available disk space, including the number of free inodes.
    Insufficient disk space may be one of the causes of the problem. It is recommended to have several times more free space than the size of the downloaded file itself.
  4. Disable site plugins.
    Some WordPress plugins can cause errors in the CMS itself or file uploads.
  5. Check error log server.
    Some errors can be displayed in the server logs. For example, the following entry may be present in the error log:
    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

    This error is caused by incorrectly set access rights to the temporary directory. To rectify the situation, in this case, it is enough reset rights to all files and directories.

  6. An error can occur when there are not enough limits memory_limit or max_execution_time. In this case, it is worth trying to increase these limits.
  7. Tryit change PHP version.
    After installing any plugins, making changes or updating WordPress, it may be necessary to change the PHP version. (During CMS changes, new scripts could be added that are supported only in new versions of PHP, or vice versa, obsolete functions were added that were removed from new versions of PHP).
  8. Try to replace the current file .htaccess on standard.
  9. Check your installed WordPress theme. Try to temporarily install another one and check the problem with it.
  10. If the problem began to manifest itself after certain actions on the site, then you can try restore backup a copy of the site and database files. (It is recommended to restore a copy of the site and database on the same date).