[wp-trac] Re: [WordPress Trac] #7589: Fatal error: Call to a member function get_page_permastruct() on a non-object in /home/omry/dev/php/wp/2.6/wp-includes/link-template.php on line 152

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 4 20:44:46 GMT 2008


#7589: Fatal error: Call to a member function get_page_permastruct() on a non-
object in /home/omry/dev/php/wp/2.6/wp-includes/link-template.php on line
152
-------------------------------+--------------------------------------------
 Reporter:  omry               |        Owner:  anonymous
     Type:  defect             |       Status:  new      
 Priority:  normal             |    Milestone:  2.7      
Component:  General            |      Version:  2.6      
 Severity:  normal             |   Resolution:           
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Comment (by omry):

 Providing a test case is tricker than I thought.
 instead, here is a full stack trace of the error.
 this happens if I try to get the get_permalink($id) on an id of a page.
 if I do it on an id of a post, it always works.

 {{{
 Fatal error: Call to a member function get_page_permastruct() on a non-
 object in /home/omry/dev/php/wp/2.6/wp-includes/link-template.php on line
 152

 1       0.0004  125404  {main}( )       ../index.php:0
 2       0.0007  171344  require_once( '/home/omry/dev/php/wp/2.6/wp-
 admin/admin.php' )  ../index.php:3
 3       0.0008  181856  require_once( '/home/omry/dev/php/wp/2.6/wp-
 load.php' ) ../admin.php:7
 4       0.0009  187688  require_once( '/home/omry/dev/php/wp/2.6/wp-
 config.php' )       ../wp-load.php:27
 5       0.0019  347640  require_once( '/home/omry/dev/php/wp/2.6/wp-
 settings.php' )     ../wp-config.php:20
 6       0.0645  8710472 include_once( '/home/omry/dev/php/wp/2.6/wp-
 content/plugins/firestats/firestats-wordpress.php' )        ../wp-
 settings.php:421
 7       0.0795  10444120        require_once( '/home/omry/dev/php/wp/2.6
 /wp-content/plugins/firestats/php/ajax-handler.php' )   ../firestats-
 wordpress.php:31
 8       0.0931  12308816        fs_ajax_update_wordpress_titles( )
 ../ajax-handler.php:151
 9       0.0931  12308884        fs_update_post_titles( )        ../ajax-
 handler.php:195
 10      0.0970  12700012        get_permalink( )        ../firestats-
 wordpress.php:1247
 11      0.0975  12730668        get_page_link( )        ../link-
 template.php:66
 12      0.0976  12730828        _get_page_link( )
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7589#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list