#15506 closed defect (bug) (fixed)
Publishing a "Gallery" post format breaks index/archival pages in Twenty Ten
Reported by: | avcascade | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | major | Version: | 3.1 |
Component: | Posts, Post Types | Keywords: | Post formats, gallery |
Focuses: | Cc: |
Description
When a "gallery" type post is published in WordPress 3.1-bleeding, WordPress spits out this error and quits rendering the page in the browser. This occurs on the main page and archival pages in Twenty Ten 1.3-alpha, with no plugins active:
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/username/domain/wp-content/themes/twentyten/loop.php on line 92
Unpublishing the gallery post (reverting it to draft status) causes the error to go away.
This error does not appear when viewing the permalinked post. Only on the index page and archival pages (category view, month view, etc.)
It may have been fixed already, but I updated to the latest nightly build using WP Beta Tester and the issue persists.
Change History (6)
Note: See
TracTickets for help on using
tickets.
sing a post format, but inside the condition, we're assuming it's categories soon.
I imagine a few things may need to be patched in loop.php due to this.
Related, #15378, which will introduce what we'll be linking to, a format archive.