On a Drupal 5.7 site where Lightbox 2.7 worked nicely with JQuery_update 1.x, I disabled and then uninstalled the Lightbox 2.7 module, upgraded to JQuery_update 2.0, and installed Lightbox 2.8.

The Lightbox 2.8 version does not work now.
When I click on thumbnails on taxonomy list pages, in Image galleries or in image blocks, they just open the image node instead of a Lightbox view.

The main reason I upgraded was to get Taxonomy Manager sub-term expansion to work, which the upgrade to JQuery_update 2.0 fixed along with a fix to Taxonomy Manager. JQuery_update 2.0 seems to be working as it should...

Comments

stella’s picture

Status: Active » Postponed (maintainer needs more info)

Lightbox2 5.x-2.8 does work with jQuery Update 2.x. Did you run update.php? You may also need to clear your browser cache.

When upgrading jQuery Update to 2.x, you need to copy all of the JS files included with jQuery Update module to Drupal's misc/ directory, not just jquery.js.

If you've done all of the above and it's still not working, then send me a link to your site. My contact form is enabled if you wish to do so privately.

Cheers,
Stella

terryallan’s picture

Yes JQuery 2 seems to cause problems. I was successfully using Lightbox and a range of other tools but I had to uninstall JQuery 2. The version of Lightbox I was using seemed to work but Collapsiblock and other facilities didn't. See link.

Leeteq’s picture

I cannot get it to work with JQuery update v2. Rolled back to JQ1x and Lightbox2.7 for now.

stella’s picture

Lightbox2 5.x-2.8 does work with jquery update v2. Please ensure that you have copied *all* the js files from the jquery_update folder to your Drupal's misc/ directory, not just jquery.js. You will also need to run update.php and clear your browser cache.

stella’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Marking as "won't fix" as no updates in over a month. Please feel free to re-open the issue if the problem is still occurring.

pixelpreview@gmail.com’s picture

Status: Closed (won't fix) » Active

yes same problem with update to jquery update 2 when I replace old jquery.js in misc folder... lightbox is ok but when I put the files from jquery update module ... lightbox break down and show the image node.

stella’s picture

pixelpreview: you need to put all of the jquery update js files in the misc folder, not just jquery.js. If you have js aggregation enabled, you will also need to force the re-generation of that file. You also need to run update.php and finally you will need to refresh your browser cache.

Leeteq’s picture

Ref. "If you have js aggregation enabled, you will also need to force the re-generation of that file."
Is that only relevant if using the javascript_aggregator module?
(http://drupal.org/project/javascript_aggregator)

I am not using the javascript_aggregator module, but have done the other steps to no avail, so on that site I went back to using JQuery Update 1.0 and Lightbox 2.7 instead.

Anyway, out of curiosity, and in case it could actually help resolve this;
How to force re-generation of that file? Is that a function or something within that module?
(I havent looked at that module yet.)

Leeteq’s picture

"The problems with jQuery Update are caused by the order of the operations; you must first enable the module, and then copy the files from the misc folder of the module to the /misc folder."

Ref. JQuery_update 5.x-2.0 issue:
"collapsed fieldsets won't/can't be collapsed"
http://drupal.org/node/142216

Will try that and see if that solves it.

mroswell’s picture

I installed jquery 2 update
Copied ALL the js files in the module's misc directory to /public_html/misc
Cleared cache on drupal administration menu
Cleared views cache
opened a totally different browser

I am still not getting the lightbox effect. It opens to the file, for instance, files/imagecache/lightbox/photos/garden-spider.jpg

By now I may have changed some other relevent settings in the lightbox configuration.

Like others here I'll try updating to Jquery 1, and see if it works.

mroswell’s picture

Rolled back to JQ1x and Lightbox 2.7, with success. (Just rolling back to JQ1x while using Lightbox 2.8 didn't work for me.)

UPDATE
Returned to JQuery update 5.x 2.0, with Lightbox 2.7, with success. So, the problem (of loading the jpg URL in the browser, instead of the proper lightbox window) seems to be narrowed down to the Lightbox 2.8 version.

stella’s picture

Can you try the dev version to see if it's still a problem there?

mroswell’s picture

I tried the dev version without success. (Thanks for the nice uninstall program, it made all the uninstalling and reinstalling go more smoothly.)

stella’s picture

Everything is working fine on my Drupal 5 test site. I'm using jquery_update 5.x-2.0 and the latest lightbox2 dev version. If you provide a link to your site I'll take a look. My contact form is enabled if you wish to do so privately.

stella’s picture

Status: Active » Postponed (maintainer needs more info)
stella’s picture

Try the newer release: 5.x-2.9.

Cheers,
Stella

stella’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)