vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySql help/error (https://vborg.vbsupport.ru/showthread.php?t=59491)

Ronso Rage 01-01-2004 03:43 PM

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

assassingod 01-01-2004 03:52 PM

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)

MindTrix 01-01-2004 03:54 PM

Not a MYSQL genius myself :p

Have you installed any hacks recently that could effect this?

MindTrix 01-01-2004 03:56 PM

Soz assassingod, posted at same time as you it appears :p

Ronso Rage 01-01-2004 04:03 PM

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

MindTrix 01-01-2004 04:04 PM

You've most likely just missed a MYSQL query on a hack you recently installed

Ronso Rage 01-01-2004 04:38 PM

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

Lesane 01-01-2004 04:52 PM

lastthread is not a default row in the table forum so you must have hacked/edited it!

Ronso Rage 01-01-2004 05:23 PM

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 ??

g-force2k2 01-02-2004 01:35 AM

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


All times are GMT. The time now is 06:13 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.01224 seconds
  • Memory Usage 1,729KB
  • 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_php_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