vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   I keep getting... (https://vborg.vbsupport.ru/showthread.php?t=67658)

Daniel.C 07-26-2004 12:42 PM

I keep getting...
 
I keep getting this error and it's not allowing us to see the site anymore.

Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,calendar.ca lendarid,calendar.title, displayorder
FROM vb3_calendar AS calendar
LEFT JOIN vb3_calendarpermission AS calendarpermission ON (calendarpermission.calendarid=calendar.calendarid AND usergroupid IN(, , 6))
ORDER BY displayorder ASC

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' , 6))
ORDER BY displayorder ASC' at line 3
mysql error number: 1064
Date: Monday 26th of July 2004 09:41:22 AM
Script: http://www.infinitiveintentions.com/forums/index.php?
Referer:
Username: Sparky



Any help would be aprechiated

Colin F 07-26-2004 12:53 PM

Quote:

Originally Posted by Daniel.C
I keep getting this error and it's not allowing us to see the site anymore.

Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,calendar.ca lendarid,calendar.title, displayorder
FROM vb3_calendar AS calendar
LEFT JOIN vb3_calendarpermission AS calendarpermission ON (calendarpermission.calendarid=calendar.calendarid AND usergroupid IN(, , 6))
ORDER BY displayorder ASC

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' , 6))
ORDER BY displayorder ASC' at line 3
mysql error number: 1064
Date: Monday 26th of July 2004 09:41:22 AM
Script: http://www.infinitiveintentions.com/forums/index.php?
Referer:
Username: Sparky



Any help would be aprechiated

I don't get such an error when I visit your site.

The problem is the missing variables in the (, , 6)

Did you change anything in your functions.php? If so, try uploading the default functions.php again (unless you made tons of changes :)), that might help...

Daniel.C 07-26-2004 01:35 PM

I have already tried that and it didn't work. :cry:

Modin 07-26-2004 02:34 PM

the variable is that has a part missing is $membergroupids, when it's imploded it's creating a blank field.

have you added yourself to a usergroup and then deleted it? or something similar?

try adding this just before that query in functions.php

Code:

$membergroupids = trim($membergroupids);

Daniel.C 07-26-2004 04:14 PM

Add it where exactly ?

Modin 07-26-2004 04:44 PM

open up functions.php and do a search for

"SELECT calendarpermission"

That should find that query that's give you an error, then add that code above it. Not 100% if it'll fix your problem or not, since it's difficult to say what's in that variable.

Daniel.C 07-26-2004 05:00 PM

Ok i tried it and it didn't work

Dean C 07-26-2004 05:48 PM

Well seems as one value is present i'd say somewhere along the line you've done something with a modification (or it could even be a bug) and the entry in the database has gone blank. Try rebuilding your statistics and all that other stuff in the maintenance area :)

Daniel.C 07-26-2004 05:51 PM

I have already tried that aswell, thanks for trying though

Daniel.C 07-27-2004 11:55 AM

Anyone else have any Ideas ? I have found out that it is only the admins that can't see the board but they can see the admin cp for some reason.


All times are GMT. The time now is 06:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01336 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete