Compatibility issue of Thickbox and jQuery in WordPress when both NextGen Gallery and WP e-commerce present
Both jQuery and Thickbox have different versions, and WordPress and its plugins may use different versions of jQuery for different plugins since plugin engineers basically work on their parts without paying much attentions to others’. I checked my installation of WordPress 2.5.1 and it has jQuery 1.2.3 and Thickbox 3.1. However, when you install other plugins which might use a fairly new jQuery such as 1.2.4, what happens in this case is they conflict, some of the features may not work at all, such as Fix of issues with old version of jQuery in WordPress 2.5.1 when using FeedWordPress. In the case of having both NextGen Gallery and WP e-commerc, you may even see what I saw as depicted in this image. The problem gets even worse when the plugins are using Thickbox because different versions of Thickbox will only work perfectly with their corresponding versions of jQuery:
This image is after I clicked one of the products from the Products page. Note there are 2 images in the Thickbox popup window, this is really weird, the second one is a duplicate. When checking html source of the page, there are 2 Thickbox.js included and both are different versions, therefore, Thickbox is initialized twice when the page is loaded. The odd thing is you don’t always get these 2 images on the same page.
The fix for this is not so easy, I thought I could apply the same principal like what I did in the previous article to fix it, however it didn’t work. Now I am stuck here and going to spend more time to find out a solution for this.
I hope all these insights could help others find a good solution. By the way, I also notice that other softwares such as Pligg have the same compatibility issue Pligg Forum post
I hope someone else can help me on this, please let me know if you have any suggestion. I’d really appreciate it.