[wp-trac] [WordPress Trac] #13908: Undefined function twentyten_the_page_number() when using twentyten as parent of child theme

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 17:58:07 UTC 2010


#13908: Undefined function twentyten_the_page_number() when using twentyten as
parent of child theme
--------------------------+-------------------------------------------------
 Reporter:  bennebw       |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  Unassigned             
Component:  Themes        |     Version:  3.0                    
 Severity:  normal        |    Keywords:  twentyten, child themes
--------------------------+-------------------------------------------------
 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:      http://smashly.net/themes/audactiy
 Description:    Audacity, a Child theme of Twenty Ten
 Author:         Byron Bennett
 Author URI:     http://www.whypad.com/
 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, 1and1.com 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13908>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list