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
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

boombatower - June 27, 2008 - 20:20
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?

#2

kbell - July 1, 2008 - 04:12

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

#3

kbell - July 1, 2008 - 04:15

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

boombatower - July 1, 2008 - 21:46

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

boombatower - September 28, 2009 - 07:57
Status:postponed (maintainer needs more info)» closed

Please re-open if still an issue.

 
 

Drupal is a registered trademark of Dries Buytaert.