• Hi!
    When searching, some queries result in a white screen being displayed. Other queries display a normal result page. I cannot seem to find the correlation as to when it errors and when it doesn’t, but I have noticed that querying a term from one of my custom taxonomies (but not all terms!) result in the white page, but generic content search terms also sometimes result in a white page.

    When enabling WP Error logging the following error is displayed on the faulty result pages:
    Recoverable fatal error: Object of class WP_Term could not be converted to string in /wp-includes/taxonomy.php on line 861

    I have dug around a bit and I feel this is a problem with how Relevanssi uses get_term_by() somewhere in the query code, but I could be wrong

    It might be good to mention that I have tried checking the “include taxonomy” option on and off for the contestants taxonomy, this doesn’t seem to do anything sadly.

    Thanks in advance for your support!

    • This topic was modified 7 years, 11 months ago by Zcdb.
    • This topic was modified 7 years, 11 months ago by Zcdb.
Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Relevanssi does use get_term_by(), but only in the context of processing tax_query data. Are you using tax_query to filter the searches?

    If you could get the full error stack trace, that’d help to see where in Relevanssi it is originating.

    What does the first debugging step here print out?

Viewing 1 replies (of 1 total)

The topic ‘White screen on some queries’ is closed to new replies.