Closed (fixed)
Project:
Localizer
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2008 at 01:51 UTC
Updated:
2 Feb 2008 at 08:23 UTC
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
Comment #1
PawelPohl commentedI 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).
Comment #2
PawelPohl commentedError 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.
Comment #3
Roberto Gerola commentedGive 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.
Comment #4
mr.j commentedThanks Roberto
Comment #5
Roberto Gerola commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.