PDA

View Full Version : Database errors


Bluefin221
08-04-2010, 03:28 PM
I'm receiving a constant stream of database errors and I'm wondering how I can get rid of them, today when I woke up there was over 700 error reports into my inbox from two sources.

Database error in vBulletin 4.0.5:

Invalid SQL:

SELECT languageid,
phrasegroup_global AS phrasegroup_global,
phrasegroup_vbtube AS phrasegroup_vbtube,
phrasegroup_adv_gallery_int AS phrasegroup_adv_gallery_int,
options AS lang_options,
languagecode AS lang_code,
charset AS lang_charset,
locale AS lang_locale,
imagesoverride AS lang_imagesoverride,
dateoverride AS lang_dateoverride,
timeoverride AS lang_timeoverride,
registereddateoverride AS lang_registereddateoverride,
calformat1override AS lang_calformat1override,
calformat2override AS lang_calformat2override,
logdateoverride AS lang_logdateoverride,
decimalsep AS lang_decimalsep,
thousandsep AS lang_thousandsep
FROM calton_vforumslanguage
WHERE languageid = 1;

MySQL Error : Unknown column 'phrasegroup_vbtube' in 'field list'
Error Number : 1054
Request Date : Wednesday, August 4th 2010 @ 11:09:59 AM
Error Date : Wednesday, August 4th 2010 @ 11:09:59 AM
Script : forums/vbtube_show.php?do=tube&tubeid=90
Referrer :
IP Address :
Username :
Classname : vB_Database
MySQL Version :

Database error in vBulletin 4.0.5:

Invalid SQL:

SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_global AS phrasegroup_global,
language.phrasegroup_vbanonymizer AS phrasegroup_vbanonymizer,
language.phrasegroup_adv_gallery_int AS phrasegroup_adv_gallery_int,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep
, ppgal_user.ppicount, ppgal_user.pppcount, ppgal_user.lastimageid, ppgal_user.lastimagetitle, ppgal_user.lastimagedate, ppgal_user.lastpostid, ppgal_user.lastposttitle, ppgal_user.lastpostdate, ppgal_user.profile_active, ppgal_user.profile_exclude, ppgal_user.profile_include, ppgal_user.profile_orderby, ppgal_user.profile_cutoff, ppgal_user.profile_tabfirst, ppgal_user.profile_autosel, ppgal_user.profile_tabstats, ppgal_user.profile_tabhighlight, ppgal_user.profile_showtitle, ppgal_user.profile_showcat, ppgal_user.profile_showcontext, ppgal_user.profile_contextfirst, ppgal_user.profile_showhtitle, ppgal_user.profile_husername, ppgal_user.profile_showhcat, ppgal_user.profile_showhcontext, ppgal_user.ppfavcount, ppgal_user.upload_readpolicy, ppgal_user.profile_tabthumbs, ppgal_user.profile_limit
FROM calton_vforumsuser AS user
LEFT JOIN _vforumsuserfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN _vforumsusertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN calton_vforumslanguage AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

LEFT JOIN calton_vforumsppgal_user AS ppgal_user ON (ppgal_user.userid = user.userid)
WHERE user.userid = 4963;

MySQL Error : Unknown column 'language.phrasegroup_vbanonymizer' in 'field list'
Error Number : 1054
Request Date : Wednesday, August 4th 2010 @ 11:09:18 AM
Error Date : Wednesday, August 4th 2010 @ 11:09:18 AM
Script :forums/redirector.php?url=http%3A%2F%2Fwww.amazon.co.uk%2 FProtestants-First-Orangeism-Century-Scotland%2Fdp%2F074860202X%2Fref%3Dsr_1_6%2F203-9011919-8981547%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1193956489 %26sr%3D1-6
Referrer : forums/showthread.php?119-PUL-Book-List
IP Address :
Username :
Classname : vB_Database
MySQL Version :

The first one is from vbtube which was a 3.x addon and the second vbanonymizer again a 3.x addon, vbanonymizer the links on my forum as shown above still trying to convert the links so that they are anonymous I don't know how to convert them back.

Bluefin221
08-09-2010, 12:27 AM
Can anyone help with this or give tips I'm getting tons of these mails a day.

Videx
08-09-2010, 12:44 AM
This is one reason I always tell people to completely uninstall 3.x mods before upgrading to vb4. They won't work, and they can only cause trouble.

Bluefin221
08-09-2010, 08:50 AM
This is one reason I always tell people to completely uninstall 3.x mods before upgrading to vb4. They won't work, and they can only cause trouble.

I did uninstall them, I still get the errors - the first one vbanonymizer all the links in my forum are still pointing towards being anonymous so none work and throw up this error I have no idea how to convert them.

The second one I believe is coming from search engines as none of the videos were linked on my site.

borbole
08-09-2010, 01:13 PM
When you uninstalled the mods, did you delete all their files too?

Videx
08-09-2010, 01:48 PM
Right. Uninstalling isn't just a matter of hitting the 'uninstall' button. Once you're sure you've gotten rid of the old files, then you can start troubleshooting.

If the one mod left a bunch of malformed links, they shouldn't generate a mysql error, though they won't work. But that could be fixed with a query or search and replace.

Bluefin221
08-10-2010, 05:43 AM
database errors are clear, thanks guys I hadn't been removing files just uninstalling. I still have the issue whereby my links are still trying to use vbanonymizer.

Videx
08-10-2010, 06:29 AM
If the mod or author is still around there should be an upgrade path. I know with one of my mods - AME I think - the author wrote a small app that updated all the previous links to work with the vb4 version of the mod.

Bluefin221
08-10-2010, 07:54 AM
If the mod or author is still around there should be an upgrade path. I know with one of my mods - AME I think - the author wrote a small app that updated all the previous links to work with the vb4 version of the mod.

I can't find a vb4 version of the mod unfortunately.

borbole
08-10-2010, 10:56 AM
Can you post a link to the 3x version of the mod?

Bluefin221
08-10-2010, 02:41 PM
https://vborg.vbsupport.ru/showthread.php?t=184267&highlight=vbanonimizer

--------------- Added 1281455324 at 1281455324 ---------------

I should say before anyone does the uninstall script does not work and the vb4 version posted within that thread creates new errors.

Videx
08-10-2010, 04:01 PM
Just what do the bad links look like? You can't use a simple search and replace to fix them?

Bluefin221
08-10-2010, 07:08 PM
Just what do the bad links look like? You can't use a simple search and replace to fix them?

forums/redirector.php?url=http%3A%2F%2Fwww.amazon.co.uk%2 FProtestants-First-Orangeism-Century-Scotland%2Fdp%2F074860202X%2Fref%3Dsr_1_6%2F203-9011919-8981547%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1193956489 %26sr%3D1-6

Videx
08-10-2010, 07:47 PM
What a mess. No wonder even the author can't figure out how to save them.