When main module ONLY had been uninstalled, every page on site display following error:

Call to undefined function: category_get_containers().

And only one way to restore site -- switch on module direct in DB.
It may be very dangerous for working sites, if webmaster by accident turn off this module.

Comments

Jaza’s picture

Status: Active » Closed (won't fix)

Unfortunately, there's no clean way to fix this in Drupal 4.7. All I can say is that site admins should not disable category unless they have first (or at the same time) disabled all modules that depend on it. Drupal 4.8/5.0 will have a dependency checking system, so in the future this will not be a problem. Since Drupal 4.7 has no such system, there isn't much I can do.

inforeto’s picture

Version: master » 4.7.x-1.x-dev

Humm. How did you turned it on from the database?
I now need to do the same thing.

inforeto’s picture

For now i have removed taxonomy via ssh and site came back again.
Could these modules be deactivated with a php script?

venkat-rk’s picture

Hi Jaza,

I was about to submit the same issue- my test site crashed just now after I disabled the category module at administer>>modules.

I followed your advice and tried first disabling the taxonomy (wrapper) module prior to disabling the category module, but that crashed the other site too, this time with a different error message. Of course, I backed up the db and files before I did this, as it is a live site. In both the sites, I had taxonomy wrapper fully installed.

Why did I uninstall category from the first site (the second was a test)? Well, it had that SQL syntax error, so I was trying to remove the module and use an older version which didn't have that problem.

venkat-rk’s picture

Oops, here is the link to the test site

venkat-rk’s picture

Okay, in case anyone is struggling with this problem, here is a simple fix. Use FTP or ssh to navigate to your lost site, *delete* the taxonomy.module and then *rename* the taxonomy.module.old to taxonomy.module and your site will be back again.

venkat-rk’s picture

My fix in the previous comment will not work if the site crash was caused by disabling the taxonomy (wrapper) module (see paragraph 2, comment #4) first.

vatavale’s picture

Version: 4.7.x-1.x-dev » master

Hi, inforeto

I use phpmyadmin for change back "0" to "1" in Status field, in System table, for Category.module record.