• Resolved jrwstevenson

    (@jrwstevenson)


    Hi all,

    I thought the Events Manager Devs would be interested in reading the rely to a recent support question I posted to Ajax Search Pro.

    My Post
    Hi Earnest,

    I am using your plugin on my site along with the plugin Events Manager & the theme Buddyboss Boss.

    I am unable to display your plugin at all when using a combination of Events Manager and Buddyboss. If I deactivate Events Manager or change the theme, Ajax search Pro appears and functions correctly.

    An interesting note, I can use and display Ajax Search Lite without any issue.

    I am currently testing on a dev site that holds no valuable data. Please feel free to modify as needed.

    Thank you
    James

    Reply from Support
    Hi,

    This was a tough one, but I have found the reason why it was happening. I will try to explain the best way I can.

    What I noticed that the search shortcodes were executed, but returned an empty string. I was first suspecting that something might be overriding them. I was correct, but it was not a 3rd party plugin, but ajax search pro itself. There is only a few situations when ajax search pro disables it’s own shortcodes – when a new post is created, updated and deleted, to avoid indexig it’s own shortcode contents.

    The way this is done, is that WordPress has “hooks” provided for these actions, so it’s very easy for a plugin to connect events for it. When creating and updating new posts, the “save_post” and the “wp_insert_post” hooks are activated. However in your case, when opening the front page, both of these hooks are triggered for some reason (this should not happen at all), which was causing the plugin to think that a post is just being created – causing further problems. I had to de-activate the indexing hooks for ajax search pro to fix this.

    However this does not fix the issue itself. Something (plugin or a theme) is causing the “save_post” and “wp_insert_post” hooks to trigger upon page view, which might cause more trouble in the future, as those are meant to be triggered by WordPress core only. Unfortunately there is no bypass solution I could implement for an upcoming update either to somehow detect this, as these hooks are meant to be used correctly, and it’s not possible to check if they run exactly when they should.

    I hope this helps!

    Best,
    Ernest Marcinko

    Oringinal thread can be found here

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi James,

    Do you have a problem if you test with the default WordPress theme?

    Thread Starter jrwstevenson

    (@jrwstevenson)

    Hi,

    No I don’t have a problem if I change the theme. There is no conflict if I use a default WP theme or any of the other premium themes I’ve tried.

    If I deactivate Events Manager or change the theme, Ajax search Pro appears and functions correctly.

    In that case, it seems the problem is with the theme. Have you tried contacting the developer?

    Thread Starter jrwstevenson

    (@jrwstevenson)

    I’m not sure if the problem is with the theme or not. I’m also not suggesting that the problem is fault of Events Manager, nor Ajax Search Pro for that matter. What does stand out to me is that there are 3 variables in this conflict, and if I use/activate all 3 at the same time, one fails to work.

    You never know, I may be the first person to use these 3 items in a single WP install. Or perhaps I’m just the first schmuck who is unable to figure it out for himself. Still the fact remains, if I activate your very popular plugin, while using a very popular theme, it causes another popular plugin to fail. I thought you would like to know.

    My next step will be to inform BuddyBoss of this anomaly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflicts with Events Manager, Ajax Search Pro & BuddyBoss’ is closed to new replies.