I just disabled the Taxonomy module on this test site http://69.50.214.54/~arhspare/ and now get this error message on all pages:

"Fatal error: Call to undefined function: taxonomy_get_tree() in /home/arhspare/public_html/modules/simplenews/simplenews.module on line 125"

Then I looked to see what if anything had changed in the database tables, and discovered that the database is completley gone.

I am not sure how that is possible - somehow SQL from disabling Taxonomy would completely drop the database?

Fortunately this was just a test site. Unfortunatley, I did not back it up. Oh well.

If any thoughts, please advise. Thanks.

Comments

Gary Feldman’s picture

How did you check the presence of the database? It doesn't seem likely that the database could be gone, because Drupal reads the database relatively early in its processing. I'm not positive, but I don't think Drupal would even call the function in simplenews that triggered the error without first retrieving the data indicating that the simplenews module is enabled.

In any event, simplenews requires the taxonomy module. I don't know of any mechanism to prevent you from disabling modules required by other modules, but you'll find that Drupal can misbehave in strange ways if you do that. The taxonomy module, in particular, is required by many other modules.

Gary Feldman

Rick Hood’s picture

I looked via CPanel at my web host as well as phpMyAdmin. It doesn't list any databases for this domain. I know - its very strange.

More...

I think something is wrong with CPanel at my host. Another domain shows database is gone, but it is not gone because the site is working OK.

Anyhow - is there a way I can re-enable Taxonomy? I can't get to the admin anymore

http://69.50.214.54/~arhspare/?q=admin/modules

...as I just get the error above.

Thanks

Rick Hood’s picture

I deleted the modules/simplenews folder, which got rid of the error. Then I was able to enable Taxonomy. Then I re-uploaded simplenews and re-enabled it.

I still have no idea why CPanel is not showing the database there....I will check with my host.

dman’s picture

Really must be a different cause. Just happend around the same time.

True a few modules are lax in checking their dependancies (although doing so at install is usually good enough, what can we do if you turn stuff off later?) , and everyone assumes you have taxonomy enabled. so an error is normal.

There is, as yet, no actual 'uninstall' process, it's still in the talk-about-it stage I think, and no modules, least of all core taxonomy would attempt to discard info.

If the database was "GONE" Drupal would be coming up with a connection error and wouldn't even bootstrap to give you that message.

If the database was "empty" (highly unlikely) your front page would probably revert to the default or a 404, and admin/content would list nothing.

I suspect it's actually become 'inaccessible' for some reason - like taxonomy_access stopped allowing you anywhere.

- or an unrelated outside cause.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

Rick Hood’s picture

Later last night the missing databases "appeared" again in CPanel. It must have been something weird at the web host (totalchoicehosting.com). Comment from support there was this:

"Happy to know that its working fine for you now. The issue must have been due to some temporary network issue."

PS: I am generally happy with totalchoicehosting.com - support is responsive.

Gary Feldman’s picture

what can we do if you turn stuff off later?

As an aside, in theory there could be a module dependency table, so that any module depending upon another could register itself there, and any module being disabled could check that table and take appropriate action. So it's not as though it's impossible to come up with a solution, just that nobody has found it important enough to do.

Gary Feldman