Thread: Mini Mods - Attachment Gallery
View Single Post
  #119  
Old 04-09-2012, 03:50 PM
xertox xertox is offline
 
Join Date: Apr 2011
Location: Westlock AB
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Every time I try to access attachment.php I get the following message on the page... and an vbulleting database error email with the same message. It references vb_blog which i don't use. Is there a way to disable the vb_blog reference?

Code:
Database error in vBulletin 4.1.11:

Invalid SQL:

		SELECT
			IF(a.votenum >= 1, a.votenum, 0) AS votenum,
			IF(a.votenum >= 1 AND a.votenum > 0, a.votetotal / a.votenum, 0) AS voteavg,
			a.*, fd.extension AS extension, IF(r.attachrateid >= 1, 1, 0) AS hasvoted,
			p.title AS posttitle, p.postid, u.username, p.threadid, t.title AS threadtitle, b.title AS blogtitle, b.blogid
		FROM VB_attachment AS a
		LEFT JOIN VB_post AS p
			ON (a.contenttypeid = 1 AND a.contentid = p.postid)
		LEFT JOIN VB_user AS u
			ON (a.userid = u.userid)
		LEFT JOIN VB_thread AS t
			ON (a.contenttypeid = 1 AND p.threadid = t.threadid)
		LEFT JOIN VB_blog AS b
			ON (a.contenttypeid = 15 AND a.contentid = b.blogid)
		LEFT JOIN VB_filedata AS fd 
			ON (fd.filedataid = a.filedataid)
		LEFT JOIN VB_attachrate AS r
			ON (a.attachmentid = r.attachid AND r.userid = '1')
		WHERE fd.extension IS NOT NULL
			
			AND (t.forumid IN (1,2,4,8,15,3,5,25,14,9,7,6) OR a.contenttypeid != 1)
			
		ORDER BY a.attachmentid DESC
		LIMIT 0, 15;

MySQL Error   : Table 'fatwillie.VB_blog' doesn't exist
Error Number  : 1146
Request Date  : Monday, April 9th 2012 @ 09:45:25 AM
Error Date    : Monday, April 9th 2012 @ 09:45:25 AM
Script        : http://www.fatwillie.net/forum/attachmentgallery.php
Referrer      : http://www.fatwillie.net/
IP Address    : 74.214.136.151
Username      : xero
Classname     : vB_Database
MySQL Version : 5.0.92-log
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01202 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete