Thread: New Posting Features - Thread Thumbnails
View Single Post
  #144  
Old 11-02-2009, 02:07 PM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After updating the mod to the current version, I get the following database error when selecting the "First Attachment" option in the Thumbnail Source part of the mod. The "User Entered URL" and "First Image In Post" options both appear to be working with no problems.

I hope a fix can be found for this error.

PHP Code:
Database error in vBulletin 3.7.3:

Invalid SQL:

        
SELECT 
            
IF(votenum >= 1votenum0) AS votenum,
            IF(
votenum >= AND votenum 0votetotal votenum0) AS voteavg,
         
post.pagetext AS preview,
            
thread.threadidthread.title AS threadtitlethread.forumidpollidopenpostusernamepostuseridthread.iconid AS threadiconid,
            
thread.datelinenotesthread.visiblestickyvotetotalthread.attachthread.lastpostthread.lastposterthread.lastpostidreplycount, IF(views<=replycountreplycount+1views) AS views,
            
thread.prefixidthread.taglisthiddencountdeletedcount
            
            
deletionlog.userid AS del_useriddeletionlog.username AS del_usernamedeletionlog.reason AS del_reason
            
            
threadredirect.expires
            
hasannuser.displaygroupid AS hasanndisplaygidhasannuser.usergroupid AS hasannusergidhuseyinuser.displaygroupid AS huseyindisplaygidhuseyinuser.usergroupid AS huseyinusergidMIN(attachment.attachmentid) AS attachmentid
        FROM board_thread 
AS thread
            LEFT JOIN board_deletionlog 
AS deletionlog ON(thread.threadid deletionlog.primaryid AND deletionlog.type 'thread')
            
            
            
LEFT JOIN board_post AS post ON(post.postid thread.firstpostid)
            
            
LEFT JOIN board_threadredirect AS threadredirect ON(thread.open 10 AND thread.threadid threadredirect.threadid)
                        
LEFT JOIN board_user AS hasannuser ON (thread.lastposter hasannuser.username)
            
LEFT JOIN board_user AS huseyinuser ON (thread.postuserid huseyinuser.userid)LEFT JOIN board_attachment AS attachment ON (attachment.postid thread.firstpostid AND attachment.extension IN('jpg''gif''png''jpeg''bmp'))
        
WHERE thread.threadid IN (0,33703,33677,33670,33669,33646,33625,33624,33612,33611,33609,33597,33594,33590,33578,33570,33569,33565,33552,33540,33530,33529,33516,33499,33498,33487,33484,33471,25660,25688,25725,25655,25945
        
ORDER BY sticky DESClastpost DESC;

MySQL Error   Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number  
1140
Request Date  
MondayNovember 2nd 2009 10:56:21 AM
Error Date    
MondayNovember 2nd 2009 10:56:22 AM
Script        
http://www.******.com/forums/forumdisplay.php?f=80
Referrer      http://www.******.com/forums/index.php
IP Address    98.***.***.***
Username      : *** ***
Classname     vB_Database
MySQL Version 
5.0.45 
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01206 seconds
  • Memory Usage 1,829KB
  • 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_php
  • (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