Title: [Plugin: Events Manager] crashes \includes\query.php get non object
Last modified: August 20, 2016

---

# [Plugin: Events Manager] crashes \includes\query.php get non object

 *  [bgwriter09](https://wordpress.org/support/users/bgwriter09/)
 * (@bgwriter09)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/)
 * Hi. After installing 5.1.4 of Events Manager, received the following error:
    **
   Call to a member function get() on a non-object in [website]/wp-includes/query.
   php on line 27** Could not access dashboard, website, etc. Had to rename \content\
   plugins\events-manager to restore WP GUI. Tried reactivating but error returned,
   so am replacing with another plugin. Hopefully issues with events manager will
   be resolved. I enjoyed it when it worked.

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/?output_format=md)
2

 *  [jaolivan](https://wordpress.org/support/users/jaolivan/)
 * (@jaolivan)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646217)
 * Hi,
 * I have confirmed that the error comes from the new version of Event Manager Plugin
   5.1.4.
 * I uninstalled version 5.1.4.3 Event Manager, I checked out the plugins directory
   had been deleted and tables in the database.
 * I installed the 5.1.3 version of Event Manager I enabled and the mistake does
   not happen. The template works correctly.
 * Something running or installing this version makes it happen that problem and
   there are things that stop working.
 * Any ideas?
 * Thank you very much.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646218)
 * Am going to test this again however can you try to turn-on WP_DEBUG to see if
   there’s any other error?
 *  [jaolivan](https://wordpress.org/support/users/jaolivan/)
 * (@jaolivan)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646219)
 * Yes, of course,
 * Thanks for all agelonwl.
 *  [jaolivan](https://wordpress.org/support/users/jaolivan/)
 * (@jaolivan)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646228)
 * Hi,
 * I enabled debug mode, but I didn’t see anything relevant.
 * Do you know what I would search?
 * Thanks
 *  [jaolivan](https://wordpress.org/support/users/jaolivan/)
 * (@jaolivan)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646229)
 * Hi,
 * Finally I get to run my template pages. This is the code:
 * _[45 lines of code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * What it is the different? I don’t know 🙂
 * Thanks for all.
 *  [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646232)
 * btw, read the codex WP_Query codex, you’re not using wp_query correctly. [http://codex.wordpress.org/Class_Reference/WP_Query](http://codex.wordpress.org/Class_Reference/WP_Query)
 * > This is the formal documentation of WP_Query. You shouldn’t alter the properties
   > directly, but instead use the methods to interact with them. Also see Interacting
   > with WP_Query for some useful functions that avoid the need to mess around 
   > with class internals and global variables.
 *  [jaolivan](https://wordpress.org/support/users/jaolivan/)
 * (@jaolivan)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646233)
 * Sorry,
 * Before I didnt get to paste the source.
 * The source is in [http://pastebin.com/YtAJZdEv](http://pastebin.com/YtAJZdEv).
 * Thanks Marcus, I read the codex, but I havent forgotten anything.
 * Thanks everybody.

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/?output_format=md)
2

The topic ‘[Plugin: Events Manager] crashes \includes\query.php get non object’ 
is closed to new replies.

 * 22 replies
 * 4 participants
 * Last reply from: [jaolivan](https://wordpress.org/support/users/jaolivan/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-crashes-includesqueryphp-get-non-object/page/2/#post-2646233)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
