vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Database errors (https://vborg.vbsupport.ru/showthread.php?t=297597)

BernieK 04-25-2013 10:30 PM

Database errors
 
Ive contacted the hosts of my forum and opened a ticket concerning the database errors i have been receiving, they have ended up suggesting i contact someone on here about it,

I am getting the message below when i try to quote or reply to a thread, any help would be greatly appreciated.

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT post.*, IF(post.userid = 0, post.username, user.username) AS username
FROM post AS post
LEFT JOIN user AS user ON (user.userid = post.userid)
WHERE post.visible = 1
AND post.userid NOT IN (62.6.169.133)
AND post.threadid = 9993
ORDER BY dateline DESC
LIMIT 26;

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 '.169.133)
AND post.threadid = 9993
ORDER BY dateline DESC
LIMIT 26' at line 5
Error Number : 1064
Request Date : Thursday, April 25th 2013 @ 03:48:30 PM
Error Date : Thursday, April 25th 2013 @ 03:48:31 PM
Script :
Referrer :
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.5.29-log

Lynne 04-25-2013 10:54 PM

This is the problem:
AND post.userid NOT IN (62.6.169.133)

It looks like you put an IP address into the global ignore spot. Go to AdminCP > Settings > Options > user banning options > and check Global Ignore. That field should have userids separately by spaces there. (I think someone put the IP in there instead of the userid.)

BernieK 04-26-2013 06:46 AM

Quote:

Originally Posted by Lynne (Post 2418566)
This is the problem:
AND post.userid NOT IN (62.6.169.133)

It looks like you put an IP address into the global ignore spot. Go to AdminCP > Settings > Options > user banning options > and check Global Ignore. That field should have userids separately by spaces there. (I think someone put the IP in there instead of the userid.)

Thats exactly what it was, thank you very much Lynne, i owe you


All times are GMT. The time now is 01:18 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.01159 seconds
  • Memory Usage 1,713KB
  • 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
  • (3)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