Hi, question from a newbie ...
Yesterday, I installed and enabled a bunch of modules.
Today, I tried disabling one of them -- the "event" module.
(i.e. I unchecked it in administer >> modules)
Big mistake. I got the following error message and then could no longer access the site:
Fatal error: Call to undefined function: event_get_types() in /home/minbok/public_html/csdev/mycs/modules/event/contrib/event_views/event_views_tables.inc on line 14
After some investigation, it turned out that I needed to disable the "event view" module as well. Because I neglected to do so, I got a fatal error.
Is this a bug? Or are there module dependencies that I just need to be aware of? When I disable one module, do I need to be sure to disable all dependent modules? If so, how do I find out which modules are dependent on the module I want to disable?
Thanks!
Kob
Comments
It's a bug in the sense that
It's a bug in the sense that disabling a module should never cause a total failure like that. However, it's a class of bug that requires a new mechanism to fix right (so some people would consider it a feature), and that isn't the highest priority at the moment as far as I can tell.
So yes, you need to be sure to disable all dependent modules. The documentation for each module is usually pretty good about identifying requirements, but it's not staightforward to review all your existing modules. In this case, though, it should be obvious that any module beginning with event_ is likely to have some a relationship with the event module.
This came up recently in a different thread, where the problem was the taxonomy module. That's another module which is required by many others.
Gary Feldman
thanks!
I appreciate the quick and clear response!
I unfortunately did the same disabling of events module
Now my site (which is in production!) is no longer accessible.
How do restore the events module?
I cannot even log-in since I get the error.
==================
Fatal error: Call to undefined function: event_get_types() in /home/stpatric/public_html/sp/modules/event/contrib/event_views/event_views_tables.inc on line 14
==================
Help please anybody.
UPDATE:
I was able to recover by temporarily removing the modules/event folder. This allowed me to get back to the admin screen, then I re-enabled the events module and also restored the event folder. whew!
abe
Test site....
See my sig line.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
thanks.
Very good guide which I will use.
Abe
:)
No matter how small or large a site is, no one wants to see it blow up.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide