[wp-trac] [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
Sun Aug 24 21:08:23 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:           
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 get_permalink($id), where $id is the id of a page, generates a fatal
 error:

 {{{
 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
 }}}

 same call works correctly when the id is the of a post.

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


More information about the wp-trac mailing list