PDA

View Full Version : MySQL Error : Unknown column 'customavatar.width_thumb' in 'field list'


007
Thu 6th Mar '08, 2:36pm
I have been getting this error lately. It says a column does not exist but that actually is in the database. I just checked..

I don't think this is due to any plugins or custom code as it appears to have some new fields in it that are used for the new avatar thumnails.

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline,
customavatar.width, customavatar.height, customavatar.width_thumb, customavatar.height_thumb
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid = 0;

MySQL Error : Unknown column 'customavatar.width_thumb' in 'field list'
Error Number : 1054

I've had this error a few times and it's been a different userid each time. Any ideas?

Steve Machol
Thu 6th Mar '08, 2:42pm
To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

[Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

Next, disable all plugins.

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it. Do you have the same problem?