vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   database error, missing column? (https://vborg.vbsupport.ru/showthread.php?t=275826)

onealien 12-22-2011 02:12 PM

database error, missing column?
 
moving db to new server as i upgrade to vb4 from 3.8.6...when i moved to 'forum' db i get this error of a missing column...any suggestions?

Database error in vBulletin 4.1.9:

Invalid SQL:

SELECT forum.forumid, forum.lastpost, forum.lastposter, forum.lastposterid, forum.lastthread, forum.lastthreadid, forum.lasticonid, forum.threadcount, forum.replycount, forum.lastpostid, forum.lastprefixid, user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend,
user.lastactivity, user.lastvisit, IF(user.options & 512, 1, 0) AS invisible

FROM forum AS forum

LEFT JOIN user AS user ON (user.userid = forum.lastposterid)
LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 2461);

MySQL Error : Unknown column 'forum.lastposterid' in 'field list'
Error Number : 1054

Classname : vB_Database
MySQL Version : 5.0.91-log

assistance appreciated....

kh99 12-22-2011 03:06 PM

Well, that table is supposed to have that column. But I can't imagine why a table would be missing one column - is it possible that some other software sharing that database created it's own table named "forum"?

onealien 12-24-2011 03:55 PM

i guess that is possible...but it seems that is a standard install table...
wonder wat this means: user.userid = forum.lastposterid

im going to try and delete the imported info for that table and start it from scratch...
or
does anyone kno the parameters to just create the column?

any other suggestions?

snakes1100 12-24-2011 04:12 PM

Have you globally disabled your plugins before performing the upgrade?

onealien 12-24-2011 04:28 PM

no...that might be the problem...
i didnt upgrade..went with a fresh install on new server...and am trying to import the db from old site...ugghh...smth aint working like that...the new site dont even have all the same plugins...maybe i shuld start there...

?

snakes1100 12-24-2011 04:30 PM

I would start back at step 1, install the original db & files, disable the hook system via config.php and then proceed to run the upgrade.

onealien 12-24-2011 04:34 PM

how do i globally disable plug ins anyways?

Lynne 12-24-2011 04:42 PM

You cannot go install one version on another server (4.1.9) and then just import another version over that database (3.8). You need to move the database over and then run the upgrade.php script.

onealien 12-24-2011 04:42 PM

gotcha lynn...seem to be doing it out of sequence...

aiight..so if i go to current site...dl all files via ftp...dl entire db via myphp...
upload all files onto new server...disable hook system via config.php...
import db...
and run upgrade script...

imma try that...

thank u to everyone for yur help...

cbiweb 07-24-2012 09:29 PM

I know this thread is a little old but today I had the exact same error (except for userid's, version numbers and such) on one of my forums. So I'm wondering if there is a common denominator here? There are many variables such as mods and server config, but to throw the very same error seems like there's something in common. So what could possibly cause columns and tables to go missing for no apparent reason??


All times are GMT. The time now is 06:47 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.03409 seconds
  • Memory Usage 1,732KB
  • 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)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