After upgrading to 4.1.6 I have started to receive db errors when I attempt to approve pictures users have uploaded. I get the following:
I've X'd out sensitive info but as you can see, the moderate.php script is attempting to do a SELECT on table XXXXXX.attachment. The only problem is that all of my tables have "vb_" as the table prefix. so it should be "FROM vb_attachment as a".
I am able to approve the images but I get this error after the update. I assume it is when it re-queries the db for items not yet moderated.
Just curious if this is a bug in the new 4.1.6 code or if I messed up doing the upgrade. I did a version check in Diagnostics and it reports no errors for anything in the modcp directory where the moderate.php file is located.
Code:
Database error in vBulletin 4.1.6: Invalid SQL: SELECT a.attachmentid, a.contentid FROM attachment as a WHERE a.attachmentid IN (117223,117224,117225,117226,117227) AND a.contenttypeid = 8; MySQL Error : Table 'XXXXXX.attachment' doesn't exist Error Number : 1146 Request Date : Tuesday, September 27th 2011 @ 10:58:22 AM Error Date : Tuesday, September 27th 2011 @ 10:58:22 AM Script : [URL="http://www.thailandfriends.com/modcp/moderate.php?do=doattachments"]http://www.XXXXXXXXXXX/modcp/moderate.php?do=doattachments[/URL] Referrer : [URL="http://www.thailandfriends.com/modcp/moderate.php?do=attachments"]http://www.XXXXXXXX/modcp/moderate.php?do=attachments[/URL] IP Address : XXXXXXXXX Username : XXXXXXX Classname : vB_Database MySQL Version : 5.1.56
I am able to approve the images but I get this error after the update. I assume it is when it re-queries the db for items not yet moderated.
Just curious if this is a bug in the new 4.1.6 code or if I messed up doing the upgrade. I did a version check in Diagnostics and it reports no errors for anything in the modcp directory where the moderate.php file is located.
Comment