Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: https://core.trac.wordpress.org/ticket/21515?format=rss

  1. <?xml version="1.0"?>
  2. <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  3.  <channel>
  4.    <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>
  5.    <link>https://core.trac.wordpress.org/ticket/21515</link>
  6.    <description>&lt;p&gt;
  7. In 3.5 (21468).
  8. &lt;/p&gt;
  9. &lt;p&gt;
  10. Using the customizer on a theme without custom header support causes fatal error.
  11. &lt;/p&gt;
  12. &lt;pre class="wiki"&gt;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
  13. Call Stack
  14. # Time Memory Function Location
  15. 1 0.0012 287640 {main}( ) ../customize.php:0
  16. 2 0.3554 19316040 do_action( ) ../customize.php:34
  17. 3 0.3554 19317640 call_user_func_array ( ) ../plugin.php:406
  18. 4 0.3555 19317672 WP_Customize_Header_Image_Control-&amp;gt;prepare_control( ) ../plugin.php:406
  19. &lt;/pre&gt;&lt;p&gt;
  20. var_dump( $custom_image_header ) results in NULL when theme does not have custom header support.
  21. &lt;/p&gt;
  22. &lt;p&gt;
  23. Simple solution that fixes fatal error is a check on the object variable and return if empty.
  24. &lt;/p&gt;
  25. </description>
  26.    <language>en-us</language>
  27.    <image>
  28.      <title>WordPress Trac</title>
  29.      <url>https://core.trac.wordpress.org/chrome/site/your_project_logo.png</url>
  30.      <link>https://core.trac.wordpress.org/ticket/21515</link>
  31.    </image>
  32.    <generator>Trac 1.2.2</generator>
  33.    <item>
  34.      
  35.        <dc:creator>c3mdigital</dc:creator>
  36.  
  37.      <pubDate>Tue, 07 Aug 2012 23:38:46 GMT</pubDate>
  38.      <title>attachment set</title>
  39.      <link>https://core.trac.wordpress.org/ticket/21515</link>
  40.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515</guid>
  41.      <description>
  42.          &lt;ul&gt;
  43.            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
  44.                set to &lt;em&gt;21515.patch&lt;/em&gt;
  45.            &lt;/li&gt;
  46.          &lt;/ul&gt;
  47.      </description>
  48.      <category>Ticket</category>
  49.    </item><item>
  50.      
  51.        <dc:creator>SergeyBiryukov</dc:creator>
  52.  
  53.      <pubDate>Wed, 08 Aug 2012 00:31:53 GMT</pubDate>
  54.      <title>component, milestone changed</title>
  55.      <link>https://core.trac.wordpress.org/ticket/21515#comment:1</link>
  56.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:1</guid>
  57.      <description>
  58.          &lt;ul&gt;
  59.            &lt;li&gt;&lt;strong&gt;component&lt;/strong&gt;
  60.                changed from &lt;em&gt;General&lt;/em&gt; to &lt;em&gt;Appearance&lt;/em&gt;
  61.            &lt;/li&gt;
  62.            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
  63.                changed from &lt;em&gt;Awaiting Review&lt;/em&gt; to &lt;em&gt;3.5&lt;/em&gt;
  64.            &lt;/li&gt;
  65.          &lt;/ul&gt;
  66.        &lt;p&gt;
  67. Introduced in &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21383" title="Remove the ability to upload custom headers in the customizer. ..."&gt;[21383]&lt;/a&gt;.
  68. &lt;/p&gt;
  69.      </description>
  70.      <category>Ticket</category>
  71.    </item><item>
  72.      
  73.        <dc:creator>SergeyBiryukov</dc:creator>
  74.  
  75.      <pubDate>Wed, 08 Aug 2012 00:32:21 GMT</pubDate>
  76.      <title>attachment set</title>
  77.      <link>https://core.trac.wordpress.org/ticket/21515</link>
  78.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515</guid>
  79.      <description>
  80.          &lt;ul&gt;
  81.            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
  82.                set to &lt;em&gt;21515.2.patch&lt;/em&gt;
  83.            &lt;/li&gt;
  84.          &lt;/ul&gt;
  85.        &lt;p&gt;
  86. Same as 21515.patch, with proper whitespace
  87. &lt;/p&gt;
  88.      </description>
  89.      <category>Ticket</category>
  90.    </item><item>
  91.      
  92.        <dc:creator>ryan</dc:creator>
  93.  
  94.      <pubDate>Fri, 10 Aug 2012 20:15:07 GMT</pubDate>
  95.      <title>status changed; owner, resolution set</title>
  96.      <link>https://core.trac.wordpress.org/ticket/21515#comment:2</link>
  97.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:2</guid>
  98.      <description>
  99.          &lt;ul&gt;
  100.            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
  101.              set to &lt;em&gt;ryan&lt;/em&gt;
  102.            &lt;/li&gt;
  103.            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
  104.                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
  105.            &lt;/li&gt;
  106.            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
  107.                set to &lt;em&gt;fixed&lt;/em&gt;
  108.            &lt;/li&gt;
  109.          &lt;/ul&gt;
  110.        &lt;p&gt;
  111. In &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21497" title="Avoid fatal error in the customizer when the current theme doesn't ..."&gt;[21497]&lt;/a&gt;:
  112. &lt;/p&gt;
  113. &lt;div class="message"&gt;&lt;p&gt;
  114. Avoid fatal error in the customizer when the current theme doesn't support custom headers. Props c3mdigital. fixes &lt;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)"&gt;#21515&lt;/a&gt;&lt;br /&gt;
  115. &lt;/p&gt;
  116. &lt;/div&gt;
  117.      </description>
  118.      <category>Ticket</category>
  119.    </item><item>
  120.      
  121.        <dc:creator>nacin</dc:creator>
  122.  
  123.      <pubDate>Mon, 03 Sep 2012 22:13:54 GMT</pubDate>
  124.      <title>status, milestone changed; resolution deleted</title>
  125.      <link>https://core.trac.wordpress.org/ticket/21515#comment:3</link>
  126.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:3</guid>
  127.      <description>
  128.          &lt;ul&gt;
  129.            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
  130.                changed from &lt;em&gt;closed&lt;/em&gt; to &lt;em&gt;reopened&lt;/em&gt;
  131.            &lt;/li&gt;
  132.            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
  133.                &lt;em&gt;fixed&lt;/em&gt; deleted
  134.            &lt;/li&gt;
  135.            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
  136.                changed from &lt;em&gt;3.5&lt;/em&gt; to &lt;em&gt;3.4.2&lt;/em&gt;
  137.            &lt;/li&gt;
  138.          &lt;/ul&gt;
  139.      </description>
  140.      <category>Ticket</category>
  141.    </item><item>
  142.      
  143.        <dc:creator>nacin</dc:creator>
  144.  
  145.      <pubDate>Tue, 04 Sep 2012 02:51:08 GMT</pubDate>
  146.      <title>keywords changed</title>
  147.      <link>https://core.trac.wordpress.org/ticket/21515#comment:4</link>
  148.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:4</guid>
  149.      <description>
  150.          &lt;ul&gt;
  151.            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
  152.              &lt;em&gt;commit&lt;/em&gt; added; &lt;em&gt;dev-feedback&lt;/em&gt; removed
  153.            &lt;/li&gt;
  154.          &lt;/ul&gt;
  155.        &lt;p&gt;
  156. Ready to be merged to the 3.4 branch.
  157. &lt;/p&gt;
  158.      </description>
  159.      <category>Ticket</category>
  160.    </item><item>
  161.      
  162.        <dc:creator>nacin</dc:creator>
  163.  
  164.      <pubDate>Tue, 04 Sep 2012 04:54:02 GMT</pubDate>
  165.      <title>status changed; resolution set</title>
  166.      <link>https://core.trac.wordpress.org/ticket/21515#comment:5</link>
  167.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:5</guid>
  168.      <description>
  169.          &lt;ul&gt;
  170.            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
  171.                changed from &lt;em&gt;reopened&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
  172.            &lt;/li&gt;
  173.            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
  174.                set to &lt;em&gt;fixed&lt;/em&gt;
  175.            &lt;/li&gt;
  176.          &lt;/ul&gt;
  177.        &lt;p&gt;
  178. In &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21724" title="Remove custom header uploads from the customizer.
  179. For the 3.4 branch. ..."&gt;[21724]&lt;/a&gt;:
  180. &lt;/p&gt;
  181. &lt;div class="message"&gt;&lt;p&gt;
  182. Remove custom header uploads from the customizer.&lt;br /&gt;
  183. &lt;/p&gt;
  184. &lt;p&gt;
  185. For the 3.4 branch. It will return when crop ability is added.&lt;br /&gt;
  186. &lt;/p&gt;
  187. &lt;p&gt;
  188. props koopersmith.&lt;br /&gt;
  189. see &lt;a class="closed ticket" href="https://core.trac.wordpress.org/ticket/21355" title="#21355: defect (bug): Crop header images inside the customizer (closed: fixed)"&gt;#21355&lt;/a&gt;. fixes &lt;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)"&gt;#21515&lt;/a&gt;. fixes &lt;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)"&gt;#21707&lt;/a&gt;.&lt;br /&gt;
  190. merges &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21379" title="Make the browser property in wp.Uploader optional. fixes #21437.
  191. "&gt;[21379]&lt;/a&gt; &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21380" title="When the browser property is not provided to wp.Uploader, hide ..."&gt;[21380]&lt;/a&gt; &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21383" title="Remove the ability to upload custom headers in the customizer. ..."&gt;[21383]&lt;/a&gt; &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21385" title="Add @since documentation, see #21355."&gt;[21385]&lt;/a&gt; &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21386" title="Fix @since blocks... since we already released 3.4.1. see #21355."&gt;[21386]&lt;/a&gt; &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21497" title="Avoid fatal error in the customizer when the current theme doesn't ..."&gt;[21497]&lt;/a&gt; &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/21722" title="Do not instantiate a Plupload instance when the wp-plupload bridge has ..."&gt;[21722]&lt;/a&gt;.&lt;br /&gt;
  192. &lt;/p&gt;
  193. &lt;/div&gt;
  194.      </description>
  195.      <category>Ticket</category>
  196.    </item><item>
  197.      
  198.        <dc:creator>miqrogroove</dc:creator>
  199.  
  200.      <pubDate>Sun, 09 Sep 2012 04:47:17 GMT</pubDate>
  201.      <title></title>
  202.      <link>https://core.trac.wordpress.org/ticket/21515#comment:6</link>
  203.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:6</guid>
  204.      <description>
  205.        &lt;p&gt;
  206. Seems like a similar problem:
  207. &lt;/p&gt;
  208. &lt;p&gt;
  209. 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.
  210. &lt;/p&gt;
  211. &lt;p&gt;
  212. 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.
  213. &lt;/p&gt;
  214. &lt;p&gt;
  215. Do you need a new ticket for that?
  216. &lt;/p&gt;
  217.      </description>
  218.      <category>Ticket</category>
  219.    </item><item>
  220.      
  221.        <dc:creator>nacin</dc:creator>
  222.  
  223.      <pubDate>Sun, 09 Sep 2012 05:07:27 GMT</pubDate>
  224.      <title></title>
  225.      <link>https://core.trac.wordpress.org/ticket/21515#comment:7</link>
  226.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:7</guid>
  227.      <description>
  228.        &lt;p&gt;
  229. Yes please.
  230. &lt;/p&gt;
  231.      </description>
  232.      <category>Ticket</category>
  233.    </item><item>
  234.      
  235.        <dc:creator>bloomhejm</dc:creator>
  236.  
  237.      <pubDate>Wed, 06 Mar 2024 20:25:37 GMT</pubDate>
  238.      <title></title>
  239.      <link>https://core.trac.wordpress.org/ticket/21515#comment:8</link>
  240.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/21515#comment:8</guid>
  241.      <description>
  242.        &lt;p&gt;
  243. 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.
  244. Here's a possible solution to handle this error by checking whether the WP_Customize_Header_Image_Control object exists before calling its methods:
  245. &lt;/p&gt;
  246. &lt;div class="wiki-code"&gt;&lt;div class="code"&gt;&lt;pre&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
  247. &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nb"&gt;class_exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'WP_Customize_Header_Image_Control'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  248.    &lt;span class="nv"&gt;$custom_image_header&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;WP_Customize_Header_Image_Control&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$wp_customize&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
  249.    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nb"&gt;is_object&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$custom_image_header&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  250.        &lt;span class="c1"&gt;// Process custom header controls here
  251. &lt;/span&gt;    &lt;span class="p"&gt;}&lt;/span&gt;
  252. &lt;span class="p"&gt;}&lt;/span&gt;
  253. &lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;
  254. 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.
  255. &lt;/p&gt;
  256.      </description>
  257.      <category>Ticket</category>
  258.    </item>
  259. </channel>
  260. </rss>
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda