Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-01-2004, 03:43 PM
Ronso Rage Ronso Rage is offline
 
Join Date: Nov 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default MySql help/error

I have suddenly started getting this error appearng when i try to move exiting threads to another forum on my board - anybody help me with what it means please, and how to fix it (it still moves the thread but gives me this error when it does)


Database error in vBulletin 2.3.3:

Invalid SQL: SELECT forumid,threadcount,replycount,parentlist,parentid ,lastpost,lastthread,lastposter FROM forum WHERE INSTR(CONCAT(',',parentlist,','),',5,')>0
mysql error: Unknown column 'lastthread' in 'field list'

mysql error number: 1054

Date: Thursday 01st of January 2004 05:28:04 PM
Script: http://final-fantasy-overdrive.co.uk...s/postings.php
Referer: http://final-fantasy-overdrive.co.uk...s/postings.php
Reply With Quote
  #2  
Old 01-01-2004, 03:52 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you installed any hacks that edit posting.php? Since the 'lastthread' column isn't default, you have probably installed a hack incorrectly (I.E Not running a particular query)
Reply With Quote
  #3  
Old 01-01-2004, 03:54 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a MYSQL genius myself

Have you installed any hacks recently that could effect this?
Reply With Quote
  #4  
Old 01-01-2004, 03:56 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Soz assassingod, posted at same time as you it appears
Reply With Quote
  #5  
Old 01-01-2004, 04:03 PM
Ronso Rage Ronso Rage is offline
 
Join Date: Nov 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not that can think of - that have involved editing posting.php, but i will check and if so recheck the hack - if not any ideas what i can do to eradicate this error
Reply With Quote
  #6  
Old 01-01-2004, 04:04 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You've most likely just missed a MYSQL query on a hack you recently installed
Reply With Quote
  #7  
Old 01-01-2004, 04:38 PM
Ronso Rage Ronso Rage is offline
 
Join Date: Nov 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think i have, i also just checked the size of my original postings.php to the one that is on my site and they are the same size - so i assume i haven't modifed anything there either
Reply With Quote
  #8  
Old 01-01-2004, 04:52 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lastthread is not a default row in the table forum so you must have hacked/edited it!
Reply With Quote
  #9  
Old 01-01-2004, 05:23 PM
Ronso Rage Ronso Rage is offline
 
Join Date: Nov 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just opened up my postings.php file that is uploaded to my site and couldn't even find any reference to lastthread in it - So i really don't understand it at all.

Is there any other area where this could be getting generated from ??

and if not, if i were to add a blank row to my forum table in the database as lastthread - think that may solve it at all ??
Reply With Quote
  #10  
Old 01-02-2004, 01:35 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can find that line in admin/functions.php

open the file and find this line:

PHP Code:
SELECT forumid,threadcount,replycount,parentlist,parentid,lastpost 
And remove the lastthread from that query.

Regards,
g-force2k2
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 01:57 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.04210 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete