• Resolved jrwstevenson

    (@jrwstevenson)


    I reached out to Ajax Search Pro Support for reasons listed below. I thought the reply may be interesting reading for Events Manager Devs to read.

    My Problem
    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

    The Reply from Ajax Search Pro 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

    Original post in Ajax Search Pro support can be found here

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