Support

Home Forums Event Espresso Premium Search error when using Relevanssi

Search error when using Relevanssi

Posted: November 12, 2014 at 9:54 am

Viewing 7 reply threads


Della Baines

November 12, 2014 at 9:54 am

I’m getting the following fatal error when trying to search on my site:
Fatal Error: Class ‘EEH_Template’ not found in /web/accesscircles/wp-content/plugins/event-espresso-core-reg/modules/events_archive/EED_Events_Archive.module.php on line 147

I’m also using the popular Relevanssi search plugin, so maybe this is a conflict?


Josh

  • Support Staff

November 12, 2014 at 2:34 pm

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.


Della Baines

November 12, 2014 at 3:05 pm

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:
Fatal error: Class ‘EEH_Template’ not found in /web/accesscircles/wp-content/plugins/event-espresso-core-reg/modules/events_archive/EED_Events_Archive.module.php on line 153


Josh

  • Support Staff

November 12, 2014 at 3:27 pm

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.


Della Baines

November 12, 2014 at 3:36 pm

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.


Josh

  • Support Staff

November 12, 2014 at 3:37 pm

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.


Della Baines

November 12, 2014 at 3:42 pm

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!


Josh

  • Support Staff

November 12, 2014 at 5:24 pm

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.

Viewing 7 reply threads

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.

Event Espresso