Hi,
After extracting library into module directory and doing everything exactly as specified in readme file got:
Fatal error: Call to undefined function language_initialize() in C:\wamp\www\d6test1\sites\all\modules\click_heatmap\click_heatmap.module on line 149
Drupal 6.3, Click Heatmap 2.5
Windows XP, wamp
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | click_heatmap.module.patch | 2.46 KB | univate |
| #3 | click_heatmap.patch | 2.04 KB | wulff |
Comments
Comment #1
playfulwolf commentedsorry :) commented out that function.
Comment #2
boombatower commentedSo is there still a bug?
Comment #3
wulff commentedThis is still a bug. The attached patch fixes the problem (and removes some trailing whitespace).
AFAICT the problem is that in click_heatmap_remove_language_prefix() we're tryingto call the function language_initialize() which may not be available.
Looking through drupal_init_language() in bootstrap.inc, language.inc is only included if the site uses two or more languages.
The fix in this patch simply includes language.inc in click_heatmap_remove_language_prefix().
Comment #4
univate commentedThis is definitely a bug for sites only using one language.
I have done what I think is a cleaner fix to just check the number of languages, no need to do anything in the function click_heatmap_remove_language_prefix() if there is only the one language in use (and I've left the whitespace fixes from the previous patch)
Comment #5
boombatower commentedCommitted.
Thanks.