Log in

View Full Version : Sql error 1054...


dr.science
01-14-2005, 03:46 AM
I searched and could not fin an answer for this here, vb.com, or google. Here's the error I get:

Database error in vBulletin 3.0.5:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Registered Users',
description = '',
usertitle = '',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
canseehiddencustomfields = '0',
attachlimit = '0',
avatarmaxwidth = '175',
avatarmaxheight = '175',
avatarmaxsize = '20000',
profilepicmaxwidth = '180',
profilepicmaxheight = '180',
profilepicmaxsize = '65535',
pmquota = '95',
pmsendmax = '5',
forumpermissions = '127487',
pmpermissions = '3',
calendarpermissions = '19',
wolpermissions = '1',
adminpermissions = '0',
genericpermissions = '19478467',
genericoptions = '30',
arcadepermissions = '19'
WHERE usergroupid=2
mysql error: Unknown column 'canseehiddencustomfields' in 'field list'

mysql error number: 1054

Date: Friday 14th of January 2005 05:32:13 AM
Script: http://www.d-series.org/forums/admincp/usergroup.php
Referer: http://www.d-series.org/forums/admincp/usergroup.php?s=&do=edit&usergroupid=2

So, somehow I am now missing the canseehiddencustomfields from my database somehow? Is that right? How can I fix this, anyone? Your help is greatly appreciated. I get this error whenever I try to update a usergroup.

Thanks!

Tekton
01-14-2005, 04:12 AM
Is there a 'canseehiddencustomfields' field?

And if so is there any variation like a typo?

Zachery
01-14-2005, 04:25 AM
Is there a 'canseehiddencustomfields' field?

And if so is there any variation like a typo?
You've editd one of your cron files, canseehiddencustomfields is not a default permission.

dr.science
01-18-2005, 02:00 AM
Was this from a mod? I don't remember which file or mod contained this, and going through them I don't see which one it was.

All I have is:

vBGarage
Who was online today
Mood mod
vB CMPS
vBArcade
rotating banner on forums
trader rating mod

dr.science
01-18-2005, 02:00 AM
Thanks for your help, in advance, and for what you have clue'd me in on so far.

dr.science
01-18-2005, 02:41 AM
I can't seem to find where this was added, or attempted to be added... in any of the files I checked. :/

dr.science
01-18-2005, 03:03 AM
I found this in my admincp/usergroup.php:

print_yes_no_row($vbphrase['can_view_others_profile_pictures'], 'usergroup[canseeprofilepic]', $ug_bitfield['canseeprofilepic']);
// START VBGARAGE HACK
print_yes_no_row($vbphrase['can_vbgarage'], 'usergroup[canvbgarage]', $ug_bitfield['canvbgarage']);
// END VBGARAGE HACK
print_yes_no_row($vbphrase['can_view_hidden_custom_fields'], 'usergroup[canseehiddencustomfields]', $ug_bitfield['canseehiddencustomfields']);
print_table_break();
print_column_style_code(array('width: 70%', 'width: 30%'));
print_table_header("Arcade Permissions");


Anything?

dr.science
01-18-2005, 03:06 AM
Sorry for the multiple replies, I just keep finding stuff I am hoping someone can help with.

I checked the 3.0.5 "admincp/usergroup.php" file and it contains that field already, so what the hell happened to my database that the table is not there?!?

cinq
01-18-2005, 03:15 AM
Check the includes/init.php file ?
See if the Arcade hack installation mentions anything about adding something to do with canseehiddencustomfields in there.

Just a guess

dr.science
01-19-2005, 12:18 AM
Check the includes/init.php file ?
See if the Arcade hack installation mentions anything about adding something to do with canseehiddencustomfields in there.

Just a guess

I'll check this... I already have, but you never know. BUT, since I found that in the 3.05. upgrade package from VB the "canseehiddencustomfields" is in the files, isn't this vBulletin related? maybe I should try over there... If anyone had suggestions, or help I would love to hear them. I'll post this over there in the meantime.

Thanks!

dr.science
01-20-2005, 11:24 PM
Does anyone else have any suggestions or feedback? I am thinking I will have to just reinstall 3.0.5 and the hacks. That may work.