Fatal error when displaying upcoming events of a category with no events

Home Forums Calendar Products Events Calendar PRO Fatal error when displaying upcoming events of a category with no events

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #52590
    Justin
    Participant

    Example:
    http://ncmusicfactory.com/calendar/category/vbgb/upcoming/

    I get the error:

    Fatal error: Call to a member function get_event_taxonomy() on a non-object in /nfs/c04/h01/mnt/165308/domains/ncmusicfactory.com/html/wp-content/themes/sandbox/events/list.php on line 111

    This only displays for event categories that currently don’t have any events in them. However, I imagine there should be some kind of fallback “Sorry, no events” message here, just like the widgets display in the same scenario.

    Is this a bug on my end, or just a quirk of the software? And more importantly, how can I fix it?

    #52607
    Barry
    Member

    I can see where that code would be triggered but, because of the line number in the error you quoted, I wonder if you have customized list.php at all … would you be able to share the code via a service such as droplr.com, pastebin.com or gist.com?

    Thanks!

    #52608
    Jonah
    Participant

    Hi Justin,

    Yeah there should be a message that displays if there are no events. Do you have WP_DEBUG set to true? Try setting it to false if it is. This error is coming from an overridden copy of list.php in your active themes ‘events’ folder. Please try renaming this file temporarily so that the plugin will use the core version instead. I’m curious if there’s something in your copy that’s causing the problem…

    Let me know how that goes.

    – Jonah

    #52610
    Barry
    Member

    Looks like Jonah and I replied at pretty much the same time. I’ll bow out of this thread and leave you in Jonah’s capable hands 🙂

    #53053
    Justin
    Participant

    Comparing my modified list.php to the original, I was able to find the problem and remove it. Thanks for the help!

    #53101
    Rob
    Member

    Awesome to hear this got you sorted, Justin! Thanks for confirming as much. If we can do anything else down the road, just ask.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Fatal error when displaying upcoming events of a category with no events’ is closed to new replies.