Shashin 3.0.8

Update 12/13: the Shashin media menu is not working in WordPress 3.3. I’ll see how they’ve changed the media menu and try to have a fix in the next few days. In the meantime, you can still add shortcodes by hand (you can see the album ids and photo ids in the Shashin Tools menu).

Update 12/14: ….And I just uploaded a fix – version 3.0.9. Note that the Shashin media menus are now available as tabs within WordPress 3.3’s new, unified media menu. So Shashin no longer has it’s own media button. I’ll explain why in an upcoming post.

Last night I uploaded Shashin 3.0.8. If you were browsing photos in one album after another, in some circumstances you’d get spurious Highslide navbars stacking up on the top left side of the page. It’s fixed now. It had to do with the complexities of having different kinds of photo groupings going on at the same time in Shashin – there can be multiple groups of albums on a page, groups of photos within albums, photo-by-photo navigation within Highslide, and “page-by-page” navigation using the Shashin “next” and “previous” links. Getting all of them working together seamlessly has proven to be the most challenging (and therefore rewarding!) part of working on Shashin.

I expect this to be the last maintenance release for Shashin 3.0 (knocking on wood, crossing fingers…). For 3.1 I am planning to add support for Highslide thumbstrips and introduce lazy loading of the photos. I had done some initial work on adding Flickr support, but the Flickr API is fairly complex, so I’m going to put off Flickr to version 3.2, as I’ve been getting a lot of requests for the thumbstrips feature.

Please use the comments section for any support questions.


  1. ibeedug December 7, 2011

    Currently installed v3.0.8
    I know that this shouldn’t be happening, but I would like to know if you could shed some light on the problem that I am having.

    When I click on one of the thumbnails, the video fills the browser window instead of opening in Highslide. It has performed this way since the installation.

  2. John December 9, 2011

    Hi Mike,
    I’m getting this error when I’m trying to enable the new plugin.

    Fatal error: Class ‘ShashinWp’ not found in /var/www/html/thesraid/wp-content/plugins/shashin/start.php on line 20

    I am using PHP version 5.1.6 and my site has autoloading configured properly. Also i have installed and enabled the toppa libraries.

    Any ideas what might be happening?


    • Mike December 11, 2011

      Hi John – you’re the 2nd person to report a problem with PHP 5.1.6 – see here:

      I haven’t tested with 5.1.6 – I assumed 5.1.2 or higher was ok since autoloading was introduced in 5.1.2.

      Do you know if your site is running on Windows or Unix? I’m wondering if that might also be a factor.

      • John December 12, 2011

        Hi Mike,
        I’m running CentOS release 5.6 (Final) 2.6.18-194.3.1.el5.028stab069.6PAE in a VM. Hope this helps.

  3. Eric December 10, 2011


    I can’t seem to find a way to display latest photos with Shashin 3. Is there something I’m missing? If not, it would be great to see this option added again.


    • Mike December 11, 2011

      Hi Eric – in your shortcode use:

      order="date" reverse="y"
      • Eric December 16, 2011

        Thanks Mike. In Shashin 2 there was an auto-sync feature that was helpful when displaying latest photos. Now I have to login to WP and manually sync for the latest photos to show up. Will auto-sync be added to Shashin 3?

        • Eric December 16, 2011

          Oops. Found the daily sync option on the settings page.

          However, another nice option to have on the settings page would be the ability to turn on/off the black border around the photos. I know this can be done by modifying the CSS, but an option in the settings would be handy, and probably not too difficult to implement. It also wouldn’t have to be changed every time Shashin is updated.


          • Mike December 20, 2011

            Hi Eric – thanks for the feedback. I try to put as much styling as possible in the stylesheets, not the settings. This gives people greater control and makes it more flexible when trying to accommodate all kinds of different variations in themes. Please see here on how to customize the stylesheet without worrying about losing your customizations when upgrading:

  4. Per Lindgren December 12, 2011


    I have sync problems. When i try too sync a albumid i get this error:
    Shashin Error:
    Database query failed for SQL statement: insert into wp_shashin……………….

    The sync all buttom works fine but i have around 1000 pictures so it takes a long time, specialy when i am on a slow connetion

    I am running the site on a IIS7 server

    • Mike December 13, 2011

      Hi – I haven’t seen that problem before. Can you give me the complete insert statement, or does it actually trail off with dots like that?

      • Per Lindgren December 13, 2011

        No it trail not off with dots.
        I have mailed you thru the contactform the hole string from the error.

        I also have problem with the id counter. Both album and photoid.
        Album id was suddenly 247
        when the album before that was id no 48.
        Photoid was suddenly 6856 when the photoid before that was 1125.
        I have install a plugin called wp otimizer which optimize the database, could that plugin be the problem?

        • Mike December 15, 2011

          Hi – since the ID numbers keep going up, it is failing to correctly recognize existing albums when it syncs. The SQL statement you sent is fine when I try it, but I am guessing there is a difference with MySQL on Windows. I don’t have a Windows server to test with. If you can run that query using PhpMyAdmin or a similar tool, can you let me know the specific error message?

        • Per Lindgren December 17, 2011


          I mailed you the phperrorlog file, maybe you can look on it?

          By the way your plugin is great!!

          • Mike December 20, 2011

            Hi Per – thanks for sending the log file. It looks like your Shashin 3 database upgrade did not complete properly. I will email you to see how we can fix it.

  5. Courtney December 13, 2011

    Hi Mike! Just updated from the old Shashin and it is now saying that Shashin is deactivated and that I have to download the Toppa Plugin libraries for wordpress before I can activate it again. Have I lost 100s of Shashin galleries? There are 365!

  6. Courtney December 13, 2011

    HELP! I did the Toppa Plugin….WP install. Then tried to activate Shashin and it is giving me this message:

    Shashin Error:

    Failed to retrieve album feed at 404 Not Found

    What do I do?

    • Mike December 13, 2011

      Hi Courtney – that is not a valid link to an album feed – there is no Picasa feed at that URL. So you must have an album in Shashin that you have since moved or deleted in Picasa. When Shashin 3 activates for the first time, it upgrades your Shashin database tables and syncs all the albums, but it’s failing on the non-existent album.

      The easiest way to fix this would be for me to have admin access to your site, as this is not a typical problem. If your comfortable with that, send me an email through my contact form and we can figure out the best way to do it.

  7. Robin December 13, 2011

    I’ve just installed Shashin (version 3.0.8) on my WordPress site (version 3.3) for the first time. I successfully added my Picasa feed and I can view my album under Tools. I went to edit a post and clicked on the Picasa symbol to add my album to my post. The media browser pops up, but it is absolutely blank. All I see is “Add Shashin Photos” at the top, and then a large empty white box. How can I fix this? Thanks very much.

    • Torsten December 13, 2011

      Hi Robin!
      This seems to be a problem with WP 3.3. After updating my WP from 3.2 I have the same issue… so we have to wait for a Shashin update.

      • Mike December 13, 2011

        Torsten is correct – I’ll need to see what they changed in how the media menu works. I’ll try to get this fixed in the next few days. You can still add shortcodes by hand (you can see the album ids and photo ids in the Shashin Tools menu).

  8. Torsten December 13, 2011

    Hi Mike!

    Yes, that still works and that’s exactly what I’ve done… by the way: Thank you so much for this plugin, really love it! 🙂

  9. Jane December 14, 2011

    Hi Mike
    I’ve also just updated to WP 3.3 and have the same problem as Robin – a blank screen where all the thumbnails should be. Sadly too, all the main photos on my website have disappeared. Just the Shashin code where each photo should be. All that shows are the thumbnails I’ve pulled in from Picassa. Hope you can fix this soon.
    Love the plugin – thanks.

    • Mike December 14, 2011

      Hi Jane – I’m working on the problem with the media menu. However, I’m not aware of a problem with the shortcodes. They are working fine for me with WP 3.3. I see on your site you’re using the old style shortcodes. Please check the Shashin settings page, and make sure support for the old style shortcodes is turned on (it’s the first setting on the page). If that’s not the problem, please let me know.

      • Jane December 14, 2011

        Bless you Mike 🙂 That’s sorted the problem and all my pics are back. Hugely grateful ….

  10. Bart December 18, 2011

    Hi Mike,
    Have just upgraded to WP 3.3 and the latest version of Shashin and found that photos are no longer showing in posts. I notice that on your blog too the same error message (Shashin Error: No photos found for specified shortcode) is showing at

    Your assistance would be much appreciated.

    • Mike December 20, 2011

      Hi Bart – in my case I had deleted those photos but forgot to update the shortcode. I’m not aware of a problem with Shashin in this regard. Can you give me an example of the shortcode you are using? Also, if they are shortcodes you had from before upgrading to Shashin 3, make sure to turn on support for the old style Shashin shortcodes, on the Shashin settings page.

  11. Tan December 21, 2011

    I just upgraded from Shashin 2 to 3.0.9. And just upgraded my WP to 3.3 (or whatever the latest is). For some reason highslide doesn’t work after the upgrade. When clicking on the album, it brings me to the picasa site directly (under settings it is set for highslide and not Display at host site).

    I have tried disabling all plug-ins (with exception of Toppa Plugins Libraries for WordPress and Shashin. And I have also tried removing the google analytic code (just a code, there is no analytic WP plug in installed). I think it might be the thesis theme, but I didn’t change or upgrade it at all.

    I am unsure how else to troubleshoot this. It worked in the past with all the plug-ins and analytic code. I was wondering can you provide any help?


    • Mike December 21, 2011

      Hi Tan – could you try temporarily switching themes? (your theme may not have changed, but Shashin did). It looks like Shashin is loading all its javascript files fine, so I’m wondering if there is some javascript in the theme that is interfering.

      • Tan Pham December 21, 2011

        Hey Mike,

        Thanks for checking. So I have just changed themes (a random one I downloaded just now) and still the same issue. So I guess the theme is not interfering with Shashin.

        I’ll keep up the new theme if you want to take a look at it. Perhaps the settings for highslide isn’t saving for some reason? any ideas on how to fix it?

        I know it works w/my webshost, since it works on another site (

        • Mike December 23, 2011

          Hi Tan – I took a closer look at the other javascript being loaded on the page. There is code for something called bb2 being loaded. Please try turning that off if you haven’t tried it already (your other site where Shashin is working does not have the bb2 code). Let me know if that helps.

          • Tan Pham December 23, 2011

            I just looked at the source code for that page and looks like the bb2 is the bad behavior plugin. I just disabled it and the bb2 code is not there anymore (when looking at the source code). Sadly, it still directs me to picasa and not highslide.

          • Mike January 3, 2012

            Hi Tan – sorry for the late reply. I checked your site just now and it looks like you got it working. Can you let me know what it was?

            Also, I noticed the thumbnails are not lining up properly. This is a conflict with your theme’s stylesheet. Add the following inside “.shashinThumbnailImage” in shashin/Public/Display/shashin.css to fix it:

            margin: 0 !important;

            Then save shashin.css as described here:

          • Tan Pham January 5, 2012

            Hey Mike,

            I haven’t had a chance to do anything since I was away for the holidays. It still not working ( and I did everything you have suggested so far. And I just added the code to the css file as you requested.

            It is still directs me to the picasa site when I click on the album.
            I have disabled the bb2 plugin/script for spambots. I can’t think of anything else that might conflict with this code.

        • Mike January 8, 2012

          Hi Tan – I was looking at the hiker’s album before, which looks like a different installation. I see that it is still not working under your “site” directory. I’m sorry but I’m stumped. Your version of jQuery is current and I don’t see any other javascript being loaded that might cause a conflict. I can’t tell why it’s not working on that page. One thing you might want to check is that there are no special restrictions on the url – all ajax calls are routed through this URL in wordpress, even for public pages.

          • Tan Pham January 8, 2012

            I’ll check that and will come back and report in if I find anything. So I just thought of something. The site directory did change from to Would that impact it? I have checked everything in the SQL database to make sure all the proper changes were made for WP, but unsure if your plug-ins deal with that. I have uninstalled and reinstalled your plug-in to account for that also.

        • Mike January 8, 2012

          Hi Tan – changing the url of the site should not make a difference to Shashin itself, but I imagine it’s possible there’s something internal to WordPress that could become misconfigured with a change like that.

  12. John December 21, 2011

    Hi Mike,
    I have installed the latest version and it works great except for one issue, all my images are shifted in the thumbnail view and I can shift them by changing the “Thumbnail div padding” from 6 to 30, but then the boxes on my widget are larger than the thumbnails. thanks for any help, I love the Plugin and will use it(and donate) for years to come.

    • Mike December 21, 2011

      Hi John – I checked your site using Firebug (a plugin for Firebox). Check line 312 of the style.css file in your theme, where you’ll see

      .entry img {
          background: none repeat scroll 0 0 #FFFFFF;
          border: 1px solid #CCCCCC;
          margin: 0 0 5px 10px;
          padding: 3px;

      The simplest solution is to remove the border, margin, and padding lines – these styles are being added on top of the Shashin styles. But if you’d like to keep these styles for non-Shashin images you may include in your posts, let me know. That can be accommodated, but is a little more complicated.

      • John December 21, 2011

        Thank you that fixed it.


  13. Brad December 23, 2011


    I’m getting this same issue utilizing the Twenty-Ten theme. When running the page in Firefox highslide seems to be working fine, even with an analytics plugin. However there seems to be an issue in Internet Explorer 8. With an analytics plugin I get that the following is undefined at line 116 when debugging:

    hs.graphicsDir = highslideSettings.graphicsDir

    Clicking on a photo within an album the results in continuous “loading …”

    If the analytics plugin is disabled it goes straight to the picasa page when clicking on a photo.

    • Brad December 23, 2011

      Solved it. Found that the issue was with W3TC plugin. Specifically the minify settings where minifying JS needs to be disabled. Perhaps that is the solve for others having issues with highslide not working and going to directly to Picassa’s site.

      • Mike December 23, 2011

        Thanks Brad – I wasn’t familiar with that plugin.

  14. Erik December 26, 2011

    Hello Mike,

    To thank you for your help and great plugin, I made een dutch translation for Shahin.
    Will you let me know how to send you the translation files?

    I wish all of you happy christmasdays and a great 2012!


    • Mike December 26, 2011

      Thanks Erik! I will send you an email, and then you can email it to me as an attachment

  15. Bill December 28, 2011

    Hi Mike,

    First of all, thanks for a great plugin. It has worked well for me over the past two years.

    I’ve been neglecting web maintenance for some time. The other day I decided to remedy that, upload my plugins, my wordpress install, etc.

    Even before I made any changes I noticed some errors where images weren’t loading on my “selected images” page. If I click through into them the various Shashin enabled galleries are there.

    But anyhow, when I upgraded to shashin 3.0.9 and did the “sync all” I get the same “Failed to retrieve” error others (mine read, specifically, “Failed to retrieve album feed at 404 Not Found”)

    Now, if I go into Picasa and click the RSS feed I get “” as my feed.

    I’ve installed the Toppa plugins, I’ve tried doing the change to the time limit you recommend on the “known issues” page. Anything else you suggest? Everything *almost* works on my site, and I’m wondering if perhaps I just redid the portfolio page mentioned above I’d just not notice the problem. Thoughts?

    • Mike January 3, 2012

      Hi Bill – sorry for the late reply. I was away over the holidays. Are you still having this problem. Shashin takes the RSS feed url you enter and alters it to retrieve the json feed, which is much easier to parse, so that’s why you see a difference. If you enter the json url directly in your browser, it does exist. Let me know if you’re still getting that error, and we can take a closer look.

      • Bill January 4, 2012

        Thanks Mike, and no worries about the delay. I really appreciate the personal feedback. I’m not getting the error message any longer. I’m still missing a couple images, but I need to verify that they’re still in my Picasa folder to begin with.

  16. Rob January 2, 2012

    Hi Mike,
    We are just working on a new site and I’m using widgets on sidebars to show photo’s from albums. I noticed that widgets are not updated yet, so I can’t point widgets on different pages to different albums – which is what I’m trying to do.

    Any idea when you will be adding that support to the widgets?


    • Mike January 8, 2012

      Hi Rob – sorry for the late reply. The Shashin widget is not customizable on a per page basis. I’m not aware this is possible in WordPress (if you know a plugin that does this, please point me to it and I’ll take a look).

  17. Mark Bentley January 5, 2012

    Hi there,

    I’m really enjoying Shashin and it’s working well on a couple of sites! I just had a feature request for the future – as well as the ability to filter by Picasa tags, already mentioned and on the list I think, it would be super useful to be able to filter albums by a date range.

    Basically I’d like to be able to display just albums from 2010, say, in order to divide my many albums up a little (since Picasa doesn’t do sub-albums). I can probably dive into the code, but I imagine it would be a generally useful feature?

    Thanks for all your hard work!


    • Mike January 8, 2012

      Hi Mark – thanks for the suggestion. I’ve added it to the list.

  18. Alex January 5, 2012


    I am using V3 of sashin with wordpress’s wp-admin protected by .htaccess/.htpasswd. When I click on a gallery it seems to be sending your via the wp-admin folder and therefore prompting you for a username and password (due to directory security).

    I have got this code in my .htaccess

    “# Exclude the file upload and WP CRON scripts from authentication

    Satisfy Any
    Order allow,deny
    Allow from all
    Deny from none

    in order to allow file upload to work when directory is protected. Do I need to add a filename for sashin to the first line to stop this problem.

    Pls email if you need url of problem page.



  19. Alex January 5, 2012

    Code stripped, have replaced tags with [ and ]

    # Exclude the file upload and WP CRON scripts from authentication
    [FilesMatch “(async-upload.php|wp-cron.php|xmlrpc.php)$”]
    Satisfy Any
    Order allow,deny
    Allow from all
    Deny from none

    • Mike January 8, 2012

      Hi Alex – Shashin makes its ajax calls through wp-admin when you click on an album to view its photos. This is how WordPress is designed to handle ajax calls, and it’s standard procedure for plugins to do this. I’m not an expert on .htaccess but there are plenty of resources for it online.

      • Alex January 9, 2012

        Thanks for the pointer Mike.

        Fixed now by changing my .htaccess to contain admin-ajax.php as below.

        # Exclude the file upload and WP CRON scripts from authentication
        [FilesMatch “(admin-ajax.php|async-upload.php|wp-cron.php|xmlrpc.php)$”]
        Satisfy Any
        Order allow,deny
        Allow from all
        Deny from none

  20. Tom January 11, 2012

    Hi Mike,

    first, congratulations for Shashin: it was a great plugin in v1 already and keeps getting even better on a regular basis thanks to your continuous hard work!

    I’ve made a French translation of Shashin 3 using your .pot file, I can send it to you if you’re interested. Just email me !


    • Mike January 22, 2012

      Thanks Tom! I will send you an email, so you can attach it to a reply

  21. Walter January 17, 2012

    Bitte bei mir (3.3.1.) werden die Photos nicht geladen. Es kommt zwar die Meldung “loading photos”, aber diese erscheinen nicht im Media Browser. Auch im Dropdown Feld kann ich keine Albums auswählen.
    Bitte was kann da der Fehler sein.
    Danke derweil, Walter

    • Mike January 22, 2012

      Hi Walter – I don’t speak German but I translated your comment with Google translate. If you can post that image again, I can take a look (your link gave me a 404 page not found error).

  22. Daniel January 17, 2012

    Hi. I’m using Shashin since about 3 years. Great stuff. Version 3 looks promising, the [shashin…] shortcode works great. But somehow the widget doesn’t want to function. I’d like to show a random photo of any of my albums in the sidebar. But: I keep getting this error message when trying to add and save the widget in the sidebar: “Error: Invalid shortcode attribute: cw_home_enable_checkbox”. Any idea what could cause this? Could this be a bug?

    • Mike January 22, 2012

      Hi Daniel – this means there is an unexpected form field being from the widget form. I Googled “cw_home_enable_checkbox” and it looks like it’s coming from a plugin called Conditional Widgets. Let me know if you’re comfortable editing PHP code, and I can tell you where to edit Shashin so this won’t cause an error.

      • Daniel January 23, 2012

        Oh, yes, I would be more than happy to apply a fix to your source code if I knew what to correct and where. I only hope that fix would then also be included in your next official version of Shashin. You have my Email, please send instructions there — or publish them here, for that matter. Thanks a lot.

      • Daniel January 23, 2012

        I forgot to mention: Yes, Conditional Widgets is in fact one of the widgets that I have on my wordpress site.

        • Mike January 26, 2012

          Hi Daniel – open shashin/Admin/ShashinWidgetWp.php, and go to line 162, where you’ll see:


          Add this right after it:


          That should take care of it for now. I need to think about how to handle this in general. IMHO, the WP widget api isn’t that great, so it opens up the possibility for this kind of conflict.

  23. Marcos January 23, 2012

    Hi Mike!

    The new version of shashin is really nice! Thanks a lot for the upgrade.

    Today I noticed a strange error.. some albuns are not opening. I’m receiving this message:

    Shashin Error:

    No photos found for specified shortcode

    Could you help me please?

    This is the link:

    The first album, on the top left is opening, but the second one isn´t.. there are more albuns with this problem in this page. I’ve checked on picasa, I didn´t find errors there.

    There is other problem. I created a page with more than one gallery. They are separeted by a title. Here is the link:

    The problem is that when I click twice in the same album, it opens twice. And after I click on one photo and return to the album, my top menu is blocked and the shashin menu appeares on the top of my blog. I made a print screen of it.. here is the link (

    Thank you,


    • Mike January 26, 2012

      Hi Marcos – I wasn’t able to find the first problem you described – everything looks like it’s working. Let me know if there’s still a problem.

      I did see the second problem. That looks like a javascript problem and will take some time to investigate. I will take a closer look this weekend.

  24. Richard January 25, 2012

    Hi Mike, just wanted to say great work on this updated version. A problem that I’ve been trying to figure out is how to order the photos in the widget so that the newest uploads are first? Any help would greatly be appreciated. Thanks!

    • Mike January 26, 2012

      For order by, pick date, and then select the option to reverse the order. That will give you newest first.

  25. Mountainboy January 25, 2012

    Apologies for this simple question, already been answered somewhere? Couldn’t find the answer…

    When using a photo from a Picassa Album and placing it in a WordPress blog post, does Shashin actually upload the image file to the WordPress server, or does the file just get linked and needs to continue to reside in Picassa Album?

    Appreciate help with this. For our workflow, we need something that will upload with ease from Picassa Web Albums to WordPress Media Libary. Haven’t found it. If the solution isn’t Shashin, any suggestions?

    Thanks much

    • Mike January 26, 2012

      Hello – Shashin links to the photo at Picasa. It does not download them to your site. I’m not familiar with any plugins for that.

  26. Ste January 26, 2012

    Hi, i’ve a problem, when tried to install Shashin plugin for photo, i retrieve an Error..
    Now i have this problem, in my wordpress interface when i go in section Widget i’ve this:

    i try do unistall plugin (shashin+toppa) but my widget page configuration remain bugged ;_; help !

    • Ste January 26, 2012

      Deactivated all plugin and reactivated 😉 Thx anyway

Comments are Disabled