Skip Navigation

[Resolved] Image error on user upload from post form

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 3 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2233665

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?

#2233667
6770A017-A9C8-43A0-ACA5-0675C4FFB70E.png

Meant to include a screenshot. Here’s one.

#2233759

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