WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Call to a member function get() on a non-object (3 posts)

  1. mattatifpd
    Member
    Posted 1 year ago #

    I have a conflict between my theme and this plugin (used process of elimination). Only on pages where I'm showing a portfolio, it throws this error: Call to a member function get() on a non-object in .../wp-includes/query.php on line 27.

    There is a bug ticket at wordpress about this error (http://core.trac.wordpress.org/ticket/15881):

    There are timing issues in WP where some code in plugins, specifically wp super cache, make called to wp_cache_get before $wp_object_cache is initiated.

    Any help would be greatly appreciated. I'd hate to switch to a different event manager over this (cause I can't switch themes!)

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

  3. mattatifpd
    Member
    Posted 1 year ago #

    That got me in the right direction, even if I had to link through a few more related posts. For the record, I swapped out this:

    $temp = $wp_query;
    	$wp_query= null;

    for this:

    $temp = $wp_query;
    	$wp_query1 = null;

    Thanks... this just shows how little I understand templates and queries. Those posts seem to suggest this issue has come up a lot and that it's consistently with the theme code. why would it be necessary to just add a "1" to the wp_query. And if it's necessary, why don't theme creators know about that? ... OR, is there a workaround in EM that can avoid this issue? If you have a minute I'd be interested in a short laymens explanation.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic