• Resolved belindablakley

    (@belindablakleygmailcom)


    Hi, The events calendar looks great, however I’m using a theme that has a blog page, and the plugin creates a fatal error on that page:

    Fatal error: Call to a member function is_main_query() on a non-object in /home/belindab/public_html/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 2153

    It doesn’t seem to affect the actual blog posts, and when I deactivate the plugin, my blog page looks normal again.

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Belinda,

    There are a few possibilities here. One (not necessarily the cause, but a possibility) is that your theme is annulling the global $wp_query object for some reason. Can you tell us what theme you are using? What if you switch to a default (and unmodified) theme like Twenty Twelve?

    Thanks!

    Thread Starter belindablakley

    (@belindablakleygmailcom)

    Hi, I’m using the Obox theme, Store. I can’t switch themes because this is an online store and I don’t want to go offline, but it might have to do with the way the blog is used. When I didn’t have the blog page switched on, everything worked fine, including the event page, but when I decided to start blogging, the plugin broke the blog page (the events page still worked). I had to deactivate the events page to get the blog to show up correctly. Does that help?

    Not really, I’m afraid. If you can’t test with another theme on your live site can you instead try on a test site? Can you also confirm if you’ve updated to 3.2 and if that has any impact on this issue?

    Thread Starter belindablakley

    (@belindablakleygmailcom)

    Hi, I’ve updated to 3.2 and now if I activate the plugin, I get this error message on my main blog page:
    Fatal error: Call to a member function is_main_query() on a non-object in /home/belindab/public_html/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 2162

    Again, if I point my browser to the individual blog posts, they still show up fine, but the main blog page where the list of posts should show up just has that error message.

    I temporarily switched to the twenty thirteen theme and did not have the same issue.

    So is this the theme? Though we can make no guarantees we’d be happy to take a look if you can share a download link (by uploading it to Droplr, Dropbox or your own WP site for instance – you can always take the link down once we’ve grabbed a copy).

    That might give us a better insight into what’s happening here.

    Cheers!

    Hi Belinda,

    Just checking in to see if you still need help / can respond to my last question?

    Thanks!

    Guessing you’re all sorted and will mark this as resolved. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Causes fatal error on blog page’ is closed to new replies.