Hi

I have just downloaded and enabled this module but am not able to use it. The following happens once the module is enabled;

When viewing the module update page I am only able to untick the final modules checkbox, clicking on the disable contrib button does nothing and i am not able to disable or enable any other modules apart from the final in the list (final one being the views module UI 2.8).

The only way to fix the problem is to revert back to a backup of the database before installing this module. The site I am updating uses a lot of contrib modules and so i assume is conflicting with one of these (would people like me to list them here for trouble shooting or are there any known modules which conflict with this one?).

Thanks in advance,

Paul

Comments

babbage’s picture

More detail would be helpful. What version of Drupal are you running, and yes, list those contrib modules. What Admin theme are you using? Also your browser version, whether you have javascript turned on, etc. Given you say that you are not able to disable or enable any other modules in the list, what actually IS shown on the modules page? Are the checkboxes greyed out, or do they appear to be selecting but clicking on them does nothing, or does clicking on them change the tick but when you save the configuration it does nothing? Finally, you can disable the Contrib Toggle module by removing it from your sites/modules page. Does this fix the problems you are experiencing?

babbage’s picture

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

Hi Sorry for the long delay in responding, here are the extra details you needed:-

Drupal 6.14

Modules:-
Administration menu 6.x-1.5
Apache Solr Search Integration 6.x-1.0-rc3
Apache Solr Attachments 6.x-2.x-dev (2009-Jul-03)
Automated Logout 6.x-1.6
Backup and Migrate 6.x-2.2
CAPTCHA 6.x-2.0
Node clone 6.x-1.0
Content Construction Kit (CCK) 6.x-2.6
Date 6.x-2.4
Diff 6.x-2.1-alpha3
FileField 6.x-3.2
FileField Sources 6.x-1.x-dev (2009-May-06)
GMap Module 6.x-1.1-rc1
Google Analytics 6.x-2.2
Hierarchical Select 6.x-3.x-dev (2009-Aug-18)
ImageAPI 6.x-1.6
ImageCache 6.x-2.0-beta10
ImageField 6.x-3.2
jQuery plugins 6.x-1.10
jQuery Update 6.x-1.1
Jump 6.x-1.0
LDAP integration 6.x-1.0-beta2
Lightbox2 6.x-1.9
Location 6.x-3.1-rc1
Menu block 6.x-2.2
Menu Breadcrumb 6.x-1.x-dev (2009-Oct-06)
Messaging 6.x-2.2
Module Grants 6.x-2.x-dev (2009-Jul-22)
Utility 6.x-2.3
Node reference views 6.x-1.1
Nodewords 6.x-1.8
Notifications 6.x-2.2
Pathauto 6.x-2.x-dev (2009-May-22)
Printer, e-mail and PDF versions 6.x-1.10
reCAPTCHA 6.x-1.4
Revisioning 6.x-2.7
Rotor Banner 6.x-2.4
Scheduler 6.x-1.6
Session API 6.x-1.2
Session Favorites 6.x-1.4
Site map 6.x-1.2
Token 6.x-1.x-dev (2009-Jul-21)
Upload element 6.x-1.2
Views 6.x-2.8
Webform 6.x-2.9
Wysiwyg 6.x-2.0
Wysiwyg SpellCheck 6.x-1.2

The Theme is a variation on Blueprint 6.x-1.2

Browser Firefox v 3.0.17

Javascript is turned on

The modules page shows exactly as normal however i am only able to select or unselect the final module in the list check boxes arent greyed out they are showing as normal, clicking on a checkbox above the last module does nothing.

I removed the module when i was having the problem using a dbase backup (i am testing the module on my development server).

Do you require any additional information?

Thanks

Paul

babbage’s picture

Status: Postponed (maintainer needs more info) » Active

This could be most helpful. I'll try to replicate your setup and see if I can also replicate your bug.

megachriz’s picture

I have a simular issue with the contrib module, but I'm not sure if it is related to this one.

In Firefox 3.5.7 the Contrib-module is working fine, but in Opera 10.10 the module does not work properly:
- There is a bug when I try to disable a module where other enabled modules depends on. There should a window appear where you can confirm to disable the depended as well, but this window is not appearing. I believe it appears outside the browser window, because I once saw the top of the window on the bottom of the module-page.

In both Firefox and Opera I also discover this problem on a Drupal-site with many modules enabled:
- When clicking on 'Disable Contrib' only the modules of the Administration-section are disabled (Administration Menu & Contrib Toggle). This should be a conflict with an other module, because this problem does not occur on an other Drupal site with less modules enabled. I'll check later with enabling and disabling modules which module might conflict.

CarbonPig’s picture

same issue

psmith’s picture

Is there any update on this yet?

babbage’s picture

Apologies for the insanely slow response on this. My current theory is that Contrib Toggle's code may be choking on any module names that contain parentheses in them—e.g. GetID3 which lists itself as GetID3()—and those which list dependencies on the same. Filefield Meta is dependent on GetID3(). Although you are not using Filefield Meta psmith it is installed as part of Filefield and so the GetID3() is being parsed in the dependencies. I think Contrib Toggle may be stopping building it's dependencies list at that point or missing some critical data etc and thus failing... sometimes rather nastily.

babbage’s picture

Title: Module not working correctly » Contrib Toggle cannot handle module display names that include parentheses
Version: 6.x-1.3 » 6.x-1.x-dev
Component: User interface » Code
Category: support » bug
Priority: Normal » Critical

OK, having looked into this a bit further it appears that a number of current bug reports may all be pointing to the same issue—that Contrib Toggle cannot handle module display names that include parentheses, including if they are listed in the dependencies of inactive modules—e.g. FileField Meta's dependency on GetID3(). This can result in critical modules being disabled if you save the module configuration page, which results in a WSOD and the need to manually re-enable these modules in your database before your site will work correctly—pretty horrible.

Have marked the following issues as duplicates:
#508222: All contrib disabled on upgrade to 6.13 when Contrib Toggle installed but *not* actively used
#509046: Fatal error with imagefield module
#556924: Conflict with Filefield Meta (6.x-3.1) and Audio GetID3 (6.x-1.0-unstable4) modules
#732152: White Screen o' Death upon Disable Toggle

I will try and work on this. However, it highlights a pretty fundamental vulnerability in the underlying way in which Contrib Toggle works vs. Drupal's expectations about required modules, which is why if Contrib Toggle fails you can end up with modules disabled. It may not be possible to fix this in D6 due to the nature of the core codebase.

babbage’s picture

I've decided this is a bit bigger than just this issue. It highlights that the fundamental approach Contrib Toggle has taken is flawed in Drupal 6, as when Contrib Toggle fails to function correctly it leaves a Drupal installation open to the possibility of critical required modules then being deactivated when their dependencies are still activated.

This is unacceptable to me. I apologise for the major inconvenience this will have caused to users, and for the lack of foresight on my part to see the dangers inherent in the approach the module took. I have unpublished the current release of the module. Until these architectural issues can be addressed, I encourage all users of the module to disable it from their sites to avoid the issues outlined here.

megachriz’s picture

I hope you'll be able to fix the issues soon, I really find the module helpfull.

babbage’s picture

MegaChriz: Perhaps there is a solution I have not hit upon, but at this stage I am not sure that it would be possible to resolve these issues in D6 (without hacking core) due to the way Drupal 6 manages modules with active dependencies... The parentheses issue merely highlighted the more fundamental flaw in how Contrib Toggle was working—which worked fine, most of the time, but if it didn't, it was pretty spectacularly bad. Thanks for your encouragement, however.

megachriz’s picture

Maybe I can help you with Contrib Toggle in the future, I've bought a book for Drupal module development a few weeks ago, so I'm now studying how Drupal technical works. I have a good knowlegde of PHP and a average knowledge of javascript.

psmith’s picture

dbabbage: thank you for looking into this for me. I'm sorry there was no resolution possible!

weka’s picture

+1
Subscribe

Thank you very much for trying to resolve this issue an bringing this module back. I dread the day when I will have to update Drupal core without the help of the Contrib Toggle.
Thanks million for all your time.