• Resolved lpstick

    (@lpstick)


    On The Event Calendar we got a fatal error upgrading the WP Fluida Theme by Cryout Creations from 1.5.0.1 to 1.5.1

    This is the complete message:
    fatal error: Uncaught Error: Call to a member function is_main_query() on null in wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php:1694 Stack trace: #0 wp-content/plugins/the-events-calendar/src/Tribe/Query.php(163): tribe_is_events_front_page() #1 wp-includes/class-wp-hook.php(286): Tribe__Events__Query::parse_query(Object(WP_Query)) #2 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 wp-includes/plugin.php(515): WP_Hook->do_action(Array) #4 wp-includes/class-wp-query.php(1006): do_action_ref_array(‘parse_query’, Array) #5 wp-includes/class-wp-query.php(1621): WP_Query->parse_query() #6 wp-includes/class-wp-query.php(3222): WP_Query->get_posts() #7 /ho in wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php on line 1694

    The problem is surely related to Fluida theme 1.5.1, as I have The Event Calendar on other site (we have 2 different multisite wordpress installation) with 4 different themes and it work perfectly.
    Moreover with Fluida Theme 1.5.0.1 there isn’t any problem.
    Thanks,
    Michele

Viewing 2 replies - 1 through 2 (of 2 total)
  • Barry

    (@barryhughes-1)

    Hi Michelle,

    It looks like – in a few places – the theme does this:

    $wp_query = NULL;
    $wp_query = new WP_Query( /*...*/ );

    Setting that global variable to null is a recipe for exactly this kind of problem and it’s also quite unnecessary. It could be worth flagging this with the theme authors; on our side we’re going to start adding some ‘defensive’ measures that should help when themes do this, but the core problem can only be solved by the theme authors in this case.

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

    Thanks
    Courtney ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error on Fluida Theme 1.5.1’ is closed to new replies.