• Hello WordPress community,

    I hope you can assist me with a perplexing issue I’m experiencing on my website. I recently noticed that there’s a problem with image uploads on my WordPress site, and I’m seeking guidance on how to resolve it.

    Problem Details:

    1. Upload Error: When attempting to upload images through the WordPress media uploader, I consistently encounter an error message. The error is not specific and simply states, “Failed to upload image.”
    2. File Types: I have verified that the file types I am attempting to upload (e.g., JPEG, PNG) are supported, and the file sizes are well within the allowed limits.
    3. Folder Permissions: I have also checked and confirmed that the wp-content/uploads folder and its subdirectories have the correct permissions (755 for directories and 644 for files).
    4. Plugin Conflict: To rule out a plugin conflict, I disabled all plugins and attempted the image upload again, but the issue persisted.
    5. Theme Check: I switched to a default WordPress theme (e.g Twenty Twenty-One) to ensure that the problem is not theme-related, but the error still occurred.
    6. WordPress and Plugin Versions: My WordPress installation and all plugins are up to date with the latest versions.

    I have researched this issue extensively, but I haven’t been able to find a solution. If anyone has encountered a similar problem or has suggestions on how to troubleshoot and fix this issue, I would greatly appreciate your assistance. Thank you in advance for your time and expertise!

    • This topic was modified 1 year, 2 months ago by hafizanas.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @hafizanas,

    It seems you have done the basic troubleshooting steps already on your WordPress site. These are the next steps I suggest to troubleshoot further:

    1. If you are under a VPS or Dedicated server, clear your server’s ‘tmp’ folder and try again.
    2. If you are using a shared server or have no access to the ‘tmp’ folder on the server, check with your hosting provider on clearing this up.
    3. Make sure you still have available space on your hosting.

    All the best!

    Check if GD image extension is enabled in your php configuration.

    install a php info plugin and in your server’s php info check for GD extension.

    Review your server error logs for more detailed information about the issue. Server logs can provide insights into what went wrong during the image upload process.

    Thread Starter hafizanas

    (@hafizanas)

    Thank you for your prompt response and additional troubleshooting suggestions. I appreciate your guidance on this matter. Here’s an update on the steps I’ve taken based on your recommendations:

    1. Server’s ‘tmp’ Folder: Unfortunately, I am on a shared server and don’t have direct access to clear the server’s ‘tmp’ folder. However, I have contacted my hosting provider to inquire about this and requested assistance in clearing the ‘tmp’ folder.
    2. Hosting Provider: I will follow up with my hosting provider regarding the ‘tmp’ folder and ensure that there are no issues on their end that might be causing the upload problem.
    3. Available Hosting Space: I have verified that there is ample available space on my hosting account, so that doesn’t seem to be the root cause of the issue.

    Once I receive a response from my hosting provider or if there are any updates, I will share the information here. If you have any further suggestions or insights, please feel free to let me know.

    Thank you again for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image Upload Issue on WordPress Website’ is closed to new replies.