Support

Home Forums Event Espresso Premium EE conflicts with Event Manager

EE conflicts with Event Manager

Posted: February 22, 2016 at 4:09 pm


rogerrey41@bigpond.com

February 22, 2016 at 4:09 pm

Love the Package – EE plugin works beautifully but as soon as I install the Events Manager (by Marcus Sykes) plugin EE ceases to work. It seems as if both packages use ‘events’ as their permalink (address/path?). Unfortunately, Events Manager is already set up on our Live site – so I can’t change it (lots of content).
The symptoms are that any events that have previously been set up in EE (once Events Manager is installed) are not picked up/seen by EE – and so every consequential process that follows from an event (eg registration etc.) doesn’t work.
Please can you advise? PS I’m very much a beginner in this (plenty of experience in programming but not in this arena).


Josh

  • Support Staff

February 22, 2016 at 4:52 pm

Hi Roger,

You can avoid conflicts when other plugins use the /events/ slug by going to Event Espresso > Events > Templates tab and change the setting for Event Slug to be something other than /events/.


rogerrey41@bigpond.com

February 22, 2016 at 6:43 pm

Hi, Josh,

Thanks for getting back to me so quickly.
I’ve made the changes as you suggested – but – unfortunately – it still doesn’t work. I’ve been mulling around this problem for about 2 weeks (I’m very persistent) and, frankly – I’m at a total loss as what to do. If I give you access to my (test Website) are you able to take look and advise me on what to do? There’s no sensitive (or unseemly) information there (Hope you like Doctor Who!)
Regards Roger


Tony

  • Support Staff

February 23, 2016 at 2:46 am

Hi Roger,

After changing the Event Slug within Event Espresso did you flush your permalinks?

If the event slug is still set to something different go to:

Dashboard -> Settings -> Permalinks.

Make no changes to what is set but just click save.

Now try to view an EE event by navigating to:

Event Espresso -> Events.

Hover over the event name and click the view button.


rogerrey41@bigpond.com

February 23, 2016 at 3:17 am

Hi, Tony,
Yes I did flush the permalinks – as you suggested – but to no avail.


Tony

  • Support Staff

February 23, 2016 at 3:35 am

Strange, I have events manager installed on a test site and can use both EE and EM when using /workshops/ for my EE events slug.

If you can send login details using this form:

https://eventespresso.com/send-login-details/

I’ll take a look and see if I can see a reason, note that as this is working on my test site it may be due to something within the theme or possibly within another plugin. You may need to purchase a support token to work through this if that’s the case but I’ll check for anything obvious first.


Tony

  • Support Staff

February 23, 2016 at 11:19 am

Hi Robert,

So I had a look over the site and it’s a little strange.

The events are actually working now that the permalinks are different, the EE event posts are found and work, however what is not happening is EE is not injecting the event details into the post.

This image – http://take.ms/NtqIo

Shows the EE event post, it would not show any of the details enter and likely show 404 not found otherwise.

So if you de-activate Events Manager and make no other changes, just view that event does it work?

I’ve installed EM and the same theme your using locally and don’t have the same problem. Can you activate WP_DEBUG on the site and see if any errors are being thrown?


rogerrey41@bigpond.com

February 23, 2016 at 1:52 pm

Hi Tony, thanks again for your efforts here.

I tried deactivating Events Manager – and it had no effect ie I got the same result when EM was active:

Set up the Debug feature (man I’m learning SO much new stuff – brilliant!)
Herewith the error info
Debug Error Msgs (displayed on screen) here >
https://drive.google.com/open?id=0B7erDtGOamF5eUN0U1BhX0l3WFk

Debug error Logg here >
https://drive.google.com/open?id=0B7erDtGOamF5LXExVXpEM2dBTzQ

Hope you can interpret what it all means.

Cheers
ROGER (not Robert – but near enough I guess)


rogerrey41@bigpond.com

February 23, 2016 at 5:36 pm

DUDE – I fixed it!
After much elimination – found that the problem’s with eCommerce – then looked in the forum Data Base and found a solution (which you’d posted Ho Ho!) and IT WORKED.
your solution -as follows:
Just add:
function callback_that_does_nothing( $WP_Query ) {
return $WP_Query;
}
add_action( ‘pre_get_posts’, ‘callback_that_does_nothing’, 8 );
to your themes functions.php file, then load the ‘Events’ page or a single event page to test.

Thanks for you help – Cheers
Roger


Tony

  • Support Staff

February 24, 2016 at 1:06 am

My apologies Roger (no idea where Robert came from 🙂 )

I don’t have access to those those links, can you post the errors here or to something like http://pastebin.com/ and include the url for us to view here.


Tony

  • Support Staff

February 24, 2016 at 1:17 am

You can ignore my last message, I already had your thread open and forgot to refresh!

I’m glad you have it working, I had completely missed WP eCommerce and we have that listed on our known conflicts page here:

https://eventespresso.com/wiki/known-third-party-plugin-theme-conflicts/

Its an issue with how WP eCommerce handles the main WP_Query that just breaks things, it depends on how heavily a plugin relies on the main query (which EE obviously does)

Anyway, I’m glad you found a solution 🙂 if you have any further problems just let us know.


rogerrey41@bigpond.com

February 24, 2016 at 3:41 am

Hi, Tony
I used a Child Theme for the bit of code you gave -I’m informed it’s, apparently, the correct way to do it – Anyways -it works.

Cheers
Roger


Tony

  • Support Staff

February 24, 2016 at 5:08 am

Great, I’ll mark this thread resolved.

If you have any further problems please feel free to open up another thread.

The support post ‘EE conflicts with Event Manager’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso