Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#13908 closed defect (bug) (invalid)

Undefined function twentyten_the_page_number() when using twentyten as parent of child theme

Reported by: bennebw's profile bennebw Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Themes Keywords: twentyten, child themes
Focuses: Cc:


Honestly, this bug has come and gone once and is now back (and won't go away), so it might be a path issue on my web host if I'm the only person in the world getting this, but just to be safe, I'm reporting it. I'm fairly certain it's not a problem with the child theme.

I have a very simple child theme consisting of a style.css and a header.php (which was copied from twentyten's header and moved around some elements).

Out of the blue, I've gotten this error twice:

Fatal error: Call to undefined function twentyten_the_page_number() in /homepages/38/d151202375/htdocs/pixoox/wp-content/themes/audacity/header.php on line 24

Here is the top of my child's style.css (which was originally copied from twentyten as well):

Theme Name: Audacity
Theme URI:
Description: Audacity, a Child theme of Twenty Ten
Author: Byron Bennett
Author URI:
Template: twentyten
Version: 0.1.0
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style

I thought that the parent's function.php would be loaded before the child's header.php, which is why I don't see how this error is happening. I don't have a function.php in my child them.

My setup is:
Installed: WordPress 3.0-RC3-15257
Linux, PHP5, shared hosting server
No plugins activated

I'll attach my child theme. As mentioned, this comes and goes, so I'm not sure how to reproduce.

Attachments (1) (71.5 KB) - added by bennebw 13 years ago.

Download all attachments as: .zip

Change History (2)

13 years ago

#1 @westi
13 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

This function was recently removed from twentyten so as to improve the theme:

So it doesn't exist anymore

You need to update your header.php based on the current one in twentyten

Note: See TracTickets for help on using tickets.