Hi, if caching is on, hook_init is still called. In shadowbox there are calls to drupal_get_path and base_path(). These won't work if caching is on.

I fixed this on my installation by renaming shadowbox_init to something like shadowbox_start_setup() and by calling this function in hook_menu().

Thx for this module btw. I have added some features and will commit those asap.

Comments

psynaptic’s picture

Status: Needs review » Closed (fixed)

I've don't quite a bit of work on the 5.x version of this module and one thing is moving the header code to hook_menu. If you're going to submit patches, please do them in small chunks.