[wp-trac] [WordPress Trac] #31286: Unable to add or use new header images in themes in 4.1

WordPress Trac noreply at wordpress.org
Tue Feb 10 20:39:32 UTC 2015


#31286: Unable to add or use new header images in themes in 4.1
--------------------------+-----------------------------
 Reporter:  ahamelers     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Now that the header image menu has been moved to the customize screen, I
 am unable to add new header images to any of my sites.

 After uploading an image through the Header menu, then pressing "Select
 and crop", there is no way to select or crop the image. If one clicks to
 go forward without cropping, it does not seem that the image information
 is set and retrievable through
 {{{
 get_theme_mod('header_image_data')
 }}}

 At least, the image is not appearing as the header in my theme. All images
 uploaded before the upgrade are showing up fine. I have tried this in
 several themes.

 Here are the errors from my logs. They seem to be errors in WP Core:

 My site information replaced with [...]

 {{{
 [Tue Feb 10 11:13:34 2015] [error] PHP Warning:  imagecreatetruecolor():
 Invalid image dimensions in /home/www/html/library/wp-includes/media.php
 on line 2043, referer: [...]/wp-admin/customize.php?theme=[..]
 [Tue Feb 10 11:13:34 2015] [error] PHP Warning:  imageantialias() expects
 parameter 1 to be resource, boolean given in /home/www/html/library/wp-
 includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-
 admin/customize.php?theme=[...]
 [Tue Feb 10 11:13:34 2015] [error] PHP Warning:  imagecopyresampled()
 expects parameter 1 to be resource, boolean given in
 /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line
 285, referer: [...]/wp-admin/customize.php?theme=[...]
 [Tue Feb 10 11:20:28 2015] [error] PHP Warning:  imagecreatetruecolor():
 Invalid image dimensions in /home/www/html/library/wp-includes/media.php
 on line 2043, referer: [...]/wp-admin/customize.php?theme=[...]
 [Tue Feb 10 11:20:28 2015] [error] PHP Warning:  imageantialias() expects
 parameter 1 to be resource, boolean given in /home/www/html/library/wp-
 includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-
 admin/customize.php?theme=[...]
 [Tue Feb 10 11:20:28 2015] [error] PHP Warning:  imagecopyresampled()
 expects parameter 1 to be resource, boolean given in
 /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line
 285, referer: [...]/wp-admin/customize.php?theme=[...]
 [Tue Feb 10 14:20:34 2015] [error] PHP Warning:  imagecreatetruecolor():
 Invalid image dimensions in /home/www/html/library/wp-includes/media.php
 on line 2043, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-
 admin%2Fthemes.php&autofocus[control]=header_image
 [Tue Feb 10 14:20:34 2015] [error] PHP Warning:  imageantialias() expects
 parameter 1 to be resource, boolean given in /home/www/html/library/wp-
 includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-
 admin/customize.php?return=%2Fdisc%2Fwp-
 admin%2Fthemes.php&autofocus[control]=header_image
 [Tue Feb 10 14:20:34 2015] [error] PHP Warning:  imagecopyresampled()
 expects parameter 1 to be resource, boolean given in
 /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line
 285, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-
 admin%2Fthemes.php&autofocus[control]=header_image
 [Tue Feb 10 14:32:58 2015] [error] PHP Warning:  imagecreatetruecolor():
 Invalid image dimensions in /home/www/html/library/wp-includes/media.php
 on line 2043, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-
 admin%2F&autofocus[control]=header_image
 [Tue Feb 10 14:32:58 2015] [error] PHP Warning:  imageantialias() expects
 parameter 1 to be resource, boolean given in /home/www/html/library/wp-
 includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-
 admin/customize.php?return=%2Fdisc%2Fwp-
 admin%2F&autofocus[control]=header_image
 [Tue Feb 10 14:32:58 2015] [error] PHP Warning:  imagecopyresampled()
 expects parameter 1 to be resource, boolean given in [..]/wp-includes
 /class-wp-image-editor-gd.php on line 285, referer: [..]/wp-
 admin/customize.php?return=%2Fdisc%2Fwp-
 admin%2F&autofocus[control]=header_image
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31286>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list