We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Suggestions

Assets error notifications

Hello,

A client recently tried to upload an image (from a blog post edit form so it was via the pop up Assets modal). The image was too large so naturally the image couldn't be uploaded.

This isn't an issue. The lack of feedback kind of is. It would be nice if an error notification is displayed in such cases. If the notification message can shed some light on what went wrong, that would be great. If not, at least a general message like "Something went wrong. Check your error log for more information." is better than nothing.

Hussein Al Hammad

Hussein Al Hammad 105 points

  • 1 year ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The field should be turning red in that instance.

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

The modal was still active so the field was not visible.

What I'm seeing after selecting the image:

  • A blue notification bar saying the image is being uploaded
  • The notification bar disappears after a few seconds

Nothing else happens after that. The modal is still active at this stage. After closing the modal the image field appears normal (isn't highlighted in red).

In case this helps, this is the error I see in the error logs:

'PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 24576 bytes) in /home/181143.cloudwaysapps.com/xxx/public_html/perch/core/lib/PerchImage.class.php on line 625\n', referer: https://www.example.com/perch/addons/apps/perch_blog/edit/?blog=2
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ah ok. If PHP runs out of memory and stops executing, then the script can't return an error message.

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Fair enough! Thanks, Drew.