Title: problem
Last modified: August 21, 2016

---

# problem

 *  [Gal763](https://wordpress.org/support/users/gal763/)
 * (@gal763)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/)
 * Warning: mb_stripos(): Offset not contained in string in /home/differen/public_html/
   wp-content/plugins/relevanssi/lib/common.php on line 677
 * i get this error..
 * can you solve it?
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925178)
 * When do you get this error?
 *  Thread Starter [Gal763](https://wordpress.org/support/users/gal763/)
 * (@gal763)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925199)
 * When I search for a category name
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925242)
 * 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](https://wordpress.org/support/users/gal763/)
 * (@gal763)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925246)
 * Only category search
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925298)
 * 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.
 *  [samisraeli](https://wordpress.org/support/users/samisraeli/)
 * (@samisraeli)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925369)
 * 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](http://www.ecosupp.co.il)
 * It happens in all search
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925373)
 * 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?
 *  [samisraeli](https://wordpress.org/support/users/samisraeli/)
 * (@samisraeli)
 * [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925374)
 * 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.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [samisraeli](https://wordpress.org/support/users/samisraeli/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/problem-83/#post-4925374)
 * Status: not resolved