Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27913 closed defect (bug) (duplicate)

$this->default_headers; is not set as an array

Reported by: grapplerulrich's profile grapplerulrich Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: Customize Keywords:
Focuses: Cc:

Description

I get this error in the customizer(wp-admin/customize.php)

Warning: Invalid argument supplied for foreach() in /wp-admin/custom-header.php on line 1248

Warning: array_merge(): Argument #2 is not an array in /wp-admin/custom-header.php on line 1268

I came across this bug in Responsive and was able to replicate it in TwentyTwelve with a minor code change.

This error arrises when a default image is set for add_theme_support( 'custom-header' );

Change 'default-image' => '', to 'default-image' => get_template_directory_uri() . '/inc/default-image.png', in /wp-content/themes/twentytwelve/inc/custom-header.php line 26 to replicate.

Attachments (1)

cods.bmp (347.5 KB) - added by codsan.com 10 years ago.

Download all attachments as: .zip

Change History (5)

#1 in reply to: ↑ description @grapplerulrich
10 years ago

This was introduced with #21785

#2 @ocean90
10 years ago

  • Component changed from Themes to Appearance
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #27850.

#3 @rocketero
10 years ago

  • Resolution duplicate deleted
  • Status changed from closed to reopened

I also saw those lines errors like Warning: Invalid argument supplied for foreach() in /wp-admin/custom-header.php on line 1248

there were several of them and they disappeared very quick and then it shows the responsive page.

Also I don't see where to edit those 3 widgets at the bottom of the page or the content with the monkey image.

#4 @SergeyBiryukov
10 years ago

  • Resolution set to duplicate
  • Status changed from reopened to closed

It's still a duplicate of #27850.

@codsan.com
10 years ago

Note: See TracTickets for help on using tickets.