Hi, so I have a post form that uses the WordPress media uploader to allow a user to upload images. This error has been posted about before but it doesn’t seem applicable to my case.
Anyway. It’s a generic error (“An error occurred in the upload. Pleas try again later.”) that does not consistently replicate across devices - but usually clearing cache or switching browser resolves the error. That is not an ideal solution at scale. Multiple users have encountered this error, but not all users do. It does not seem to be an access control issue as admins have experienced this (although I cannot replicate in my own account). I even created a staging environment but I cannot replicate on my machine.
What should I do? How can this be resolved? We have done custom work so it could be something interfering, but we also recently moved hosting. Yet there are no error logs to suggest something is up with our hosting provider, unless there is something you could point us to?
Meant to include a screenshot. Here’s one.
Hi,
Thank you for contacting us and I'd be happy to assist.
Based on what you've shared and the intermittent nature of the issue suggests that it requires some very specific conditions to reproduce.
If you've imported a large number of posts in the database or if multiple users are simultaneously uploading images and posts, then the auto-increment issue pointed out in this thread can be relevant:
https://stackoverflow.com/a/50161791
Additionally, it would be helpful to collect some information from the users who frequently face this, for example, the type and size of the image(s) that they tried to upload.
And lastly, if you're experiencing this only after moving to this new host, it would be a good idea to also raise this with their support team to see if any security or performance maintenance activity can interfere with this occasional image uploading issue.
regards,
Waqar