• Resolved jochundesign

    (@jochundesign)


    In WordPress > Settings > Reading, I have my homepage set to be a ‘static page’ > Homepage: ‘Main events page’. This worked fine before I ran the latest update but now, when you visit the (thevicswindon.com), the events listing doesn’t display – there’s just an empty white space.

    Weirdly though, if you visit the events page directly (thevicswindon/events), the event listing is there as normal!

    I’ve had to switch the homepage away from my events page for now so I really need a fix for this ASAP, please!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had the same issue after updating to WP 4.9.2 and Events Calendar 4.6.10. I thought it was a theme issue so I tried editing my theme’s PHP homepage and when saving it gave me the following error:

    Your PHP code changes were rolled back due to an error on line 1694 of file wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php. Please fix and try saving again.

    Call to a member function is_main_query() on null

    This line is inside the function definition for Tribe_is_events_front_page, so since I’m not displaying events on the front page, my workaround was to just have it “return false;” and I commented out the rest of the function definition.

    This won’t work for you, obviously, since you’re trying to display the events, but hopefully this can help the developers find and fix the issue.

    Your screenshot of the events page was clever! Nice job on the quick thinking there!

    After further research on the support forum, I found a response here: https://www.ads-software.com/support/topic/fatal-error-with-wp-query/

    It seems you may have to modify your theme’s (or another plugin’s) PHP code or rollback to a previous version of The Event Calendar to get your events back. Good luck!

    Thread Starter jochundesign

    (@jochundesign)

    Big thanks for your input @jeremysouthard; it’s oddly comforting to know someone else is having the same problem!

    TBH, I get some sort of problem every time I run the TEC updates and it stresses me out so I’m actively investigating other event calendar plugins.

    Thanks again for the support ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Events don’t display when I set the events page as my homepage’ is closed to new replies.