Disabling the content.module without first disabling the individual field modules results in a nasty surprise. I get an error such as ...

Fatal error: Call to undefined function: _content_fields() in /Users/ray/dev/drupal/sandbox-cvs/modules/cck/text.module on line 310

Attempting to get back to the admin/modules page to remedy the situation only displays the error message, not the page, so there is no way to get back to a working admin/modules page without manually toggling the status field in the database.

This appears to be the case only with the nodereference, number or text modules (triggered by the _content_fields() call in each case). The date and userreference modules don't trigger the same problem.

Comments

JonBob’s picture

Looks like this is due to the views.module integration. Normally the field modules won't be used at all when content.module is disabled, but if views.module is enabled they are asked about their tables, which fails in this way. I can wrap this call in a module_exists(), I suppose, but what we really need is a dependency system.

Please review and support core patches to introduce such a system!

JonBob’s picture

Component: Code » userreference.module
Status: Active » Fixed

This won't happen anymore with the new DB abstraction.

Anonymous’s picture

Status: Fixed » Closed (fixed)