Forums

SexyBookmarks | email, bookmark, share buttons
Offset not contained in string FIX (1 post)

  1. TPI Studios
    Member
    Posted 1 year ago #

    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 (or replace with result below):
    <strong>, strlen($r['feed_permalink']) - 4</strong>

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic