#41483 closed defect (bug) (duplicate)
supressed memory limit error at imagecreatefromstring
Reported by: | klugmario | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.8 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
Hello,
I just found out that a fatal error thrown by imagecreatefromstring in wp-includes/class-wp-image-editor-gd.php gets suppressed by an @ before the function call.
https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-image-editor-gd.php#L97
Is this really neccessary?
I had to dig very deep to find out why a clients homepage on a hosted environment does not work.
Without this the out of memory limit error message would have been displayed by enabling WP_DEBUG.
For my understanding it would not make mp difference without the @ when WP_DEBUG is not enabled.
Why it's not possible to increase the limit with ini_set or .htaccess is a topic for the hoster but it would have been fine to see this error.
Thanks in advance.
Hi klugmario, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #23127.