• 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)
  • 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.

    Am going to test this again however can you try to turn-on WP_DEBUG to see if there’s any other error?

    Yes, of course,

    Thanks for all agelonwl.

    Hi,

    I enabled debug mode, but I didn’t see anything relevant.

    Do you know what I would search?

    Thanks

    Hi,

    Finally I get to run my template pages. This is the code:

    [45 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    What it is the different? I don’t know ??

    Thanks for all.

    btw, read the codex WP_Query codex, you’re not using wp_query correctly. https://codex.www.ads-software.com/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.

    Sorry,

    Before I didnt get to paste the source.

    The source is in https://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)
  • The topic ‘[Plugin: Events Manager] crashes \includes\query.php get non object’ is closed to new replies.