WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. SockY26
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 1 year 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

About this Topic