Since a brief while ago, newly installed modules do not add their CSS and JS files. I have found that their hook_init function never runs (not even once on installation), and that clearing the cache tables fixes this.

Comments

cburschka’s picture

Title: Regression: hook_init cached badly, CSS/JS not added » Regression: hook_init never runs until cache is cleared manually.

I have noticed this issue again with SimpleTest. This needs to be fixed urgently.

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)

i couldn't reproduce this. enabling forum.module with caching css enabled, and forum_init was called.

can you give us the steps to reproduce in more detail?

sun.core’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, without further information this issue can only be marked as won't fix.

Feel free to re-open this issue if you want to provide further information. Thanks.

guysaban’s picture

I have a similar problem.

I found a few posts that suggest that there is a problem with hook_init. It has been affecting pages I translated (affecting Nice Menus output and Views Output).

see: http://drupal.org/node/289141