Articles and Posts

Latest News and Updates

Fix the SexyBookmarks offset not contained in string error

Spread the word

Warning: strpos() [function.strpos]: Offset not contained in string in /YOUR-PLUGIN-DIRECTORY/sexybookmarks/includes/public.php on line XXX.

If you are receiving that error, you can strip a piece of code without breaking the plugin.

Find:

$isphp = false !== strpos($r['feed_permalink'],'.php', strlen($r['feed_permalink']) - 4);

Remove :

, strlen($r['feed_permalink']) - 4

Result:

$isphp = false !== strpos($r['feed_permalink'],'.php';

If you have Notepad++ or another app that lets you see line numbers, follow the warning error to find it. Alternatively, you could use the find/replace function in Notepad++ or another good code editor.

Everything seems to work after removing that piece of code. So far, it doesn’t seem like the removal breaks anything. Give it a try.

KittyKingFix the SexyBookmarks offset not contained in string error

Join the conversation