PDA

View Full Version : RC1, mysql error; picturecount from album; cron job


nanaimobar
Thu 20th Mar '08, 6:33pm
Been getting this error frequently since RC1:
Database error in vBulletin 3.7.0 Release Candidate 1:

Invalid SQL:
SELECT
picturecount
FROM album
WHERE userid=6;

MySQL Error : Unknown column 'picturecount' in 'field list'
Error Number : 1054
Date : Thursday, March 20th 2008 @ 02:01:01 PM

Errors report different script references at times. For example:
Script : http://mysite.com/forums/cron.php?rand=233189
Referrer : https://mysite.com/forums/newthread.php?do=newthread&f=42

or

Script : http://mysite.com/forums/cron.php?rand=409698
Referrer : https://mysite.com/forums/forumdisplay.php?f=29

Maybe the script should be https:// as I have strict ssl, but I don't know.

Steve Machol
Thu 20th Mar '08, 8:04pm
That field was removed in an earlier version. You are still running old code somewhere.

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.