WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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.

Change History (2)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Media
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi klugmario, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #23127.

#2 @klugmario
3 years ago

Sorry, my bad. Thanks for your prompt reply.

Note: See TracTickets for help on using tickets.