Opened 15 years ago
Closed 15 years ago
#18919 closed defect (bug) (duplicate)
Notices due to get_page_by_path( )
| Reported by: | gautamgupta | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Permalinks | Version: | 3.3 |
| Severity: | major | Keywords: | |
| Cc: | Focuses: |
Description
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 ) )
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#17670