Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I have experienced the same problem. I believe I know the solution. In chatroll.install in hook_uninstall there is a code
foreach (array_keys($conf) as $key) {
// Find variables that have the 'chatroll_' module prefix
if (strpos($key, 'chatroll_') == 0) {
variable_del($key);
}
}
Its supposed to find every key in table variable that has string 'chatroll_' on position 0 (start of the string) and delete it. Problem is that
if (strpos($key, 'chatroll_') == 0)
returns TRUE for every record of variable table because 0 also equals false...so what you need to do is to use '===' instead of '==' like this
Didn't see this issue until now. Sorry for re-opening it but I have an urgent problem..
Having chatroll 6.x-1.0 version installed at one of my sites. One of the admins did the uninstall (tho.. didn't expect that chatroll module would have such a bug) and the whole website has crashed. No pages can be accessed now.
So my question is.. How can I solve to get the website working again? Did the "chatroll uninstall" messed up the database? Possible to fix this by phpmyadmin and change something in the tables?
I guess there is no database backup since the last auto backup was tooken during the website been in crashed status.
It deleted all entries from the variables table, meaning that any settings that were made are now re-setted to their default values. No there's no simple fix for this - the data is just lost. The only way to fix this is by re-importing a backup of the variables-table.
The other way is to re-configure any settings that were made.
Protip: Always keep more than one backup so the last one won't get overwritten with the broken database when you actually need it.
Would be evil if the chatroll module has caused that a website with thousands of users and content are gone, just because of a bad bug from chatroll 6.x-1.0 version maintainer...
Edit: Fortunately last auto backup was made just minutes before the database broke, so it's reset and working now.
Comments
Comment #1
topy commentedI confirm this fact!!! mf fact... (((
Comment #2
bryancasler commentedGlad I saw this before giving it a try, Subscribe!
Comment #3
nick123pig commentedConfirmed. It's happening to me too. It changes the theme back to default, and does some funky things with content permissions.
Comment #4
m1n0 commentedI have experienced the same problem. I believe I know the solution. In chatroll.install in hook_uninstall there is a code
Its supposed to find every key in table variable that has string 'chatroll_' on position 0 (start of the string) and delete it. Problem is that
returns TRUE for every record of variable table because 0 also equals false...so what you need to do is to use '===' instead of '==' like this
This worked for me perfectly.
Please consider updating this into module.
Comment #5
andrii_svirin commentedfuck site had fallen
Ban this module and Author
Comment #6
germanmikel commentedadding the = sign worked great. Thanks so much. Please add for the next module update!
Comment #7
interestingaftermath commentedsubscribe
Comment #8
michelleFYI: #1421706: Chatroll Live Chat has unaddressed critical uninstall bug that affects entire site
Comment #9
patrickd commentedI temporarily took this over.
Should be fixed in 1.1 release.
Thanks everyone
Comment #11
miccelito commentedDidn't see this issue until now. Sorry for re-opening it but I have an urgent problem..
Having chatroll 6.x-1.0 version installed at one of my sites. One of the admins did the uninstall (tho.. didn't expect that chatroll module would have such a bug) and the whole website has crashed. No pages can be accessed now.
So my question is.. How can I solve to get the website working again? Did the "chatroll uninstall" messed up the database? Possible to fix this by phpmyadmin and change something in the tables?
I guess there is no database backup since the last auto backup was tooken during the website been in crashed status.
Comment #12
patrickd commentedIt deleted all entries from the variables table, meaning that any settings that were made are now re-setted to their default values. No there's no simple fix for this - the data is just lost. The only way to fix this is by re-importing a backup of the variables-table.
The other way is to re-configure any settings that were made.
Protip: Always keep more than one backup so the last one won't get overwritten with the broken database when you actually need it.
Sorry :(
Comment #13
miccelito commentedWould be evil if the chatroll module has caused that a website with thousands of users and content are gone, just because of a bad bug from chatroll 6.x-1.0 version maintainer...
Edit: Fortunately last auto backup was made just minutes before the database broke, so it's reset and working now.
Comment #14
patrickd commentedvery good! :)