vb.org Archive

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

SCSCSC 12-01-2009 09:48 AM

Getting Database Error
 
Code:

Database error in vBulletin 4.0.0 Beta 4:

Invalid SQL:

                SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline,
                        customavatar.width, customavatar.height, customavatar.width_thumb, customavatar.height_thumb
                FROM user AS user
                LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
                LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
                WHERE user.userid =;

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 '' at line 6
Error Number  : 1064
Request Date  : Tuesday, December 1st 2009 @ 05:27:35 AM
Error Date    : Tuesday, December 1st 2009 @ 05:27:35 AM
Script        : http://myforum/testforum/
Referrer      :
IP Address    :
Username      : Diljit
Classname    : vB_Database
MySQL Version : 5.0.67-community


can anyone help me:)

Michael.A 12-01-2009 10:02 AM

ask your host that is not a vbulletin error!

Code:

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 '' at line 6
and by the way if your hosting is runing under

PHP Code:

MySQL Version      5.0.81-community
PHP      5.2.9 

vbulletin 4.X wont work on it...

SCSCSC 12-01-2009 10:36 AM

thanks alot

thanku you very much :)

Paul M 12-01-2009 10:54 AM

Quote:

Originally Posted by MAD--DOG (Post 1923433)
ask your host that is not a vbulletin error!

Code:

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 '' at line 6
and by the way if your hosting is runing under

PHP Code:

MySQL Version      5.0.81-community
PHP      5.2.9 

vbulletin 4.X wont work on it...

This is wrong on both counts.

It is a vbulletin error (no userid supplied in the query).

VB4 will run quite happily on MYSQL 5 and PHP 5.2.9.

SCSCSC 12-01-2009 11:13 AM

ok i will update my MYSQL

thanks alot paul

Michael.A 12-01-2009 11:14 AM

thanks i well keep that in mind.....


All times are GMT. The time now is 08:18 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.01099 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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