vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Database error @ calendar.php & admincp/index.php (https://vborg.vbsupport.ru/showthread.php?t=229602)

notrious 12-06-2009 12:44 AM

Database error @ calendar.php & admincp/index.php
 
Hi there getting 2 wired erros one @ admincp index page and 2nd on calendar.php.

Searched a lot but no clue so posting here. I have tried disabling plugins and hooks glob.. Forum was on 3.7 plat upgrade to 3.8. Now running on 3.8.4.

Any help would be really appreciated...

Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

        SELECT COUNT(*) AS count
        FROM event AS event
        INNER JOIN calendar AS calendar USING (calendarid)
        WHERE event.visible = 0;

MySQL Error  : Unknown column 'calendarid' in 'from clause'
Error Number  : 1054
Request Date  : Saturday, December 5th 2009 @ 09:39:25 PM
Error Date    : Saturday, December 5th 2009 @ 09:39:25 PM
Script        :  (FORUMURL)  /forum/admincp/index.php?do=home
Referrer      :  (FORUMURL)      /forum/admincp/index.php?do=nav
IP Address    :
Username      :
Classname    : vB_Database
MySQL Version : 5.0.85-community-log

Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

                SELECT event.*,
                user.username, IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid,
                IF(dateline_to = 0, 1, 0) AS singleday
                , subscribeevent.eventid AS subscribed
                FROM event AS event
                LEFT JOIN user AS user ON (user.userid = event.userid)
                LEFT JOIN subscribeevent AS subscribeevent ON (subscribeevent.eventid = event.eventid AND subscribeevent.userid = 22818)
                WHERE calendarid = 1 AND
                        ((dateline_to >= 1256990400 AND dateline_from < 1265025600) OR (dateline_to = 0 AND dateline_from >= 1256990400 AND dateline_from <= 1265025600 ))        AND
                        visible = 1
                ORDER BY dateline_from;

MySQL Error  : Unknown column 'dateline_to' in 'field list'
Error Number  : 1054
Request Date  : Saturday, December 5th 2009 @ 09:38:55 PM
Error Date    : Saturday, December 5th 2009 @ 09:38:55 PM
Script        :(forum URL) /forum/calendar.php
Referrer    :(forum URL) /forum/index.php
IP Address    :
Username      :
Classname    : vB_Database
MySQL Version : 5.0.85-community-log


Lynne 12-06-2009 02:37 AM

Take a look at the event table in your database. Does it have a calendarid or dateline_to field?

notrious 12-06-2009 07:27 AM

Oh big thanks Lynne i was looking in calendar table .. thanks i just notice few things were missing from event table .. compare to a fresh vb install which i did early today so i just drop table and restore it and it fix the problem..

A Big Thanks .. YOU ROCK !!!!!

jlosey 12-31-2009 03:18 PM

Edit. I was looking at the wrong thing. I do have both of the fields, but I still get the "Invalid Event specified. If you followed a valid link, please notify the administrator" message when clicking on the calendar link.


All times are GMT. The time now is 03:54 PM.

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.00958 seconds
  • Memory Usage 1,721KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete