• Very strange issue, and I don’t see why it would be happening. So I’m working on a page and when I go to add a new image, it errors with:

    ERROR: Slide2.png An error occurred in the upload. Please try again later.

    Here’s the weird thing: It DOES upload. I can’t see it at that moment, but if I clear my cache / close and reopen my browser and go to the media, it did actually upload.
    What could be causing this? Any updates to WP in the last week or two that might have triggered this? It’s only this site – I’ve checked all my logs and no errors are actually showing.

    The file sizes are all small (under 1mb) and I have it set to allow 10 mb, so it isn’t that, they are png and jpg files as usual. Stumped, but it’s taking my time having to constantly clear my cache/close my browser to see what actually worked.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check whether there is enough free storage space in the hosting.

    If there is enough, take a look at the hosting error log. You should be able to see the cause there. Your hoster’s support can help you find the error log.

    Also have a look under Tools > Site Health to see if anything conspicuous is mentioned there.

    Alor UX

    (@jerrymayalor555)

    Hi @dimeco,

    To fix this issue, you can try the following steps:

    1. Increase PHP Memory Limit:
    • Locate your wp-config.php file in the root directory of your WordPress installation.
    • Open the wp-config.php file using a text editor.
      Add the following line before the “/* That’s all, stop editing! Happy blogging. */” line:php
    • Copy code
    • define('WP_MEMORY_LIMIT', '512M');
    • You can increase the value if needed, depending on your server’s capabilities.
    • Save the changes and upload the modified wp-config.php file to your server.
    1. Modify .htaccess File:
    • If increasing the PHP memory limit doesn’t resolve the issue, you can also try modifying your .htaccess file.
    • Locate your .htaccess file in the root directory of your WordPress installation.
    • Add the following line to increase the memory limit
    • Copy code
      php_value memory_limit 512M
    • Save the changes and upload the modified .htaccess file to your server.
    1. Contact Your Hosting Provider:
    • If the above steps do not resolve the issue, you might need to contact your hosting provider and ask them to increase the PHP memory limit for your site.

      I hope this resolves the issue.

      All the best
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upload Error – but it DOES upload.’ is closed to new replies.