Fatal error language undefined
kbell - June 26, 2008 - 21:19
| Project: | Click HeatMap |
| Version: | 6.x-2.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Fatal error: Call to undefined function language_initialize() in /mnt/target03/358870/www.healthcaregoesmobile.com/web/content/modules/click_heatmap/click_heatmap.module on line 149
Any ideas?
Thanks,
Kelly

#1
Try removing the line and see if the code still functions.
Do you have multiple languages configured or just one?
#2
I have content translation installed, and localization, but only English is configured.
#3
And for what it's worth, I have yet to get the module to successfully work. I followed the instructions, and installed the maps correctly (the module reports that it is correctly installed), but it's no working, and just throws errors every time I enable the module so I have to turn it back off.
I'm sure it's my fault, but I just don't know what I've done wrong.
Thanks,
Kelly
#4
Have you tried removing the line 149 from
/modules/click_heatmap/click_heatmap.module.You should see something like
<?php
function click_heatmap_remove_language_prefix($url) {
if (array_key_exists('locale', module_list())) {
global $language;
language_initialize();
if ($language->prefix != '') {
return str_replace('/' . $language->prefix . '/', '/', $url);
}
}
return $url;
}
?>
try removing the with
language_initialize();.#5
Please re-open if still an issue.