The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What's the best way to remove a corrupted mod?
When I upgraded from 3.6.8, I didn't uninstall the post thank you hack before going to Beta 4. The upgrade went fine, and currently my forum is happy, with the 3.6.x version of the hack installed but disabled.
When I try to uninstall the hack, my ACP times out on it. Eventually it'll just give me a proper timeout page, in which case I'll just try again. However I think the uninstall script is half executing. If I try it a second time, I get this DB error: Code:
Database error in vBulletin 3.7.0 Beta 4: Invalid SQL: SELECT * FROM vb3_post_thanks WHERE postid IN (0,868677,868679,868684,868691,868693,868694,868729,868740,868744,868766) ORDER BY username ASC; MySQL Error : Table 'x.vb3_post_thanks' doesn't exist Error Number : 1146 Date : Wednesday, February 13th 2008 @ 08:04:33 PM Script : http://www.sevenstring.org/forum/showthread.php?t=48436 Referrer : http://www.sevenstring.org/forum/site-news-support/ Username : Chris Classname : vb_database MySQL Version : 4.1.15 My members love this hack, and so do I. More importantly, I don't want my install cluttered up with half-installed mods, and just knowing that it's there and disabled is driving me freaking crazy. All that said, how should I go about removing the corrupted hack? I haven't checked the plugin, and I don't think I'm quite savvy enough to figure out the uninstall routine in it and step through it manually to find where it's actually dying. I think if I can get it cleanly (manually) uninstalled and drop the tables itself I should be good to go, but I assume that it makes some kind of modification to the post table as well that I don't know how to revert - otherwise, why would it kill that table every time the uninstall dies? Any insight would really be appreciated. *If you can help me solve this, Nexialys will come to your house wearing a toga and mow your lawn, shovel your driveway, and/or change the oil in your car. *this is a lie |
#2
|
||||
|
||||
Well, now you are scaring me. I had the post thank you hack installed on my test board (3.6.8) and I have since upgraded the test board to 3.7 (only beta 2, this was a couple of months ago). I had disabled it prior to the upgrade because we weren't sure we wanted it and now I'm afraid to completely uninstall it.
|
#3
|
|||
|
|||
I don't want to point the finger at Abe's code, because obviously it's a very popular hack that's working well on a ton of sites. I can only say what happened to me personally when I tried to uninstall the old version after I upgraded to 3.7. I see this uninstall code in the XML:
Code:
<installcode> - <![CDATA[ $db->hide_errors(); $vbulletin->db->query_write("CREATE TABLE IF NOT EXISTS`". TABLE_PREFIX ."post_thanks` ( `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` INT(10) NOT NULL, `username` VARCHAR(50) NOT NULL, `date` INT(10) NOT NULL, `postid` INT(10) NOT NULL) "); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."post_thanks` ADD INDEX ( `postid` )"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_user_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."post` ADD `post_thanks_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_thanked_posts` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_thanked_times` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $db->show_errors(); ]]> </installcode> - <uninstallcode> - <![CDATA[ $db->hide_errors(); $vbulletin->db->query_write("DROP TABLE IF EXISTS " . TABLE_PREFIX . "post_thanks"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` DROP `post_thanks_user_amount`"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."post` DROP `post_thanks_amount`"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` DROP `post_thanks_thanked_posts`"); $vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` DROP `post_thanks_thanked_times`"); $db->show_errors(); ]]> </uninstallcode> I'm gong to be a smart puppy this weekend and just port my entire 3.7 install over to my testbed and try to sort it out there before trying anything on my live site, but at the time I didn't expect such a big crash from something as small as uninstalling a plugin. Live and learn I guess. |
#4
|
|||
|
|||
The database error you have posted in the first post does not seem to originate from the uninstall script, so not really related to your uninstall problem:
Script : http://www.sevenstring.org/forum/showthread.php?t=48436 I don't see any major errors in the uninstall script. My guess is that the only error made, is that you thought the script didn't work and canceled it halfway. If you have large tables, then these ALTER TABLEs can take a long time. Best is to uninstall again, if an error, edit the uninstall code removing those tasks that are already completed from the top, retrying after each change until it runs till the end. |
#5
|
|||
|
|||
Thanks Marco. I'm not cancelling the uninstall, eventually my ACP just hits a white screen and the query seems to die on it's own. I'm sure the uninstall script itself is fine, that's just the DB error that I get after I try to uninstall it and it times out.
Edit: Success! I ended up stepping through the uninstall manually in a shell. Woohoo! |
#6
|
||||
|
||||
I think this may have to do with what your PHP Memory Limit is.
The uninstall script must have removed the tables but got gotten upto the plug-ins. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|