As part of one of my latest projects, I had to venture into the land of jQuery. It wasn't long before I realized how powerful the platform was, and even shorter before I started browsing for plugins that I could leverage to add that extra layer of polish to my project.
This is when I found Galleria, a powerful gallery plugin, with the extra-sexy feature of creating thumbnails for you. "Great," I thought, "this will fit perfectly into my website!" Wrong.

"Exception thrown and not caught, Line: 2799" - AGHHHHH!
Due to my ignorance about jQuery, I struggled trying to get it to work. I'm not a newcomer to javascript, even with complex javascript thanks to webOS, but this plugin was just NOT working. It took me a good hour or two before I realized there was probably some incompatibility between jQuery versions, and shortly after I discovered the plugin only worked with up to 1.2.6. This was a problem for me, because a lot of my plugins required 1.3.X, and the newest version was 1.4.1. Googling the interwebs, I also found that other people suffered from the same problem as me but no working solution was ever created.
Fear no more! I have fixed Galleria to work with jQuery 1.4.1. I used the underrated javascript debugger built in Visual Studio 2005 to locate the incompatibilities and resolve them. Those were:
- @rel need to be changed to rel (no @)
- The thumbnail preview was attempting to parse an image that didn't exist, so now a check is made to ensure a URL is present
- There was an extra quotation mark on the same line
All in all, very simple changes. I think this goes without saying, but I'll say it anyway: I take no responsibility for any problems you may have with the jQuery I have attached. Any charity you wish to show for the plugin should be directed at the official developers for their hard work. I want none of it!
If you are lazy like me, and I suspect you are, you probably just skipped to the end of this article to find the download link. Well here you go:
FIXED jquery.galleria.zip (4.46 kb)