• Resolved ARZCDR

    (@arzcdr)


    Hello,

    I am having an issue with Relevanssi just after installing and doing an initial indexing. The search page is always completely empty, not only are there no results, but there is no template markup whatsoever. Basically just a blank html document.

    Here’s the setup:

    – WordPress 3.8.1
    – Using Polylang to have English, Spanish and Portuguese
    – “Responsive” Theme (actually a child theme, but the search.php comes from that parent theme)
    – Relevanssi 3.3.4 with all default settings.

    So I installed Relevanssi and left all the default settings so as to do a quick test first. Built the index and it shows:

    – Documents in the index: 30
    – Terms in the index: 1808
    – Highest post ID indexed: 508

    Now, the entire site seems to work fine only now, as I mentioned, the search page returns completely empty, not even the template, regardless of the search query.

    I tested deactivating Relevanssi and indeed my search page worked as normal, and as soon as I reactivated Relevanssi it failed again.

    I really think Relevanssi is the tool I need primarily because it’s compatible with Polylang and because it can search custom fields.

    I would really appreciate any help with this. Thank you for your time.

    https://wordpress.org/plugins/relevanssi/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Can you check the server error log? There might be a helpful error. Otherwise it’s hard to say what’s wrong. Does deactivating Polylang help? How about switching theme to Twenty Fourteen or other default theme?

    I use Responsive on couple of sites, and there’s nothing in the default search.php in Responsive to make Relevanssi not work.

    Thread Starter ARZCDR

    (@arzcdr)

    Hello, thanks for your reply.

    Unfortunately my child theme is deeply connected to polylang (I use its functions throughout templates and some simple plugins) so I cannot just deactivate polylang because the theme will break so it won’t really help to diagnose this.

    However I did test changing to other themes including Twenty Fourteen and the same still happens.

    I also went to the php error logs and this is what I found. These are the only instances mentioning Relevanssi and seem to be from when the plugin was installing (since more errors do not appear when deactivating and reactivating the plugin or when building the index)

    [21-Mar-2014 21:36:16 UTC] WordPress database error Duplicate column name ‘term_reverse’ for query ALTER TABLE wp_relevanssi ADD COLUMN term_reverse VARCHAR(50); made by activate_plugin, do_action(‘activate_relevanssi/relevanssi.php’), call_user_func_array, relevanssi_install, _relevanssi_install, relevanssi_create_database_tables

    [21-Mar-2014 21:36:16 UTC] WordPress database error Duplicate key name ‘relevanssi_term_reverse_idx’ for query CREATE INDEX relevanssi_term_reverse_idx ON wp_relevanssi (term_reverse(10)); made by activate_plugin, do_action(‘activate_relevanssi/relevanssi.php’), call_user_func_array, relevanssi_install, _relevanssi_install, relevanssi_create_database_tables

    I hope this helps. Thanks again for your time.

    Plugin Author Mikko Saari

    (@msaari)

    Does implementing this fix help?

    Thread Starter ARZCDR

    (@arzcdr)

    Hi,

    This indeed fixed the issue! The page returns with results and all.

    I’ve also adjusted the settings to what I needed (pages, certain post types, visible custom fields, and other stuff) and the results seem good.

    Now the only thing issue seems to be duplicate results, but I see that that is a known bug and will be fixed with the next release, correct?

    Thank you very much for your time and help. Definitely a 5-star plugin and support!

    Plugin Author Mikko Saari

    (@msaari)

    Yes, the next version will fix this. If you want it fixed now, get the development version (or just the lib/common.php file from the development version) from this page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search result page completely blank’ is closed to new replies.