Relevanssi - A Better Search
[resolved] Warning message when I perform a search (2 posts)

  1. SockY26
    Posted 2 years ago #

    Relevanssi is working OK, but when I done a search I give this error at top of the page:

    Warning: Illegal string offset ‘key’ in homepages/38/d452325453/htdocs/wp-content/plugins/relevanssi/lib/search.php on line 214

    you know why?

    My site have WordPress 3.5.1 and ThemeForest Bellissima theme.

    Thank you!


  2. Mikko Saari
    Plugin Author

    Posted 2 years ago #

    Your theme is doing a meta query without using a meta key, and Relevanssi chokes on it. This'll be fixed in the next version, but for a quick fix, change the line 214 in lib/search.php to

    isset($meta['key']) ? $key = $meta['key'] : $key = '';

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic