I have had site map installed, and would like to uninstall it since I am not using it. The uninstall goes to a white screen with this message:

Fatal error: Call to undefined function locale_supported_languages() in /homepages/40/d189931975/htdocs/drupal/sites/all/modules/site_map/site_map.install on line 21

I have no i18n stuff on the site, just plain 'ol english. No other error or problems on the site, which is running drupal 5.7.

Comments

darumaki’s picture

same here too

frjo’s picture

Status: Active » Postponed (maintainer needs more info)

Please try out the 5-dev version, I have just committed a fix for this problem.

The fix is to put the problem code in site_map.install inside a if (function_exist('locale')) call.

  if (function_exists('locale')) {
    $langs = locale_supported_languages();
    foreach ($langs['name'] as $lang_code => $lang_name) {
      variable_del("site_map_message_$lang_code");
    }
  }
frjo’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.