WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#18892 closed defect (bug) (duplicate)

php notice: invalid index on get_page_by_path

Reported by: macbrink Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Query Keywords:
Focuses: Cc:

Description

On my blog , I have two pages;
/lazyest/gallery and /gallery
When, I call /gallery , get_page_by_path issues a php notice:

Notice: Undefined index: 1358 in E:\Wampserver\www\wordpress\wp-includes\post.php on line 3173

var_dump of pages array:

pages = Array ( 
  [11] => stdClass Object ( [ID] => 11 [post_name] => gallery
  [post_parent] => 1358 ) 
  [12] => stdClass Object ( [ID] => 12 [post_name] => gallery
  [post_parent] => 0 ) 
)

where 12 = ID of page showing

Change History (1)

comment:1 dd323 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.