vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySQL syntax? (https://vborg.vbsupport.ru/showthread.php?t=60143)

jojok 01-13-2004 02:09 AM

MySQL syntax?
 
Apparently on one of the hacks I have an error in my SQL syntax? How can I fix that? What is it?

Database error in vBulletin 2.3.4:

Invalid SQL: SELECT pagetext,postid FROM post WHERE postid IN () ORDER BY postid DESC
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY postid DESC' at line 1

mysql error number: 1064

Date: Monday 12th of January 2004 11:45:02 PM
Script: http://www.treehillhigh.net/forum/forum/newsportal.php?
Referer: http://www.treehillhigh.net/forum/newsportal.php?

The Referer URL is wrong, it should be /forum, not /forum/forum

Xenon 01-13-2004 03:28 PM

"WHERE postid IN () "

there should be at least one id in that!

jojok 01-13-2004 04:25 PM

I don't know, that's the error I'm receiving. I don't really consider myself a MySQL expert, and I've never seen an error like this. I'm just wondering how I can fix it.

cirisme 01-13-2004 04:44 PM

WHat hack is it?

M1th 01-13-2004 05:10 PM

its most probably the php script that is causing this, not the mysql tables.

MindTrix 01-13-2004 06:15 PM

https://vborg.vbsupport.ru/showthrea...&page=10&pp=15

That is the hack ;)

jojok 01-17-2004 03:32 AM

I'm getting the same error when I install vBhome lite, so I really don't think it's the script?

assassingod 01-17-2004 06:52 AM

Quote:

Originally Posted by jojok
I'm getting the same error when I install vBhome lite, so I really don't think it's the script?

You may need to update the vBulletin Options via the AdminCP (and possibly change some for the hack).

MindTrix 01-17-2004 10:03 AM

Im pretty sure with vBhomelite you have to change the settings in the admin cp like assassingod said, to get rid of the MYSQL error.

jojok 01-17-2004 11:58 PM

Thats so odd, I just checked again and vBhomelite is working now.


All times are GMT. The time now is 03: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.02446 seconds
  • Memory Usage 1,724KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete