Nation of Avalon: Arthur's Legacy

Modern Fantasy Arthurian Storytelling Game


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.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>