WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#8245 closed defect (bug) (fixed)

Major issues with Page lists (and page parent selecting)

Reported by: mrmist Owned by:
Milestone: 2.7 Priority: normal
Severity: blocker Version: 2.7
Component: General Keywords:
Focuses: Cc:

Description

The Page parent setting seems to introduce a few issues -

  1. A Page can be set to itself as the parent page. This causes PHP (5.25) to hang.
  1. A Page set to some other page as its parent is not reflected in the drop down on page refresh, it reverts to "Main page (no parent)"
  1. When a Page has a parent page, the resultant edit pages list breaks, hiding one or more other Pages.

Attachments (2)

editpageslist.jpg (43.8 KB) - added by mrmist 6 years ago.
Broken edit pages list (total 3 pages, only 2 are shown)
pagebeingedited.jpg (213.8 KB) - added by mrmist 6 years ago.
Broken page parent pull-down (shows main page when it should show the actual parent)

Download all attachments as: .zip

Change History (9)

mrmist6 years ago

Broken edit pages list (total 3 pages, only 2 are shown)

mrmist6 years ago

Broken page parent pull-down (shows main page when it should show the actual parent)

comment:1 mrmist6 years ago

Also Paul Robinson on wp-testers has reported a Page listing error -

Catchable fatal error: Object of class stdClass could not be converted to
string in /mnt/local/home/blueby/
natural-tys.com/wp-admin/includes/template.php on line 1177

Which may or may not be related, I guess.

comment:2 mrmist6 years ago

  • Severity changed from critical to blocker

Also reported as

"Object of class stdClass could not be converted to string in /wp-includes/wp-db.php on line 429"

preventing page list loading at all.

comment:3 mrmist6 years ago

  • Summary changed from Major issues with Page parents to Major issues with Page lists (and page parent selecting)

comment:4 mrmist6 years ago

A further warning appears if you have grandchild pages -

Warning: Illegal offset type in /home/www/wp-admin/includes/template.php on line 1613

comment:5 mrmist6 years ago

Needless to say, quick edits on the broken page list result in rows vanishing...

comment:6 mrmist6 years ago

Also manifests on the widgets Page if you have the Pages widget in the sidebar.

Error there is -

Catchable fatal error: Object of class stdClass could not be converted to string in .../wp-includes/wp-db.php on line 429

And that error will also appear on the blog front page as well as the admin page.

comment:7 azaozz6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

This should be fixed in [9731], change is only in wp-includes/post.php

Note: See TracTickets for help on using tickets.