cuny-academic-commons / bp-event-organiser

Allows Event Organiser plugin events to be assigned to BuddyPress groups and generates a group calendar page for each group
GNU General Public License v2.0
3 stars 1 forks source link

Prevent fatal error on loops subsequent to single event #61

Closed christianwach closed 7 years ago

christianwach commented 7 years ago

Discovered this fatal error when I added a "Featured Post" type of widget to a theme where the sidebar that is rendered after the main column.

BPEO's the_content filter does not test for the post_type and therefore throws PHP Fatal error: Uncaught exception 'Exception' with message 'Error in formating DateTime object. Expected DateTime, but instead given boolean' in /path/to/event-organiser-utility-functions.php:31 when the widget calls the_content for a post_type other than event. Although the error doesn't look related to this, it is thrown because a post does not have the required meta.

christianwach commented 7 years ago

Closed in favour of #62