Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Help with MySQL error. Details »»
Help with MySQL error.
Version: , by burritoX burritoX is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-26-2003 Last Update: Never Installs: 0
 
No support by the author.

I know it's stickied but I don't understand how to fix this. I just installed vBhome Lite and it gave me this error when I went to the index.php page:

PHP Code:
Database error in vbHome 2.3.2:

Invalid SQL
  
SELECT COUNT(*) AS total
  FROM thread
    WHERE forumid IN
(  ) AND dateline>1069875965

mysql error
You have an error in your SQL syntax near ') AND dateline>1069875965
at line 4

mysql error number
1064

Date
Wednesday 26th of November 2003 02:33:42 PM
Script
: [url]http://www.leethacks.com/forums/index.php[/url]
Referer
I tried searching for the code in index.php. Does this have anything to do with the error:

PHP Code:
 SELECT COUNT(*) AS total
  FROM thread
    WHERE forumid IN
$articleforum ) AND dateline>$bbuserinfo[lastvisit]
"); 
Maybe the error doesn't know where the $articleforum is because it's blank in the top part?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-26-2003, 07:17 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change some of your settings in your Admin CP/vbulletin options/front page

Just mess things about and save, then reload your front page, lemme know if that works
Reply With Quote
  #3  
Old 11-26-2003, 07:29 PM
burritoX burritoX is offline
 
Join Date: Oct 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow. It works, But it doesn't show my articles from my Announcements forum. Do you know how to fix this?

Btw, thanks for helping me get it to work, I really appreciate it.
Reply With Quote
  #4  
Old 11-26-2003, 07:40 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by burritoX
Btw, thanks for helping me get it to work, I really appreciate it.
No problem, just doing my job! Lol nah i had that error most of the time aswell and noticed thats a way to fix it

As for your other one, mine fixed itself after a little while, and some more posting in the appropriate sections if you understand me.

Try and and report back.
Reply With Quote
  #5  
Old 11-26-2003, 07:50 PM
burritoX burritoX is offline
 
Join Date: Oct 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm. Right now I'm playing with it a little. I noticed that when I add more Forum ID's in the "Articles Forum" option It shows articles but when I put less (like from 1 -3) it doesn't show anything.
Reply With Quote
  #6  
Old 11-26-2003, 07:52 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm that sounds familiar. Try working around it, like having 3 or 4 forums show
Reply With Quote
  #7  
Old 11-26-2003, 08:00 PM
burritoX burritoX is offline
 
Join Date: Oct 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I got it to show the articles. I just need one more question than I'm set. When it shows my articles it doesn't show the words. I know I should play with it a little but I don't think I have time to go through all the numbers from 1 - Million in the "Maximum Character to show" option. Got any ideas?

Thanks again .
Reply With Quote
  #8  
Old 11-26-2003, 08:03 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nopes im just in the process at learning php etc
I had all the problems you have mentioned but for me they just sorted themselves out. If yours dont i suggest you ask for help in the portals thread as that is where you will stand more chance of getting a helping response (Usualy from the portals author as they seem to be pretty good at helping out errors when it comes to their portals)
Reply With Quote
  #9  
Old 11-26-2003, 08:05 PM
burritoX burritoX is offline
 
Join Date: Oct 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, thanks for all your help.
Reply With Quote
  #10  
Old 11-26-2003, 08:06 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anytime
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 05:29 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.04443 seconds
  • Memory Usage 2,293KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete