Tagged: ajax, error, relevanssi, search
I checked previous threads regarding integrating relevanssi and added the provided function in my function.php
Note, I read Devin’s instructions to add to top of functions:
Add it to the top of your functions.php file just under: if(isset($avia_config[‘use_child_theme_functions_only’])) return;
though I don’t have that line in my child theme…I’m guessing the supplied child theme functions.php file has been updated? Is this the case? Mine is probably from 3-4 months ago
anyway this is the error I’m seeing below the search box just above the list of ajax results, any ideas?
string(347) " AND ((relevanssi.doc IN (SELECT DISTINCT(posts.ID) FROM wp_posts AS posts WHERE posts.post_type IN ('post', 'page', 'attachment', 'product', 'tribe_events', 'tribe_venue', 'avia_framework_post', 'portfolio'))) OR (doc = -1)) AND ((relevanssi.doc IN (SELECT DISTINCT(posts.ID) FROM wp_posts AS posts WHERE posts.post_status IN ('publish'))))"
Hi ttem!
Seems like the Relevanssi plugin doesn’t work properly on your server (our theme code doesn’t use a direct sql query for the ajax search but we use the standard wordpress query). If you deactivate it the error should be fixed. Please contact the plugin author if you need help with the search plugin configuration.
Best regards,
Peter
Thanks Peter! I was trying to implement Relevanssi after seeing a tutorial for integrating it with Enfold.
So it seems for now there may be some incompatibility so I will implement Google custom search instead which should deliver better results. I’ll go over some of the previous threads for tips on that.
Thank you for your team’s awesome support!!