Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2011, 08:57 AM
smooth-c smooth-c is offline
 
Join Date: Jan 2008
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Error - Calendar?

I've been getting this database error for about a week or so now. I can't work out any change that I've made that could have caused this, so I hope someone can help.

Code:
Database error in vBulletin 4.1.2:

Invalid SQL:

               SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,
                       calendar.calendarid,calendar.title, displayorder
               FROM vb_calendar AS calendar
               LEFT JOIN vb_calendarpermission AS calendarpermission ON
                       (calendarpermission.calendarid = calendar.calendarid AND
                               usergroupid IN (1))
               ORDER BY displayorder ASC;

MySQL Error   : Unknown column 'calendar.calendarid' in 'field list'
Error Number  : 1054
Request Date  : Tuesday, April 12th 2011 @ 05:26:29 AM
Error Date    : Tuesday, April 12th 2011 @ 05:26:29 AM
Script        : http://www.xx.com/discussion/calendar.php?c=1&do=displayweek&month=1&week=1261872000
Referrer      :
IP Address    : 38.101.148.xxx
Username      : Unregistered
Classname     : vB_Database
The calendar seems to work fine when I use it. Strange. I've been getting on average.. 20 emails a day with this error?

Thanks
Reply With Quote
  #2  
Old 04-12-2011, 09:58 AM
Marka Ragnos Marka Ragnos is offline
 
Join Date: May 2007
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is weird, maybe some people are affected depending on which GMT setting?
Reply With Quote
  #3  
Old 04-12-2011, 04:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at your calendar table - do you have a field called calendarid? You may want to try a repair/optimize on the table.
Reply With Quote
  #4  
Old 04-14-2011, 06:56 AM
smooth-c smooth-c is offline
 
Join Date: Jan 2008
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



As previously mentioned - Nothing changed prior to these problems. It appears calendarid is there, but it looks slightly out of place. It's underlined, the only one that is out of all of them.

By the way, my table prefix for vBulletin is vb_
Reply With Quote
  #5  
Old 04-14-2011, 04:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's supposed to be underlined as it is the key.

I honestly can find nothing wrong with the query. Have you tried doing a repair/optimize on the table?
Reply With Quote
  #6  
Old 04-14-2011, 07:39 PM
smooth-c smooth-c is offline
 
Join Date: Jan 2008
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have, yup. :/ Several times. Calendar seems to work fine on the board. But these emails I'm getting are massively frustrating. There must be a cause.
Reply With Quote
  #7  
Old 04-14-2011, 07:57 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smooth-c View Post


As previously mentioned - Nothing changed prior to these problems. It appears calendarid is there, but it looks slightly out of place. It's underlined, the only one that is out of all of them.

By the way, my table prefix for vBulletin is vb_
It looks like the error you are getting is referring to another table, without prefix:

Code:
MySQL Error   : Unknown column 'calendar.calendarid' in 'field list'

Because if it referred to the table that you posted at the screenshot, the error message would have said:

Code:
MySQL Error   : Unknown column 'vb_calendar.calendarid' in 'field list'
Just like it is mentioned at the query. You see the difference?
Reply With Quote
  #8  
Old 04-14-2011, 08:23 PM
smooth-c smooth-c is offline
 
Join Date: Jan 2008
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you suggest I do?
Reply With Quote
  #9  
Old 04-14-2011, 09:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it is the same table:
Code:
FROM vb_calendar AS calendar
so, calendar.calendarid is a valid field.

Have you ever gotten this error on the site? Have your users? Or is it on Unregistered Users getting the error? And can unregistered users view the calendar?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:18 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.07746 seconds
  • Memory Usage 2,240KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete