Code:
Database error in vBulletin 4.0.2:
Invalid SQL:
REPLACE INTO vb_search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, '173.160.151.225', 1, 'Hugs & Hisses', '', 'post.dateline', 'DESC', 0.00521, 1, '82076,81918,80565,80397,79291,78669,78659,78334,77976,77744,77266,76845,76782,76717,76494,76449,76445,76304,75850,75787,75386,75385,74770,74633,73678,73162,73035,72371,72230,71802,71394,70338,69937,68475,67925,66787,66205,66188,66098,64710,64644,64296,64069,63850,63826,63627,63545,63493,63487,63411,63202,62754,62329,61424,60658,60652,59645', 1270507241, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:813;s:17:\"Hugs & Hisses\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'ba678b6b15c81aac30e8c7c52ddb73a8');
MySQL Error : Table 'pnwhs_forums.vb_search' doesn't exist
Error Number : 1146
Request Date : Monday, April 5th 2010 @ 03:40:41 PM
Error Date : Monday, April 5th 2010 @ 03:40:41 PM
Script : http://forums.pnwhs.org/post_thanks.php?do=findthanks&u=813
Referrer :
IP Address : 173.160.151.225
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :
I see quite clearly where it is coming from. Line 278 of post_thanks.php is the file that has that SQL query and is part of the IF block that has the do=findthanks. However this script also generates the error for do=findthanks_user_gave as well. If I go look in the vB database there is no "search" table. Anyone have any idea why this is?
Ok I see that this is a common error in this hack and that the best solution appears to be this:
However, why am I commenting out dozens of lines of code? Is this actually broken then? Abe1 would you care to comment on this?