Thread: Major Additions - [DBTech] Dragonbyte Gallery v1 (vB4)
View Single Post
  #262  
Old 09-13-2012, 02:36 PM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

I get the following error when I call forumhome:

Code:
Database error in vBulletin 4.2.0:

Invalid SQL:

			SELECT
				entry.*,
				user.*
				,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
			FROM (
				(
	SELECT
		post.postid,
		post.title AS posttitle,
		thread.title AS threadtitle,
		thread.title AS title,
		thread.threadid,
		thread.forumid,
		entry_post.*
	FROM (SELECT * FROM vbs420_dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'post' ORDER BY entryid DESC LIMIT 5) AS entry_post
	LEFT JOIN vbs420_post AS post ON (post.postid = entry_post.contentid)
	LEFT JOIN vbs420_thread AS thread ON (thread.threadid = post.threadid)
) UNION ALL (
		SELECT
			image.imageid AS postid,
			image.title AS posttitle,
			image.filename AS threadtitle,		
			image.userid,
			image_instance.shortname AS threadid,
			0 AS forumid,
			entry_dbgallery_image.*
		FROM (SELECT * FROM vbs420_dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'dbgallery_image' ORDER BY entryid DESC LIMIT 5) AS entry_dbgallery_image
		LEFT JOIN vbs420_dbtech_gallery_images AS image ON (image.imageid = entry_dbgallery_image.contentid)
		LEFT JOIN vbs420_dbtech_gallery_instances AS image_instance ON (image_instance.instanceid = image.instanceid)		
	) UNION ALL (
		SELECT
			groupmessage.gmid AS postid,
			groupmessage.title AS posttitle,
			firstgroupmessage.title AS threadtitle,		
			groupmessage.postuserid AS userid,
			groupmessage.discussionid AS threadid,
			0 AS forumid,
			entry_socialgroup.*
		FROM (SELECT * FROM vbs420_dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'socialgroup' ORDER BY entryid DESC LIMIT 5) AS entry_socialgroup
		LEFT JOIN vbs420_groupmessage AS groupmessage ON (groupmessage.gmid = entry_socialgroup.contentid)
		LEFT JOIN vbs420_discussion AS discussion ON (discussion.discussionid = groupmessage.discussionid)		
		LEFT JOIN vbs420_groupmessage AS firstgroupmessage ON (firstgroupmessage.gmid = discussion.firstpostid)		
	) UNION ALL (
		SELECT
			usernote.usernoteid AS postid,
			usernote.title AS posttitle,
			'N/A' AS threadtitle,		
			usernote.posterid AS userid,
			usernote.userid AS threadid,
			0 AS forumid,
			entry_usernote.*
		FROM (SELECT * FROM vbs420_dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'usernote' ORDER BY entryid DESC LIMIT 5) AS entry_usernote
		LEFT JOIN vbs420_usernote AS usernote ON (usernote.usernoteid = entry_usernote.contentid)
	) UNION ALL (
		SELECT
			visitormessage.vmid AS postid,
			visitormessage.title AS posttitle,
			'N/A' AS threadtitle,		
			visitormessage.postuserid AS userid,
			visitormessage.userid AS threadid,
			0 AS forumid,
			entry_visitormessage.*
		FROM (SELECT * FROM vbs420_dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'visitormessage' ORDER BY entryid DESC LIMIT 5) AS entry_visitormessage
		LEFT JOIN vbs420_visitormessage AS visitormessage ON (visitormessage.vmid = entry_visitormessage.contentid)
	)
			) AS entry
			LEFT JOIN vbs420_user AS user USING(userid)
			LEFT JOIN vbs420_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vbs420_customavatar AS customavatar ON(customavatar.userid = user.userid)
			WHERE 1=1;

MySQL Error   : Illegal mix of collations for operation 'UNION'
Error Number  : 1271
Request Date  : Thursday, September 13th 2012 @ 05:09:12 PM
Error Date    : Thursday, September 13th 2012 @ 05:09:12 PM
Script        : http://localhost/vbs420/upload/forum.php
Referrer      : http://localhost/vbs420/upload/dbtgallery.php?do=view_image&id=3&gal=gallery
IP Address    : 127.0.0.1
Username      : XXX
Classname     : vB_Database_MySQLi
MySQL Version : 5.5.16
Best regards

L.R.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01137 seconds
  • Memory Usage 1,783KB
  • 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