NONE of the drupal hooks will fire. I've installed a bland D7 with NO contrib modules, created a D7 basic module with 1 hook_boot in it. Enabled the module, put an echo in the hook_boot function, and nothing happened. The hook_boot function never even gets called at all. I then tried other hooks, same thing. Nothing. hook_init, hook_boot, hook_exit, hook_nodeapi, nothing.

I thought it might be a bad config. So I deleted the entire DB, wiped the files, redownloaded everything, re-installed, and tried it again. SAME RESULT.

The ONLY way to fix this had absolutely nothing to do with clearing cache tables (I tried that tons of times to no avail), but instead you have to look up the module in the SYSTEM table, DELETE it's entry manually, re-enable the module, and walla, the module works perfectly.

BTW, this DOES affect contrib modules. For giggles, I downloaded a contributed module from the DL site just to see if it would work, guess what. IT DIDNT. The module would only work if I deleted it's system entry and re-enabled it. How are others not noticing this critical issue?

What the hell would cause this? Why does deleting the module's system entry fix anything? I cannot find anything different in the field entries for the system table that were different than before.

I thought I was going crosseyed, so to test my theory I again wiped the DB/Files, everything. Started from scratch. Sure enough, the module didnt work. But as soon as I deleted the system entry and re-enabled the module, everything worked perfectly.

Erm, whats borked? I used the release version of 7.9. I have not tested the devel version, but I would assume it's affected by the same problem. Is this some sort of sick new feature to make me pull my hair out or is it a known bug?

Comments

crystaldawn’s picture

Issue summary: View changes

typo

crystaldawn’s picture

Oh one other thing. I should mention that custom functions (those that are NOT hooks) DO work fine. I also created a test_this() function, tried it in a seperate module by calling it on the very first line of the module right after the <?php tag (I didnt put it in a hook since those werent even working, thus it fires the second the file is included by drupal, the test module was included before the calling test module and thus the function was available), and the function worked perfectly. So the file IS being loaded, but the hooks are NOT being crawled/executed until I delete the system entry for the offending module which is NOT cool at all.

pingers’s picture

Status: Active » Closed (cannot reproduce)

Cannot reproduce in 7.x, nor 7.9 - clean installs.

sites/all/modules/test/test.info

Name = Test
description = A description of what your module does.
core = 7.x

sites/all/modules/test/test.module

<?php
function test_boot() {
  echo 'hello world!';
}
pingers’s picture

Issue summary: View changes

typo