Unable to upload media to WordPress

  • Unknown's avatar

    For ~2 months now, client has been unable to upload media files via WordPress Media Upload, nor via WP File Manager plugin.

    The site is hosted with GoDaddy, and we have checked that we are able to upload all file types in the File Manager in cPanel.

    From what I can tell, this does not appear to be related to image pixels or file size. Uploads time out (regardless of size) and usually one of these two errors is presented:

    The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.

    And

    Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.

    Both errors suggest file sizes are too big, yet uploads fail regardless of file size. I have tried multiple 30kb files and images that are 300 pixels, so it does not appear to be file size related. Debugging is on in wp-config.php, but we get no errors.

    Steps that I have currently investigated:

    • Deactivated all plugins, one by one to see if it is a plugin issue (No).
    • Set theme to twentytwentyfour, to see if it was a theme issue (No).
    • Set upload and memory limits to maximum’s in PHP settings in cPanel (No).
    • Reset limits to default, and tried again multiple times (No).
    • Have set the PHP version to default settings (No).
    • Have tried to force set upload limits using @ini_set in the theme functions.php and in wp-config.php (No).
    • Have checked permissions of the WP content upload folder and this is correct.
    • Current settings in wp-admin/.user.ini: memory_limit = 1024M
      upload_max_filesize = 512M
      post_max_size = 512M
      max_execution_time = 5000
      max_input_time = 5000
      max_input_vars = 5000

    Other things that I have tried disabling is GD in PHP Extensions, based on assumption that GD may have been interfering with imagick.

    Where else may code be stored that is interfering with this? Are there any other things that I should check that are not included above?

    What am I missing?

  • The topic ‘Unable to upload media to WordPress’ is closed to new replies.