[wp-trac] [WordPress Trac] #18919: Notices due to get_page_by_path( )

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 12 17:54:34 UTC 2011


#18919: Notices due to get_page_by_path( )
--------------------------+-----------------------------
 Reporter:  gautamgupta   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  3.3
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 I have bbPress installed, and while browsing the forum pages which have at
 least one parent, 3 notices are received:

 {{{
 Notice: Undefined index: 0 in /.../wp-includes/post.php on line 3175
 Notice: Trying to get property of non-object in /.../wp-includes/post.php
 on line 3171
 Notice: Trying to get property of non-object in /.../wp-includes/post.php
 on line 3178
 }}}

 URL: `http://localhost/forums/forum/normal/normal-closed-child/`
 Where `forums` is the base slug used by bbPress, `forum` is a CPT,
 `normal` is a forum, `normal-closed-child` is a child forum of `normal`.

 `$parts` at line 3155: `Array ( [0] => normal [1] => normal-closed-child
 )`

 `$pages` at line 3160: `Array ( [2] => stdClass Object ( [ID] => 2
 [post_name] => normal [post_parent] => 0 ) [4] => stdClass Object ( [ID]
 => 4 [post_name] => normal-closed-child [post_parent] => 2 ) )`

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


More information about the wp-trac mailing list