Changes between Initial Version and Version 1 of Ticket #22867
- Timestamp:
- 12/11/2012 11:30:21 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22867
- Property Component General → Menus
-
Ticket #22867 – Description
initial v1 4 4 5 5 Sample PHP Code: 6 6 {{{ 7 7 <?php 8 8 … … 16 16 17 17 ?> 18 18 }}} 19 19 20 20 21 21 The following error occurs: 22 {{{ 22 23 Fatal error: Call to a member function get_page_permastruct() on a non-object in C:\xampp\htdocs\lchs4\wp-includes\link-template.php on line 271 24 }}} 23 25 24 26 This occurs in the following area of code: 27 {{{ 25 28 function _get_page_link( $post = false, $leavename = false, $sample = false ) { 26 29 global $wp_rewrite; … … 31 34 32 35 $link = $wp_rewrite->get_page_permastruct(); <--- happens here 33 36 }}} 34 37 Essentially, the variable $wp_rewrite shows as <Uninitialized> when viewed in xdebug using Eclipse.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)