vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Database Problem - every time somebody tries to make a new album... (https://vborg.vbsupport.ru/showthread.php?t=228317)

euantor 11-18-2009 05:51 PM

Database Problem - every time somebody tries to make a new album...
 
Quote:

Database error in vBulletin 3.8.4:

Invalid SQL:

SELECT album.userid,,album.title,album.albumid
FROM album AS album
WHERE album.albumid in (20);

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 'album.title,album.albumid
FROM album AS album
WHERE album.albumid i' at line 1
Error Number : 1064
Request Date : Wednesday, November 18th 2009 @ 07:44:34 PM
Error Date : Wednesday, November 18th 2009 @ 07:44:34 PM
Script : http://www.360elites.net/album.php?albumid=20
Referrer : http://www.360elites.net/album.php?do=addalbum
IP Address : My IP (got rid of it for obvious reasons)
Username :
Classname : YABBDB
MySQL Version :
I thought at first it was because of YABBSEO so I disabled it. No luck. Same problem still happening. Any ideas as to why anybody? Also, are there any possible fixes?

Lynne 11-18-2009 06:04 PM

You can see it is missing something inbetween userid and album.title (two commas in a row). Try disabling ALL your plugins and trying again.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 


euantor 11-18-2009 06:15 PM

Ok, cheers Lynne. I'll have a go with that.

EDIT: I don't appear to have my config.php file in my root. Should I re-upload it do you reckon?

Lynne 11-18-2009 06:54 PM

It's not supposed to be in your root - it is in your /includes directory.

euantor 11-19-2009 05:59 AM

Oh. Oops. My bad haha. Thanks once again Lynne xD

euantor 11-22-2009 11:33 AM

Ok, I disabled all plugins and it works perfectly. Now to find which is causing it...

Ok, so YABBSEO seems to be the problem... Pity - it's the best free SEO I can find D:

zhenyu86 01-09-2010 04:52 PM

Quote:

Originally Posted by euantor (Post 1916721)
I thought at first it was because of YABBSEO so I disabled it. No luck. Same problem still happening. Any ideas as to why anybody? Also, are there any possible fixes?

go to yabbseo/sitemap.func.php

find album.userid,,
then delete 1 of the ,
then it will work fine


All times are GMT. The time now is 07:07 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.00984 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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