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

    (@msaari)

    When do you get this error?

    Thread Starter Gal763

    (@gal763)

    When I search for a category name

    Plugin Author Mikko Saari

    (@msaari)

    Does it always happen when you search for a category name, or only with some words? The more detail you can supply, the better.

    Thread Starter Gal763

    (@gal763)

    Only category search

    Plugin Author Mikko Saari

    (@msaari)

    Can I see this in action on your site? With this much information, I don’t really know where to start trying to reproduce the error.

    Hi I have the same problem when I search for a term.
    The error message:
    Warning: mb_stripos() [function.mb-stripos]: Offset not contained in string in /home/ecosupp/domains/ecosupp.co.il/public_html/wp-content/plugins/relevanssi/lib/common.php on line 677

    relevanssi version 3.5.5
    wordpress: 3.7.1
    domain: http://www.ecosupp.co.il

    It happens in all search

    Plugin Author Mikko Saari

    (@msaari)

    Samisraeli, do you have Relevanssi enabled at the moment? I don’t see the error. Can you tell me a search term that causes the error to appear?

    Anyway, could you please try this for a fix. In lib/common.php in the plugin folder, find this line:

    function relevanssi_stripos($content, $term, $offset) {

    After it, add the line:

    if ($offset > mb_strlen($content)) return false;

    Does that make the problem go away?

    The reason you didn’t see the warning was that I disabled the display of warnings in the wp-config file.
    After I added the line, it seems ok now.

    Thank you for your prompt reply.

    Thank you,

    Sam

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘problem’ is closed to new replies.