[wp-trac] [WordPress Trac] #39387: Responsive Images Broken When Full Size <= 300 px
WordPress Trac
noreply at wordpress.org
Sat Dec 24 22:23:32 UTC 2016
#39387: Responsive Images Broken When Full Size <= 300 px
--------------------------+------------------------------
Reporter: miqrogroove | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by miqrogroove):
After 3 hours of working my way down the rabbit hole, CABOOM! WordPress
is silently crashing!!!
WordPress calls {{{$resized = $this->_save( $this->image );}}} and NEVER
checks the result value!
{{{
ImagickException::__set_state(array(
'message' => 'memory allocation failed `/wp-
content/uploads/2016/12/2016-12-18-19-36_20161218_18-768x577.gif\' @
error/gif.c/WriteGIFImage/1633',
'string' => '',
'code' => 400,
'file' => '/wp-includes/class-wp-image-editor.php',
'line' => 423,
'trace' =>
array (
0 =>
array (
'function' => 'writeimage',
'class' => 'Imagick',
'type' => '->',
'args' =>
array (
0 => '/wp-
content/uploads/2016/12/2016-12-18-19-36_20161218_18-768x577.gif',
),
),
1 =>
array (
'file' => '/wp-includes/class-wp-image-editor.php',
'line' => 423,
'function' => 'call_user_func_array',
'args' =>
array (
0 =>
array (
0 =>
Imagick::__set_state(array(
)),
1 => 'writeImage',
),
1 =>
array (
0 => '/wp-
content/uploads/2016/12/2016-12-18-19-36_20161218_18-768x577.gif',
),
),
),
2 =>
array (
'file' => '/wp-includes/class-wp-image-editor-imagick.php',
'line' => 486,
'function' => 'make_image',
'class' => 'WP_Image_Editor',
'type' => '->',
'args' =>
array (
0 => '/wp-
content/uploads/2016/12/2016-12-18-19-36_20161218_18-768x577.gif',
1 =>
array (
0 =>
Imagick::__set_state(array(
)),
1 => 'writeImage',
),
2 =>
array (
0 => '/wp-
content/uploads/2016/12/2016-12-18-19-36_20161218_18-768x577.gif',
),
),
),
3 =>
array (
'file' => '/wp-includes/class-wp-image-editor-imagick.php',
'line' => 321,
'function' => '_save',
'class' => 'WP_Image_Editor_Imagick',
'type' => '->',
'args' =>
array (
0 =>
Imagick::__set_state(array(
)),
),
),
4 =>
array (
'file' => '/wp-admin/includes/image.php',
'line' => 124,
'function' => 'multi_resize',
'class' => 'WP_Image_Editor_Imagick',
'type' => '->',
'args' =>
array (
0 =>
array (
'thumbnail' =>
array (
'width' => '150',
'height' => '150',
'crop' => '',
),
'medium' =>
array (
'width' => '300',
'height' => '300',
'crop' => false,
),
'medium_large' =>
array (
'width' => '768',
'height' => '0',
'crop' => false,
),
'large' =>
array (
'width' => '1024',
'height' => '1024',
'crop' => false,
),
),
),
),
5 =>
array (
'file' => '/wp-admin/includes/media.php',
'line' => 373,
'function' => 'wp_generate_attachment_metadata',
'args' =>
array (
0 => 313,
1 => '/wp-
content/uploads/2016/12/2016-12-18-19-36_20161218_18.gif',
),
),
6 =>
array (
'file' => '/wp-admin/includes/ajax-actions.php',
'line' => 2037,
'function' => 'media_handle_upload',
'args' =>
array (
0 => 'async-upload',
1 => NULL,
2 =>
array (
),
),
),
7 =>
array (
'file' => '/wp-admin/async-upload.php',
'line' => 43,
'function' => 'wp_ajax_upload_attachment',
'args' =>
array (
),
),
),
'previous' => NULL,
))
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39387#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list