I updated this module on a site yesterday, and now the arrows to expand fieldsets are not longer visible, so fieldsets cannot be expanded. This is not a theme issue as i have checked with core themes.

Has anyone else noted this? Any ideas on what it is/a conflict with another module.

All modules are up to date - several were updated the same time as Lightbox. Switching Lightbox off resolves the issue.

Contrib modules used/enabled are:

Ad
Admin menu
CCK
Global redirect
Imaegcache
Imagefield gallery (issue exists without this module enabled)
google analtics
IMCE
Logintobogan
Mollom
Path redirect
Pathauto
poormanscron
tinymce
Token
update status
video Filter
Panels
jQuery update
external links
views
XML sitemap

Comments

stella’s picture

Category: bug » support

When upgrading jquery update, are you sure you correctly copied all of the necessary javascript files from the jquery_update folder to Drupal's misc directory? You also need to ensure that they have the correct permissions and that both the Drupal and browser caches have been cleared. Depending on the other modules upgraded, you probably also will have need to run update.php.

yuit’s picture

Stella,

I had the exact same problem. I did all the tests mentioned by the original poster (swtiching to core themes), to no avail. Tests were made with 2 different browsers (Firefox 3.0.5 and Opera), each of which had its cache emptied and browser restarted. I even truncated directly the 'cache_' tables in Mysql. And of course, I had checked that the correct file from jquery_update had been copied to misc (in fact I copied them again to be sure).

In the end, the solution for me came when I updated jquery_update from 5.x-1.0, which I was still using, to 5.x-2.0. The problem was gone. Maybe you should investigate whether a compatibility problem with jquery_update 5.x-1.0 was introduced by the latest release of lightbox2. Or maybe tagging lightbox2 5.x-2.9 as being only compatible with jquery_update 5.x-2.0 is the fix ;-)

If someone else could also confirm the issue as relating to jquery_update 5.x-1.0, it would be great. I am always cautious when reporting problems which could relate to a caching issue as you said in your above reply. Even though I did my best to eliminate the possibility of a cache related issue, I am still not 100% sure it was not that...

drew reece’s picture

I have this issue too.
I recently updated 5 sites on my test machine, 3 have Lightbox 2 do not. The two without Lightbox work fine the others have no way to expand the collapsed fieldsets, the text isn't active at all.

I had a look in the error console in Firefox, there is an error stating …

Error: $("#lightboxAutoModal").triggerHandler is not a function
Source File: http://my-site/sites/all/modules/lightbox2/js/lightbox.js
Line: 1111

I disabled Lightbox2 on one of the broken sites & the fields were expandable again.

I have jquery 5.x-10 installed. I'll try to look into the error more tomorrow, and post some more info.
Take a look at the error console in Firefox's tools menu and see what happens when running either of the jquery modules.

I also have some warnings in the console, one from admin_menu.css and one more from lightbox.js, but I don't know if they are part of the problem here.

drq’s picture

I have same problem...
LightBox2 - version 5.x-2.9

drq’s picture

Title: collapsed fieldsets inaccesible after update » The problem has been cracked
Status: Active » Reviewed & tested by the community

I'm waiting, waiting and has got around the problem...

Source of the bug is an implementation of hook_form_alter()

I do not understand why this hook should be, but comment it

/*
function lightbox2_form_alter($form_id, &$form) {
  if ($form_id == 'user_login_block' && arg(0) == 'user' && arg(1) == 'login' && arg(2) == 'lightbox2') {
    $form['#action'] = url('user/login/lightbox2', 'destination='. $_GET['destination']);
  }
}
*/

We can copy a code of this function from version 2.8 also:

function lightbox2_form_alter($form_id, &$form) {
  if ($form_id == 'user_login' && arg(0) == 'user' && arg(1) == 'login' && arg(2) == 'lightbox2') {
    $form['#action'] = url('user/login', 'destination='. $_GET['destination']);
    $form['name']['#size'] = 25;
    $form['pass']['#size'] = 25;
  }
}

I do not know whether this is correctly done, but fieldsets will be unfrozen.

drq’s picture

Title: The problem has been cracked » collapsed fieldsets inaccessible after update

Oops... i've broken issue title

drew reece’s picture

You could comment out that function drq, or you could just comment out the broken bit of javascript that is causing the issue.

Line 1111 of lightbox2/js/lightbox.js

changing it from …

  $('#lightboxAutoModal').triggerHandler('click');

to

  //  $('#lightboxAutoModal').triggerHandler('click');

Makes it work again. Lets wait for an admin to see what is going on.

stella’s picture

Assigned: Unassigned » stella
Category: support » bug
Priority: Critical » Normal
Status: Reviewed & tested by the community » Active

None of those is the correct solution, but drew reece is closest. I imagine if you start using the 5.x-2.x version of jquery update everything will start working.

I need to access whether I need to make Lightbox2 dependant on the 2.x version of jquery_update or if I can make the code work with the 1.x version too.

Cheers,
Stella

filburt’s picture

Priority: Normal » Critical

Hi all,

I have the same problem using Drupal version 6.8 with Lightbox2. Some - not all - fieldsets are not expandable/collapseable anymore. Also it kills my IMCE. Any solutions yet? A already installed the latest version of jQuery update for Drupal 6 and flushed all caches. Also I commented out the line as described in #7 - also with no success :-(

Cheers,
Filburt

drew reece’s picture

Filburt,
Take a look in Firefox's error console (Tools menu) it may give you a different error on Drupal 6 with newer jQuery. It may give you somewhere to try commenting out & reloading the page. It's not a fix, but at least you can report what works for you.

cedarm’s picture

I posted a duplicate issue #369878: Version 5.x-2.9 not compatible with jquery_update 5.x-1.0, so I'll comment here.

I did update to the latest jquery_update and it does fix the lightbox js error, but kills TinyMCE. So we're stuck with jquery_update-5.x-1.0 and lightbox2-5.x-2.8, unless someone can get TinyMCE updated too.

promes’s picture

I created a new site with TinyMCE and the latest jquery_update, without lightbox2 installed. TinyMCE is running fine on this site and all collapsed fieldsets are working!
Afterwards I installed LB2 5.x-2.9 and enabled this module. I saved the default settings page and still don't have any problems with collapsed fieldsets nor with TinyMCE !!
I don't have the time at this very moment to investigate it further, because I am on time-constraints for the new project. Maybe someone can check updating to the latest version of jquery_update really solves the problem.

promes’s picture

I made some time to investigate it further. It kept me busy. I created another new site and installed and enabled image, lightbox2, jquery-update 2.0 and some other modules.
I forgot to update the drupal/misc files from the jquery-update. The net result: the collapsed fieldsets didn't work.
After the update of the misc-files it still was working!
Attention: my ftp-program doesn't update the files whenever the serverfiles are newer when I move a folder with all source files. Since I installed all files today on the server the regular update doesn't work. I had to update the serverfiles by sending the individual files to the server! Maybe this is the problem I had on other sites and other people had as well.

In an older site I also upgraded to the newest jquery-update. This site is now working as it always did before Drupal version 5.15.

drew reece’s picture

Promes,
Thanks for taking the time to look into it, but the original issue still stands…

Lightbox2 5.x-2.9 is not compatible with jquery update 5.x-1.0.

I understand that the ftp uploading issue may have caught some people (it has happened to me before) but in my case the fault was noticed on a local version, prior to any ftp'ing. I use Git, so I have a list of file changes, reverting Lightbox2 to 5.x-2.8 fixes the issue.

Ps anyone using Safari 3.2.1 notice the code blocks are now invisible on this page and other pages? I'll log out and check again.

promes’s picture

Hello Drew,

As I found out after the upgrade to Drupal 5.15 (see http://drupal.org/node/362098: Javascript is causing problems) the problem is not caused by Lightbox2 but by the newer version of Drupal. Up to Drupal 5.14 I hadn't the problem. It just started after the 5.15 install.

stella’s picture

@promes: did you replace the jquery.js and other files with those provided by jquery_update module after you upgraded Drupal?

deleuje’s picture

Hi,

I am not sure if this may help but I came across this problem after enabling another jQuery related module and on Drupal 6.

My problem was solved after I realized that my template.php inserted the core misc/jquery.js on all admin pages. I deleted that line, which was including an earlier version of jquery after the updated one.

So, you may want to look into your template.php or other template files that include the jquery script on their own.

promes’s picture

I have two ways to upgrade to a newer Drupal version. Sometimes I explicitely overwrite all older files (why I don't know), other times I use the default setting of my FTP program: only newer files are replaced. I don't know anymore what method I used and how (same method or the latter) I updated the jquery_update. At that time it seemed not interesting.
It may be different for different sites I maintain.
But only later on, just before my previous comment, I did a full replace of the jquery_update files in the /misc directory. And that did the trick, at last for me.

I hope this will help you.
PS
I use D5.

anschinsan’s picture

As suggested here: http://drupal.org/node/364666?mode=2&sort=2 I switched back to release 2.7 - cleared all my caches and it worked.

Before I deinstalled and reinstalled jquery_update and lightbox2 2.9 several times, following several solutions/instructions in different issues - and regarding the installation oder and how and when correctly to overwrite the *.js files in misc/.

With 2.9 the fieldsets worked on my local test enviroment - but not online. The sourcecode was completely the same and it didn't matter which browser I used.

Local I work with Windows and Xampp (Apache/2.2.11 (Win32) PHP/5.2.8)
Online Apache/2.0.53 (Linux/SUSE) and PHP Version 5.1.2

Anyway: thanks for a great module ... and sorry for not helping more with the debugging.

davidkp’s picture

I found a solution to this problem today. In jquery_update there are two jquery.js files. I had originally copied the file from the jquery_update root and had the problem described in this issue. A day later I re-read the message in the status report and noted that I was supposed to copy the jquery.js file from the jquery_update/misc directory.... doh. Anyway, Lightbox2 now behaves as it's maker intended. I'm using Drupal 5.16 Jquery 5.x-2.0 and Lightbox2 5.x-2.9. Hope this helps somebody.

drew reece’s picture

@ Davidkp,

The version of Jquery update with 2 copies of the jquery.js file is jquery 5.2. You are not using jquery 5.1 if you also have a misc directory within the jquery module.
This issue is with the 5.1.x version of jquery update (see #8).

stella’s picture

Status: Active » Closed (duplicate)
jurgenhaas’s picture

I'm using Lightbox 6.x-1.9 and jQueryUpdate 6.x-2.x-dev (2009-Apr-23) together with Drupal 6.13 and I still can't get the #lightboxAutoModal get to work with the Drupal messages. The code is in the HTML but there is just no lightbox showing up with the message. The console has no error and all cache (server and browser) is cleared.

Otherwise lightbox2 works really well.