Title: [Plugin: SexyBookmarks] Warning: strpos() [function.strpos]: Offset not contained in string
Last modified: August 19, 2016

---

# [Plugin: SexyBookmarks] Warning: strpos() [function.strpos]: Offset not contained in string

 *  [valandilearfalas](https://wordpress.org/support/users/valandilearfalas/)
 * (@valandilearfalas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/)
 * Hi there,
 * First of all, let me just say this is an awesome plugin. I’ve been using it for
   a while but recently ran into a snag.
 * I am receiving this error:
 * Warning: strpos() [function.strpos]: Offset not contained in string in /home/
   b-web/b7/fb/australiancreditcards.com.au/public/www/wp-content/plugins/sexybookmarks/
   includes/public.php on line 651
 * Warning: strpos() [function.strpos]: Offset not contained in string in /home/
   b-web/b7/fb/australiancreditcards.com.au/public/www/wp-content/plugins/sexybookmarks/
   includes/public.php on line 194
 * And it’s apparently quite common, judging from a Google search.
 * I’ve manually called sexybookmarks in a custom category page. Strangely though,
   some custom category pages are fine, while others display those errors.
 * You can see an example of the error here: [http://www.australiancreditcards.com&#8230](http://www.australiancreditcards.com&#8230);.
 * Thanks!

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

 *  Plugin Author [Shareaholic](https://wordpress.org/support/users/shareaholic/)
 * (@shareaholic)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920925)
 * [@valandilearfalas](https://wordpress.org/support/users/valandilearfalas/) are
   you still getting this error? Also, are you running the latest version of SB?
 *  Thread Starter [valandilearfalas](https://wordpress.org/support/users/valandilearfalas/)
 * (@valandilearfalas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920926)
 * Yup, still getting the error if I enable the plugin. And yes, I was running the
   latest version.
 *  Plugin Author [Shareaholic](https://wordpress.org/support/users/shareaholic/)
 * (@shareaholic)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920927)
 * Can you try beta mode?
 *  [Jive Dig](https://wordpress.org/support/users/jive-dig/)
 * (@jive-dig)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920932)
 * Any luck getting shareaholic on your category pages? This is a must-have feature
   for my blog, which is based around category pages
 *  Thread Starter [valandilearfalas](https://wordpress.org/support/users/valandilearfalas/)
 * (@valandilearfalas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920933)
 * When I try beta mode, I get this error in the admin panel:
 * Warning: fopen(/home/b-web/b7/fb/australiancreditcards.com.au/public/www/wp-content/
   plugins/sexybookmarks/spritegen/media/js/jquery.shareaholic-publishers-api.min.
   js) [function.fopen]: failed to open stream: Permission denied in /home/b-web/
   b7/fb/australiancreditcards.com.au/public/www/wp-content/plugins/sexybookmarks/
   includes/helper-functions.php on line 150
 * Warning: fopen(/home/b-web/b7/fb/australiancreditcards.com.au/public/www/wp-content/
   plugins/sexybookmarks/spritegen/api/sprite.css) [function.fopen]: failed to open
   stream: Permission denied in /home/b-web/b7/fb/australiancreditcards.com.au/public/
   www/wp-content/plugins/sexybookmarks/includes/helper-functions.php on line 150
 * Warning: fopen(/home/b-web/b7/fb/australiancreditcards.com.au/public/www/wp-content/
   plugins/sexybookmarks/spritegen/api/sprite.png) [function.fopen]: failed to open
   stream: Permission denied in /home/b-web/b7/fb/australiancreditcards.com.au/public/
   www/wp-content/plugins/sexybookmarks/includes/helper-functions.php on line 150
 * In the actual blog post, nothing appears. Turning off beta mode produces the 
   original error.
 * Thanks.
 *  Plugin Author [Shareaholic](https://wordpress.org/support/users/shareaholic/)
 * (@shareaholic)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920934)
 * [@valandilearfalas](https://wordpress.org/support/users/valandilearfalas/) you
   got the above error as permissions are currently set incorrectly.
 * You need to set the /spritegen folder and all folders within it to permission
   755 or 777 (some servers are fussy with 755 so pl. try both in case one doesn’t
   work).
 * Let us know how that goes.
 *  Thread Starter [valandilearfalas](https://wordpress.org/support/users/valandilearfalas/)
 * (@valandilearfalas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920937)
 * Yup, tried both 777 and 775 and that message still appears. Strange. I upgraded
   to the latest version, 3.3.6, still the same.
 *  Plugin Author [Shareaholic](https://wordpress.org/support/users/shareaholic/)
 * (@shareaholic)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920938)
 * After you 777ed the spritegen folder and all folders within it, did you try to
   re-save your settings?
 * Then after you re-saved your settings, were there .js/.css/.png files in the /
   spritegen folder?
 *  [bmwau](https://wordpress.org/support/users/bmwau/)
 * (@bmwau)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920956)
 * Hello,
 * I’m having a similar problem with a new WP 3.1 build, which includes BuddyPress.
 * Warning: strpos() [function.strpos]: Offset not contained in string in /home/
   egreen/public_html/wp-content/plugins/sexybookmarks/includes/public.php on line
   209
 * This looks like it relates to permalink setup for RSS feed links.
 * What is the fix for this one?
 * I’ve chmod’d all directories spritegen to 777; I’ve also chmoded all php scripts
   in includes/ to 777 so they are all executable, as I had that separate error 
   issue with those.
 * I kept the individual graphics files in those directories as 666, so they are
   writeable by the plugin scripts.
 *  [enderandrew](https://wordpress.org/support/users/enderandrew/)
 * (@enderandrew)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920959)
 * I’m in the exact same boat as bmwau.
 *  [Thought Police](https://wordpress.org/support/users/tpifiction/)
 * (@tpifiction)
 * [15 years ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920977)
 * I wrote about [a fix for the _offset not contained in string_ error](http://arthurslegacy.com/blog/2011/05/21/fix-the-sexybookmarks-offset-not-contained-in-string/).
 * The short version is pull out the following from the line of code throwing the
   error:
 * `, strlen($r['feed_permalink']) - 4`
 *  [Thought Police](https://wordpress.org/support/users/tpifiction/)
 * (@tpifiction)
 * [15 years ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920978)
 * Oops, messed up that link. [Here is the proper link to the SexyBookmarks _Warning: strpos()_ fix.](http://arthurslegacy.com/blog/2011/05/22/fix-the-sexybookmarks-offset-not-contained-in-string/)

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

The topic ‘[Plugin: SexyBookmarks] Warning: strpos() [function.strpos]: Offset not
contained in string’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sexybookmarks_5e4742.svg)
 * [SexyBookmarks | Upgrade to the Official Shareaholic Plugin today!](https://wordpress.org/plugins/sexybookmarks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sexybookmarks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sexybookmarks/)
 * [Active Topics](https://wordpress.org/support/plugin/sexybookmarks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sexybookmarks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sexybookmarks/reviews/)

 * 12 replies
 * 6 participants
 * Last reply from: [Thought Police](https://wordpress.org/support/users/tpifiction/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-sexybookmarks-warning-strpos-functionstrpos-offset-not-contained-in-string/#post-1920978)
 * Status: not resolved