Steps to reproduce:

1. Administer > Modules
2. Disable all the Localizer sub-modules (you cannot disable the root Localizer module until you disable the others)
3. Save. Bang! Your site no longer works as the Localizer module is looking for code inside one of the other modules you just disabled and you get a php error.

I could not work out how to disable the remaining localizer module manually, so had to ftp a blank file over the top of localizer.module so that my site became usable again. Then disabled the module.

BTW Localizer has no uninstall routine so it leaves behind several tables and entries in the variable table which you have to clean up manually.

Comments

PawelPohl’s picture

I have a similar problem with Drupal 5.6 and Localizer 1.9. Turning the modules off worked fine, but deleting them from /sites/all/modules causes the site to crash (php trying to include non-existent functions).

PawelPohl’s picture

Error details:

Fatal error: Call to undefined function block_list() in /usr/local/src/drupal-5.5/includes/theme.inc on line 1018

However, the problem is not in theme.inc, as it is the same as in a default installation.

Roberto Gerola’s picture

Give writing grants on files :
sites/all/modules/localizer/taxonomy/taxonomy.module
sites/all/modules/localizer/block/block.module
sites/all/modules/localizer/menu/menu.module

Add this function in localizer.install file :

function localizer_uninstall() {
if(file_exists('sites/all/modules/localizer/taxonomy/taxonomy.module')) {
rename('sites/all/modules/localizer/taxonomy/taxonomy.module', 'sites/all/modules/localizer/taxonomy/taxonomy.module.off');
}

if(file_exists('sites/all/modules/localizer/block/block.module')) {
rename('sites/all/modules/localizer/block/block.module', 'sites/all/modules/localizer/block/block.module.off');
}

if(file_exists('sites/all/modules/localizer/menu/menu.module')) {
rename('sites/all/modules/localizer/menu/menu.module', 'sites/all/modules/localizer/menu/menu.module.off');
}

db_query("DROP TABLE IF EXISTS {localizertranslation}");
db_query("DROP TABLE IF EXISTS {localizernode}");
db_query("DELETE FROM {variable} WHERE name LIKE 'localizer%'");
db_query("DELETE FROM {system} WHERE name LIKE 'localizer%'");
db_query("UPDATE {system} SET filename='modules/taxonomy/taxonomy.module' WHERE name LIKE 'taxonomy'");
db_query("UPDATE {system} SET filename='modules/menu/menu.module' WHERE name LIKE 'menu'");
db_query("UPDATE {system} SET filename='modules/block/block.module' WHERE name LIKE 'block'");
}

Uninstall localizer.

mr.j’s picture

Thanks Roberto

Roberto Gerola’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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