Fatal error: Call to undefined function language_initialize() in /mnt/target03/358870/www.healthcaregoesmobile.com/web/content/modules/click_heatmap/click_hea... on line 149

Any ideas?
Thanks,
Kelly

Comments

boombatower’s picture

Status: Active » Postponed (maintainer needs more info)

Try removing the line and see if the code still functions.

Do you have multiple languages configured or just one?

kbell’s picture

I have content translation installed, and localization, but only English is configured.

kbell’s picture

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

boombatower’s picture

Have you tried removing the line 149 from /modules/click_heatmap/click_heatmap.module.

You should see something like

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();.

boombatower’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Please re-open if still an issue.