Title: sidebar.php fatal error
Last modified: August 21, 2016

---

# sidebar.php fatal error

 *  [hcuza](https://wordpress.org/support/users/hcuza/)
 * (@hcuza)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-fatal-error-1/)
 * HI,
 * I updated the plugins on my account and have been having issues. When I contacted
   my hosting company they suggested I contact a forum.
 * This error comes up at the bottom of my page info: <b>Fatal error</b>: Call to
   undefined function print_custom_field() in <b>/home/yimcal5/public_html/wp-content/
   themes/twentyten/news_listing.php</b> on line <b>40</b>
 * I lost a lot of content and also the “news” button on my side panel where I access
   editing tools.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-fatal-error-1/#post-4072298)
 * There is no `print_custom_field()` function in the default twenty ten theme. 
   Nor is there a news_listing.php template file. Do not edit the Twenty Ten theme.
   First [create a child theme for your changes](http://codex.wordpress.org/Child_Themes).
 * For now, re-upload a fresh copy of the theme using FTP.
 *  Thread Starter [hcuza](https://wordpress.org/support/users/hcuza/)
 * (@hcuza)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-fatal-error-1/#post-4072309)
 * Why are you referring to ‘print_custom_field()
 * I do not know how to re-upload a fresh copy using FTP and I am apprehensive because
   I do not want to lose more content/formatting.
 * Thank you for responding
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-fatal-error-1/#post-4072315)
 * > Why are you referring to ‘print_custom_field()
 * because that is what the error message refers to.
 * have you ever added a template called news_listing.php to your theme?
 * if yes, what is the full code of that template?
    (please use the pastebin [http://codex.wordpress.org/Forum_Wefor](http://codex.wordpress.org/Forum_Wefor)
   that: lcome#Posting_Code )
 * does the template require a certain plugin to be activated?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘sidebar.php fatal error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-fatal-error-1/#post-4072315)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
