Posted: November 12, 2014 at 9:54 am
|
I’m getting the following fatal error when trying to search on my site: I’m also using the popular Relevanssi search plugin, so maybe this is a conflict? |
Hi Della, I have the Relevanssi plugin set up on my test site and I’m not seeing any errors when I do a search. Is this on the front end or in the admin? One thing you could try is update to the newest version of Event Espresso 4, the line that calls EEH_Template::is_espresso_theme() is now called on line 153 in the current version (4.4.5.p). It may also help to make sure you have the latest version of Relevanssi. Also, if you temporarily deactivate Relevanssi and try a default search that will help narrow whether there’s a conflict with Relevanssi or there’s something else causing this. |
|
|
Thanks for the suggestions. It is happening on the front end (example /?s=searchstring). It doesn’t happen if Relevanssi is disabled. I’ve upgraded to EE 4.4.5.p and it’s still giving me the error: |
Thanks for trying the update. This might be related to the issue reported for WooCommerce + Relevanssi here: https://wordpress.org/support/topic/woocommerce-fatal-error-5?replies=4 If so, it may help to go to the Relevanssi options and uncheck the box next to: Expand shortcodes in post content Then save the settings. |
|
|
Oh, interesting. I tried that, but no luck. FWIW I also tried limiting search results to posts only, and the error went away. However, when I included pages, the error came back. So even though it’s not searching event types, it’s still throwing that error about the EEH_Template Class not being found. |
If the above does not work, you can also try getting the ID(s) of the page(s) that have the [ESPRESSO_EVENTS] shortcode on them, and input the ID’s for those pages in the “Exclude these posts/pages from search:” field. Then save the Relevanssi settings again. |
|
|
That did it. Thanks so much for suggesting that work around! I’d eventually like to be able to include those pages in search, but for now at least the search is working. Thanks! |
Hi Della, I’m glad that worked. We can add something to Event Espresso 4.5 to prevent the event list shortcode from blowing up in a Relevanssi search. |
|
The support post ‘Search error when using Relevanssi’ 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.