Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#15506 closed defect (bug) (fixed)

Publishing a "Gallery" post format breaks index/archival pages in Twenty Ten

Reported by: avcascade's profile avcascade Owned by:
Milestone: 3.1 Priority: normal
Severity: major Version: 3.1
Component: Posts, Post Types Keywords: Post formats, gallery
Focuses: Cc:


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)

#1 @nacin
14 years ago

  • Milestone changed from Awaiting Review to 3.1
  • Version set to 3.1

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.

#2 @nacin
14 years ago

(In [16589]) Only link to the Gallery category if the post is in the category. (It may be a format.) see #15506, see #15378.

#3 @avcascade
14 years ago

Looks like error is gone in latest beta (3.1-beta1-16590). Nice work.

#4 @ryan
14 years ago

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

#5 @nacin
14 years ago

Left this open so we'd restore the link after #15378 was handled.

I can add this link back now.

#6 @nacin
14 years ago

(In [16782]) Add 'View Galleries' link for post formats. fixes #15506.

Note: See TracTickets for help on using tickets.