Josh

This blog post was originally posted on the SexyBookmarks’ blog. Shareaholic has since taken over the responsibility for the continued development and improvement of SexyBookmark publisher plugins!

majorbugfix

I’m going to guess that the vast majority of you who find this post probably won’t even have been affected by the horrible NIGHTMARE of a release yesterday, as I reverted the stable tag back to v2.6.1.3 very quickly after receiving tons of reports about fatal errors upon upgrading. However, for those of you who did… This release is for you!

Those of you who did not get a chance to download v3.0 should consider yourselves lucky, as I seemed to have “jumped the gun” a bit and released it before I tested thoroughly. At any rate, v3.0.1 addresses each of the issues that arose in v3.0 and also adds a couple small finishing touches as well.

Lessons learned…

Considering the level of mayhem associated with the v3.0 release, I would say that the biggest lesson I’ve learned from it would simply be this:

QUIT USING THE HOME ROW TO CODE!

The reason so many of you got fatal errors when upgrading was because my pinky finger apparently pressed the semicolon key inadvertently while coding. May not sound too terrible if you’re not a coder, but trust me… PHP didn’t like it one bit! Anyway, here’s a list of what was fixed/added in this release:

  1. Fix for fatal error upon upgrading to v3.0

  2. Fix for Google Bookmarks image not displaying correctly

  3. Fix for spritegen not working if wordpress installed in subdirectory

  4. Spritegen now outputs minified CSS as well

  5. Added activation hook to generate sprite automatically upon activating the plugin


Don’t forget v3.0 features!

Since most of you will be upgrading to v3.0.1 directly from v2.6.1.3, you may want to go see what features were added in v3.0 as well!

UPDATE:

There are currently 4 primary types of bugs being tracked with this release:

  1. Upon installing/upgrading, all icons disappear and are replaced by text links
  2. Upon installing/upgrading, a list of “Uncaught exception” errors is displayed
  3. Upon installing/upgrading, a list of “filesize()” errors are displayed
  4. Upon installing/upgrading, “Invalid argument supplied” errors are displayed

Please be patient as we are working frantically to find the common link between each of the errors so that we can get it fixed as soon as possible. I guess it’s a bit ironic that this was a “bug patch” release, and yet it’s still apparently full of bugs, eh?

  • http://www.langweiledich.net Maik

    Hi there,

    first i want to thank you for this really great plugin! It’s really awesome. But after the upgrade to version 3.0.1 there seem to be the icons missing in the actual page. Instead of that a list of textlinks is given. I can’t find any wrong setups, so I’m asking you whether the problem is only mine and what i can do about it?

    Greetings from germany,
    Maik

  • http://www.pippathompson.com/FineArtGallery/ Pippa Thompson

    Hi .

    I am having the same problems as the guy above. Have done everything you mentioned but still not working.

  • http://www.pippathompson.com/FineArtGallery/ Pippa Thompson

    I get a bunch of errors when I try to save the settings again.

  • http://www.langweiledich.net Maik

    I re-saved the options several times, even with slight different setups, and always with a green success-notification. Also checked the FTP-Folders which are all on “755″. But it still doesn’t work… :(

    Also if i check the standard design it doesn’t work (in the preview image).

  • http://www.langweiledich.net Maik

    I think it’s in a subfolder, but should be pretty normal though… Also redirecting from several domains…

    The strange thing is, that the links do work. Only the style doesn’t seem to fit. Its not centered as its told to be and the images aren’t there…

  • http://www.pippathompson.com/FineArtGallery/ Pippa Thompson

    I have also changed everything you mentioned but still coming up with same error message.

  • http://www.kraxgr.gr Kraxgr

    Hi,
    we have the same problem in our blog! We use the dezine theme from themeshift.com, and it the plugin used to work, before the update! We did the update, via ftp and tried all solutions you mentioned so far…

  • icebox

    I get lots of this errors on the configuration page:
    Wrong datatype for second argument in
    /…./wp-content/plugins/sexybookmarks/sexy-bookmarks.php on line 215

    Instead of icons to rearange are the same errors on various lines of code

    any sugestions?

  • icebox

    Great! Thank you.

  • http://www.giossi.com Francesco Giossi

    Major error.
    I took a screenshot
    [image edited for security reasons]

    This happens when saving the settings.

    What did I do?
    I simply updated the pluging fom the wordpress dashboard. It ended up with a “fatal error, cannot activate the plugin”.

    Then I went throught this list of comments and checked the server settings. everything is fine, permissions and all the rest.

    Feel free to ask me more questions in order to help you out fixing this issues.
    In the meantime, I try downgrading to the previous version (2.6.x)

    Bye

  • http://www.rainbowseniorliving.com Rodolphe

    Hi,
    Since the upgrade I can no longer access the configuration panel, I get a “you do not have sufficient permission to access this page” message.

    That’s if I am logged either as user or as admin. Bit of a problem as all buttons have disappeared from the posts for me too.

  • http://www.shawnann.org Shawn Ann

    Couldn’t figure out how to roll it back, no option for that anywhere I seen. But I did use a backup of the old one and it’s all working now.

    Not messing with the coding of plugins. I’ll leave that up to the creators :D

  • http://www.giossi.com Francesco Giossi

    I know this could be a stupid question, but where can I download a previous sexy bookmarks version? :s
    I’m looking for te 2.6.x

  • http://www.e-ddl.com Shlomikalfa

    Yeps… me too mate…

    3.0.1 – triggers a fatal error…

    I won’t say too much, but that looks like the best and most SEXY bookmarking plugin ever !!!

    Too bad it doesn’t work in the latest version… meanwhile please downgrade the stable version.

  • http://www.e-ddl.com Shlomikalfa

    Also wanted to mention…

    For the past 3 years i’ve been developing a freeware, the (E)lephant, and that’s just what happens mate… People are annoying and always complain like you owe them something… Just take it like and enjoy your project, you don’t owe no one anything!!!

    Have a nice day.

  • http://www.e-ddl.com Shlomikalfa

    Ohh and one more thing… I am trying to use it with thesis theme… maybe that has to do with it !? cause just tried the previous version, 2.6… it also gives errors on the settings page… weird eh?!

  • http://keremerkan.net/ Kerem Erkan

    Sexy Bookmarks 3.0 is not compatible with Wp-Minify, which is equally important for me as Sexy Bookmarks.

    The problem arises in the css file which is generated with a random name. It imports style.css of Sexy Bookmarks, and this breaks minification process.

    As a new css file is generated after each Sexy Bookmark preference save, it should be better that it has a standard name (not random, as the css and images folder will be full of these if you change your preferences often) and it would be better if the style.css contents were merged into this file, rather than importing it.

    I have removed this file from minification process, but after each SB preference save, I have to find the new file name and add it to WP-Minify.

    We can discuss this problem more thoroughly via mail if you like.

    Thanks for the great plugin.

  • http://www.sugarluxe.com Chandra

    Hey Josh, I know you’re super busy and overloaded with people asking and expecting stuff from you…so if you don’t have time to help, I totally understand.

    But if this is an easy fix? Anyway, I’ve read the FAQs, all comments and posts back to five versions ago. Downloaded newest version, then went back to the previous, still no love for me.

    Have the head tag the way it should be. I’ve run through any twitter updates (and followed you) but can’t figure this out or find anyone that has this listed this issue. I’m guessing it’s a theme incompatibility?

    Config Panel says:

    Warning: Invalid argument supplied for foreach() in /home/content/s/l/b/slblogadmin/html/wp-content/plugins/sexybookmarks/sexy-bookmarks.php on line 339

    Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /home/content/s/l/b/slblogadmin/html/wp-content/plugins/sexybookmarks/sexy-bookmarks.php on line 340

    And then under functionality setting it says:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/content/s/l/b/slblogadmin/html/wp-content/plugins/sexybookmarks/sexy-bookmarks.php on line 361
    class=”hide”>

    Warning: Invalid argument supplied for foreach() in /home/content/s/l/b/slblogadmin/html/wp-content/plugins/sexybookmarks/sexy-bookmarks.php on line 341

    With appreciation…even if you can’t get to this! THANKS!

  • http://www.giossi.com Francesco Giossi

    Josh, I tried to go through a bit more into the problemm but had no luck.
    The code is way too much and have no time to build a debug configuration on a vmware or something…
    So, I rolled back to 2.6.3 and seems to work fine now. I have a small problem, but nothing serious… I’ll check and maybe will come back in a week or something.

    Anyway, I did a couple of tests.

    If I delete the images folder (the entire folder and ofcourse what is whitin it) and then try to save the settings, looks like it works. I only get a warning specifying to have a look here
    http://sexybookmarks.net/documentation/usage-installation#chmodinfo
    permissions problems with the css folder.

    I checked it with FTP and was all ok.

    Then I tried to disable and re-enable the plugin, but still a fatal error was raised. Unluckly, have no warning text or error number to show you. No description, just a “Fatal Error while activating the plugin”.

    The server (Linux) has a feature that allows me to fix the permissions, all at once, on folders and files. I did it, but nothing changed and I knew it was, because in wp-config-php I added

    define (‘FS_CHMOD_FILE’,0755);
    define (‘FS_CHMOD_DIR’,0755);

    some time ago…
    so, it doesn’t look to me as a problem with folders or files permissions.

  • http://oporek.com nashrul

    SexyBookmarks is Really Sexy….

  • http://oporek.com nashrul

    Thanks….

  • http://www.wp-globe.com Ben

    Hi Josh,

    Got here a little late for 3.0.1 but still managed to download it from the wordpress repository. I always like to try new things so even you reverted back to v2.6.1.3 I thought I will give a try to v3.0.1.

    The only error i got was that of permission (my fault because i forgot to chmod). It didn’t go away with changing to 755. Being familiar with “server security fanatics” (lol) tried to chmod 777 and that resolved everything. It’s working like a charm now.
    Didn’t get any other errors except the permissions issue.

    Ben.

  • http://mywebnow.com Travis

    Thanks for the plug in, works great.

  • http://www.la-palma-diving.com diver66

    Hi,

    greetings from the beautiful island La Palma in the canaries. I hope nobody had asked this b4, because I do not want to waste your time, but do you plan to add Google Buzz to the list ?

    regards

    Joe

  • http://adi-sunardy.net Adi Sunardy

    Hi Josh,

    I’ve received the warning messages:

    “WARNING!

    * Your theme has the call to but it is not called directly before in the file “footer.php”

    This is required to ensure that SexyBookmarks will work properly.”

    I’m using thesis v1.7 and couldn’t find the footer.php. Please help.

  • Dave H

    In version 3.2.4.2 I’m getting PHP Notice: Undefined index: HTTP_X_OPERAMINI_PHONE in wp-content/plugins/sexybookmarks/includes/mobile.php on line 36 and PHP Notice: Undefined index: HTTP_ACCEPT in wp-content/plugins/sexybookmarks/includes/mobile.php on line 38

    I know these are just notices, but it would be nice if they were fixed. Thanks.

  • http://www.schnappilette.de Schnappilette

    The PlugIn does not work with WP Minify!

  • http://blog2life.net Josh

    Did you go to the settings page (Settings->SexyBookmarks) and re-save your settings after upgrading? I checked your site and it’s not pulling the stylesheet like it should. So, either it’s not generating one, meaning your folders aren’t writeable, or there’s a problem with your theme…

    Try saving your settings and see what happens.

  • http://blog2life.net Josh

    Did you get a warning or error message when you saved your settings at Settings->SexyBookmarks? If so, what did it say?

  • http://blog2life.net Josh
  • http://blog2life.net Josh

    if you don’t mind me asking… Do you have WordPress installed in a subdirectory, or maybe have an unusual wordpress setup?

  • http://blog2life.net Josh

    The problem is either that your host doesn’t allow the PHP file methods like file_put_contents and so forth, OR… It could be due to the way you have wordpress set up… Do you have WP_CONTENT_URL or WP_CONTENT_DIR defined in your wp-config.php file as something other than what it’s defined as when you first download wordpress? If so, this may too be the issue.

  • http://www.langweiledich.net Maik

    WordPress- and Blog-adress is both set to “http://www.LangweileDich.net” if thats what you mean?

  • http://blog2life.net Josh

    Without being able to see the server setup myself, I’m afraid I’m all out of ideas… I’ve mentioned everything that it *could* be, but as I can’t actually see your server (only the website) then there’s no way I can truly debug it.

    I guess your best option would be to simply downgrade to v2.6.1.3

  • http://blog2life.net Josh

    Unfortunately, it’s virtually impossible for us to be able to pre-test a release in order to make sure that every possible server setup is covered.

    I’m glad you were able to downgrade to the last stable version before this one to fix your problem. We’ll keep looking into what was causing the issue.

  • http://www.langweiledich.net Maik

    Alright then. But thank you for your help. Only other oportunity would be to send you my FTP-data?

  • http://blog2life.net Josh

    Unfortunately, yes. I know that’s a scary prospect, but that’s really the only way I would be able to really debug the issue as I can’t recreate it in my hosting environment no matter how I setup wordpress. Sorry

  • http://www.wp-globe.com Ben

    Had the same problems but chmod-ing to 777 solved it.

  • http://blog2life.net Josh

    I’m currently looking into it… There has to be a common denominator between all of you who are experiencing this issue. The only problem is that no matter how I setup wordpress, whether in a subdirectory, root directory, or otherwise, I can’t recreate the issue in my hosting environment.

    This leads me to believe that it’s most likely host related. However, I’m still looking into it. Sorry for the inconvenience!

  • http://blog2life.net Josh

    Wow, that’s a new one… No, I really don’t have any ideas as to why that’s happening. Is this a fresh/new install? or an upgrade from a previous version? Are you able to save your settings at all?

  • http://www.kraxgr.gr Kraxgr

    I understand! thanks for all your effort, just to let you know, that is definitely a problem related to the new version, cause we downgraded to the 3.0 one and it works fine… ;)

  • icebox

    it’s a fresh install on an older site.
    I’ll try to post a screenshot as I cannot copy&paste from the drag and drop area.

    http://i0.simplest-image-hosting.net/thumbnail/error-jpg.jpg

    I run wordpress 2.9.1 localized in romanian, fresh installed, only thing I tried was to click on select most popular and save to see if it fixes anything.

  • http://blog2life.net Josh

    Really? You downgraded to v3.0 and it works? or did you downgrade to v2.6.1.3? If you downgraded to version 3.0 and it works, then I have a better idea as to where the problem may be!

  • http://www.kraxgr.gr Kraxgr

    I downgraded to 3.0! ;)

  • http://blog2life.net Josh

    Ok, that helps a lot… I sent you an email with a possible solution to what you’re having problems with.

  • http://www.kraxgr.gr Kraxgr

    It works fine! thank you very much!

  • http://blog2life.net Josh

    I have an idea as to what it might be… Give me a bit and I’ll try to get you a customized file so you can see if that fixes the issue.

  • http://blog2life.net Josh

    I removed the link to that image because it shows some sensitive information about your server setup. We’re working frantically on a solution to this issue as we speak.

    Thanks for letting us know.

  • http://www.giossi.com Francesco Giossi

    well, good one, I saw that sensitive informations right after the submit…
    LOL

    The next is for both, me and you. :p

    http://img89.imageshack.us/img89/3309/dsc00001qe5.jpg

  • http://blog2life.net Josh

    haha, well in our defense… It’s 100% IMPOSSIBLE for us to test every possible server setup in ever possible hosting company’s environment. That’s what’s causing the issues. However, yes… we will most certainly be doing MUCH more testing before releasing a feature this complex the next time around! haha

  • http://www.shuttlebox.net/ Kieran Smith

    Ha! Love the picture! Looks like folks are keeping you busy Josh!

  • http://www.rainbowseniorliving.com Rodolphe

    My bad, my bad. Sorry.

  • http://blog2life.net Josh

    “Roll back” simply means to delete your current version from your server and upload an older version.

  • http://blog2life.net Josh
  • http://blog2life.net Josh

    Funny you should be having trouble with a minification plugin considering the latest version of SB comes with a minified stylesheet and minified JS… So there’s no need for your other plugin to have to minify it.

  • http://blog2life.net Josh

    Hi Chandra,

    It’s not a theme issue… that’s definitely our goof. It’s one of the issues mentioned in the “Update” at the bottom of this post (above the comments). I’d recommend downgrading to v2.6.1.3 until we can get this all sorted back out. AGAIN! haha

    Thanks for the gentle natured comment… It’s most definitely appreciated. We will get the issues figured out soon, but until then, like I said, you may be better off reverting back to v2.6.1.3

  • http://www.sugarluxe.com Chandra

    WOW! Thank you that was so quick Josh. I read the above comments, but they seemed like different error msgs. Obviously, this is not my line of expertise. I thought I was adding a new interesting twist :)

    I did get the same thing with v2.6.1.3. So I did try that before I bugged you.

    Thank you for your time and all of your efforts!!

  • http://blog2life.net Josh

    Hmm, if you get the same errors with v2.6.1.3 then that’s a whole different story entirely. I’ll email you soon with some more details and things for you to try… For now, I’d just disable the plugin though. Sorry!

  • http://keremerkan.net/ Kerem Erkan

    Yeah, I don’t need to minify Sexy Bookmarks, but also I can’t remove it from WP-Minify in an easy way. If only you should disable the random css name :)

    Also while I don’t need to minify SB, it is better to combine all js and css files in one file to minimize HTTP requests, so while creating a constant css name, merging the style.css into that constant named css instead of importing it would be wonderful, so that WP-Minify can still combine SB’s js and css into that big file it creates.

    It seems like I said the same thoughts in another way :D

  • http://blog2life.net Josh

    Hi Kerem,

    We’re going to be removing the md5 hash from the filename in the next release, so it will stay as a “static” file name… That way you can make sure it’s excluded from your minification plugin.

  • http://blog2life.net Josh

    busy is definitely an understatement

  • http://blog2life.net Josh

    Hmm, that is strange… 755 should have been sufficient enough to allow the plugin to do it’s job. 777 is kinda “ify” I guess for most people, as it’s revered as a “hack me” sign… However, I’m not sure how much damage someone could do with your plugin’s css folder.