WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] [Plugin: Events Manager] Call to a member function get() on a non-object

[Resolved] [Plugin: Events Manager] Call to a member function get() on a non-object

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Events Manager] Call to a member function get() on a non-object’ is closed to new replies.
Skip to toolbar