Support

Home Forums Event Espresso Premium Event Overview missing dates

Event Overview missing dates

Posted: November 10, 2014 at 7:57 am

Viewing 3 reply threads


British Magic Museum

November 10, 2014 at 7:57 am

When looking at Event Overview I cannot display the 31st of any given month. I have events created that show up on the site but the back end refuses to accept they exist! Any thoughts?


Sidney Harrell

November 10, 2014 at 11:09 am

It looks to me like it’s the month filter that is broken. If you turn off the month filter, can you see the event that was on the 31st? I can see the bug in the code. It’s using the number of days in the current month in the month filter, instead of the number of days in the month that is in the month filter.


Sidney Harrell

November 10, 2014 at 11:16 am

sorry, just found the code to fix it. I thought I remembered seeing this before. It’s fixed in our development branch by an earlier ticket. If you open up includes/event-management/queries.php and find line 62 and alter it so that it reads instead:

if ( $month_range ) {
		$pieces = explode('-', $month_range, 3);
		$year_r = $pieces[0];
		$month_r = $pieces[1];
		$days_this_month = date('t', strtotime($month_range));
	}


British Magic Museum

November 12, 2014 at 7:33 am

Superb! All up and running nicely. Thanks, Sidney.

Viewing 3 reply threads

The support post ‘Event Overview missing dates’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso