This feed does not validate.
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515 ...
^
In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
</description>
<title>WordPress Trac</title>
^
line 201, column 13: (3 occurrences) [help]
<title></title>
^
</channel>
^
<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>WordPress Trac: Ticket #21515: No custom header support in theme == Fatal error: Call to a member function process_default_headers() on a non-object</title>
<link>https://core.trac.wordpress.org/ticket/21515</link>
<description><p>
In 3.5 (21468).
</p>
<p>
Using the customizer on a theme without custom header support causes fatal error.
</p>
<pre class="wiki">Fatal error: Call to a member function process_default_headers() on a non-object in /Users/chris/Sites/newpatch/wp-includes/class-wp-customize-control.php on line 759
Call Stack
# Time Memory Function Location
1 0.0012 287640 {main}( ) ../customize.php:0
2 0.3554 19316040 do_action( ) ../customize.php:34
3 0.3554 19317640 call_user_func_array ( ) ../plugin.php:406
4 0.3555 19317672 WP_Customize_Header_Image_Control-&gt;prepare_control( ) ../plugin.php:406
</pre><p>
var_dump( $custom_image_header ) results in NULL when theme does not have custom header support.
</p>
<p>
Simple solution that fixes fatal error is a check on the object variable and return if empty.
</p>
</description>
<language>en-us</language>
<image>
<title>WordPress Trac</title>
<url>https://core.trac.wordpress.org/chrome/site/your_project_logo.png</url>
<link>https://core.trac.wordpress.org/ticket/21515</link>
</image>
<generator>Trac 1.2.2</generator>
<item>
<dc:creator>c3mdigital</dc:creator>
<pubDate>Tue, 07 Aug 2012 23:38:46 GMT</pubDate>
<title>attachment set</title>
<link>https://core.trac.wordpress.org/ticket/21515</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515</guid>
<description>
<ul>
<li><strong>attachment</strong>
set to <em>21515.patch</em>
</li>
</ul>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>SergeyBiryukov</dc:creator>
<pubDate>Wed, 08 Aug 2012 00:31:53 GMT</pubDate>
<title>component, milestone changed</title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:1</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:1</guid>
<description>
<ul>
<li><strong>component</strong>
changed from <em>General</em> to <em>Appearance</em>
</li>
<li><strong>milestone</strong>
changed from <em>Awaiting Review</em> to <em>3.5</em>
</li>
</ul>
<p>
Introduced in <a class="changeset" href="https://core.trac.wordpress.org/changeset/21383" title="Remove the ability to upload custom headers in the customizer. ...">[21383]</a>.
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>SergeyBiryukov</dc:creator>
<pubDate>Wed, 08 Aug 2012 00:32:21 GMT</pubDate>
<title>attachment set</title>
<link>https://core.trac.wordpress.org/ticket/21515</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515</guid>
<description>
<ul>
<li><strong>attachment</strong>
set to <em>21515.2.patch</em>
</li>
</ul>
<p>
Same as 21515.patch, with proper whitespace
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>ryan</dc:creator>
<pubDate>Fri, 10 Aug 2012 20:15:07 GMT</pubDate>
<title>status changed; owner, resolution set</title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:2</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:2</guid>
<description>
<ul>
<li><strong>owner</strong>
set to <em>ryan</em>
</li>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>fixed</em>
</li>
</ul>
<p>
In <a class="changeset" href="https://core.trac.wordpress.org/changeset/21497" title="Avoid fatal error in the customizer when the current theme doesn't ...">[21497]</a>:
</p>
<div class="message"><p>
Avoid fatal error in the customizer when the current theme doesn't support custom headers. Props c3mdigital. fixes <a class="closed ticket" href="https://core.trac.wordpress.org/ticket/21515" title="#21515: defect (bug): No custom header support in theme == Fatal error: Call to a member ... (closed: fixed)">#21515</a><br />
</p>
</div>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>nacin</dc:creator>
<pubDate>Mon, 03 Sep 2012 22:13:54 GMT</pubDate>
<title>status, milestone changed; resolution deleted</title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:3</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:3</guid>
<description>
<ul>
<li><strong>status</strong>
changed from <em>closed</em> to <em>reopened</em>
</li>
<li><strong>resolution</strong>
<em>fixed</em> deleted
</li>
<li><strong>milestone</strong>
changed from <em>3.5</em> to <em>3.4.2</em>
</li>
</ul>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>nacin</dc:creator>
<pubDate>Tue, 04 Sep 2012 02:51:08 GMT</pubDate>
<title>keywords changed</title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:4</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:4</guid>
<description>
<ul>
<li><strong>keywords</strong>
<em>commit</em> added; <em>dev-feedback</em> removed
</li>
</ul>
<p>
Ready to be merged to the 3.4 branch.
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>nacin</dc:creator>
<pubDate>Tue, 04 Sep 2012 04:54:02 GMT</pubDate>
<title>status changed; resolution set</title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:5</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:5</guid>
<description>
<ul>
<li><strong>status</strong>
changed from <em>reopened</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>fixed</em>
</li>
</ul>
<p>
In <a class="changeset" href="https://core.trac.wordpress.org/changeset/21724" title="Remove custom header uploads from the customizer.
For the 3.4 branch. ...">[21724]</a>:
</p>
<div class="message"><p>
Remove custom header uploads from the customizer.<br />
</p>
<p>
For the 3.4 branch. It will return when crop ability is added.<br />
</p>
<p>
props koopersmith.<br />
see <a class="closed ticket" href="https://core.trac.wordpress.org/ticket/21355" title="#21355: defect (bug): Crop header images inside the customizer (closed: fixed)">#21355</a>. fixes <a class="closed ticket" href="https://core.trac.wordpress.org/ticket/21515" title="#21515: defect (bug): No custom header support in theme == Fatal error: Call to a member ... (closed: fixed)">#21515</a>. fixes <a class="closed ticket" href="https://core.trac.wordpress.org/ticket/21707" title="#21707: defect (bug): Theme Customizer: Javascript errors in Internet Explorer are blocking ... (closed: fixed)">#21707</a>.<br />
merges <a class="changeset" href="https://core.trac.wordpress.org/changeset/21379" title="Make the browser property in wp.Uploader optional. fixes #21437.
">[21379]</a> <a class="changeset" href="https://core.trac.wordpress.org/changeset/21380" title="When the browser property is not provided to wp.Uploader, hide ...">[21380]</a> <a class="changeset" href="https://core.trac.wordpress.org/changeset/21383" title="Remove the ability to upload custom headers in the customizer. ...">[21383]</a> <a class="changeset" href="https://core.trac.wordpress.org/changeset/21385" title="Add @since documentation, see #21355.">[21385]</a> <a class="changeset" href="https://core.trac.wordpress.org/changeset/21386" title="Fix @since blocks... since we already released 3.4.1. see #21355.">[21386]</a> <a class="changeset" href="https://core.trac.wordpress.org/changeset/21497" title="Avoid fatal error in the customizer when the current theme doesn't ...">[21497]</a> <a class="changeset" href="https://core.trac.wordpress.org/changeset/21722" title="Do not instantiate a Plupload instance when the wp-plupload bridge has ...">[21722]</a>.<br />
</p>
</div>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>miqrogroove</dc:creator>
<pubDate>Sun, 09 Sep 2012 04:47:17 GMT</pubDate>
<title></title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:6</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:6</guid>
<description>
<p>
Seems like a similar problem:
</p>
<p>
When I activate the 2011 theme and click Customize, it brings up a left-side menu column and a right-side preview of the website.
</p>
<p>
When I activate an older theme of my own that does not support the new features, it brings up a left-side menu column only, and then continuously auto-refreshes the page until I close it. There are no errors being generated.
</p>
<p>
Do you need a new ticket for that?
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>nacin</dc:creator>
<pubDate>Sun, 09 Sep 2012 05:07:27 GMT</pubDate>
<title></title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:7</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:7</guid>
<description>
<p>
Yes please.
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>bloomhejm</dc:creator>
<pubDate>Wed, 06 Mar 2024 20:25:37 GMT</pubDate>
<title></title>
<link>https://core.trac.wordpress.org/ticket/21515#comment:8</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:8</guid>
<description>
<p>
WordPress. The error message you provided indicates that there is an issue with the WP_Customize_Header_Image_Control class and its process_default_headers() method being called on a non-object. This error typically occurs when you attempt to use the Customizer with a theme that doesn't support custom headers.
Here's a possible solution to handle this error by checking whether the WP_Customize_Header_Image_Control object exists before calling its methods:
</p>
<div class="wiki-code"><div class="code"><pre><span class="cp">&lt;?php</span>
<span class="k">if</span> <span class="p">(</span> <span class="nb">class_exists</span><span class="p">(</span> <span class="s1">'WP_Customize_Header_Image_Control'</span> <span class="p">)</span> <span class="p">)</span> <span class="p">{</span>
<span class="nv">$custom_image_header</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">WP_Customize_Header_Image_Control</span><span class="p">(</span> <span class="nv">$wp_customize</span> <span class="p">);</span>
<span class="k">if</span> <span class="p">(</span> <span class="nb">is_object</span><span class="p">(</span> <span class="nv">$custom_image_header</span> <span class="p">)</span> <span class="p">)</span> <span class="p">{</span>
<span class="c1">// Process custom header controls here
</span> <span class="p">}</span>
<span class="p">}</span>
</pre></div></div><p>
This code snippet checks if the WP_Customize_Header_Image_Control class exists, and if it does, it attempts to create an instance of it. Then, it checks if the instance is a valid object before proceeding to process custom header controls.
</p>
</description>
<category>Ticket</category>
</item>
</channel>
</rss>