Ok here's what I think I was doing wrong. I was switching databases thinking that would solve the problem. But the backup I made of my forum was after I installed the bad plugin. So I would install that backup into the new databases first. Thus, I think the data from my backup is corrupting the new database tables. And even when I wipe the data from the new database. It's still bad because it has been already touched with the corrupt backup data.
So what I think I have to do, is create a fresh new database. And install the backup from December 31st 2011 into that database. Thus it would be uncorrupted. Also here's more on the mod itself. Valter's VSA paypal donate for VB4. When I installed, I got this error at the top of the page.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/global.php(355) : eval()'d code on line 46
Also I saw this in my admin cp for this particular plugin.
There are four boxes, with each box having two columns listed underneath. One column marked install code? Has two boxes underneath it. The other column marked uninstall code? Has two boxes underneath as well. At the top, it says EXISTING INSTALL/UNINSTALL CODE. But here's the problem.
Underneath the install code column. Box 1 says...
Code:
$vbulletin->db->hide_errors();
echo "<br /><center>Transferring your previous Donations to a new version...</center>";
vbflush();
$vsapp_getold = $vbulletin->db->query_read("
SELECT id, userid, amount, dateline, confirmed, userip, subs
FROM " . TABLE_PREFIX . "cybppdonate AS cybppdonate
ORDER BY id
");
while ($vsapp_old = $db->fetch_array($vsapp_getold))
{
$vbulletin->db->query_write("
INSERT INTO ".TABLE_PREFIX."vsa_ppdonate
(userid, amount, dateline, confirmed, userip, subs)
VALUES ('" . $vbulletin->db->escape_string($vsapp_old['userid']) . "', '" . $vbulletin->db->escape_string($vsapp_old['amount']) . "', '" . $vbulletin->db->escape_string($vsapp_old['dateline']) . "', '" . $vbulletin->db->escape_string($vsapp_old['confirmed']) . "', '" . $vbulletin->db->escape_string($vsapp_old['userip']) . "', '" . $vbulletin->db->escape_string($vsapp_old['subs']) . "')
");
}
$vbulletin->db->show_errors();
Box 2 says...
Code:
$vbulletin->db->hide_errors();
$vbulletin->db->query_write("
CREATE TABLE IF NOT EXISTS `". TABLE_PREFIX ."vsa_ppdonate` (
`id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`userid` INT(10) NOT NULL,
`amount` INT(10) NOT NULL,
`dateline` INT(20) NOT NULL,
`confirmed` INT(1) NOT NULL,
`userip` VARCHAR(20) NOT NULL,
`subs` INT(3) DEFAULT '0' NOT NULL)
");
$vbulletin->db->show_errors();
Now under the uninstall code column, box 1 is EMPTY. Box 2 though says...
Code:
$vbulletin->db->hide_errors();
$vbulletin->db->query_write("DROP TABLE IF EXISTS `" . TABLE_PREFIX . "vsa_ppdonate` ");
$vbulletin->db->show_errors();
Keep in mind this is what was located in my admin cp when the plugin/mod was installed. Now that it's uninstalled, those options for this plugin aren't there anymore. However...I think this might be the problem. There was no uninstall code in box 1 of the uninstall code column! So could it be something is still being called by this plugin even though it's technically uninstalled? Perhaps you can help BOP5? Do I need to edit my global.php file in my forum folder?