مشكلة فى الاقسام منتداى....ارجوا حل بسرعة

avara

عضو جديد
8 مارس 2009
109
0
0
السلام عليكم اخوانى

عندى مشكلة فى فتح الاقسام منتداى حين افتحها
يضهر لى Database error و يعطينى هذا

PHP:
Database error in vBulletin 3.7.3:

Invalid SQL:

        SELECT 
            IF(votenum >= 1, votenum, 0) AS votenum,
            IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
         post.pagetext AS preview,
            thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
            thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, replycount, IF(views<=replycount, replycount+1, views) AS views,
            thread.prefixid, thread.taglist, hiddencount, deletedcount
            , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
            , deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
            
            , threadredirect.expires
            , attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid , attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid 
        FROM thread AS thread
            LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
             LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
            
            LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
            
            LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
            LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) 
        WHERE thread.threadid IN (0,180,181,148,86) GROUP BY thread.threadid GROUP BY thread.threadid 
        ORDER BY sticky DESC, lastpost DESC;

MySQL Error   : Not unique table/alias: 'attachment'
Error Number  : 1066
Request Date  : Wednesday, May 27th 2009 @ 05:25:15 PM
Error Date    : Wednesday, May 27th 2009 @ 05:25:15 PM
Script        : ....
Referrer      : ...
IP Address    : ...
Username      : ...
Classname     : vB_Database
MySQL Version : 5.0.81-1

ارجوا حل
 

avara

عضو جديد
8 مارس 2009
109
0
0
تفضل

انه ليس عربى لذا لم اضعها منذ بداية

ارجوا حل
 

WebCraker

العبد الفقير إلى الله
طاقم الإدارة
9 مارس 2008
5,645
50
48
Egypt
support-ar.com
قم بتعطيل الهاكات هاك بهاك إلى أن تصل إلى الهاك المسبب للمشكلة 🍭

وردلنا خبر
 

avara

عضو جديد
8 مارس 2009
109
0
0
شكران اخوى
ضهر هذا المشكلة حين رفعت هاك
الان عطلته و عطلت جميع هاكات لم يحل
و حذفت الهاك الذى سبب المشكلة لم يحل
 

Eng Ahmed

ادارة المنتدى
9 مارس 2008
3,318
11
38
www.support-ar.com
المشكلة من الهاكات اخوي

جرب تعطل الهاكات


عن طريق ملف ال
config.php


طبعا مسار الملف
vb/include/config.php

اضف فى اخر ملف الكونفيج



PHP:
define('DISABLE_HOOKS', 1);


وارفع الملف تانى
 

avara

عضو جديد
8 مارس 2009
109
0
0
السلام عليكم
شكرا اخوانى
حلت المشكلة بطريقة اخى العزيز ENG AHMED

و سؤال هل استطسع اضافة هاكات جديدة
 

محمد84

:: عضو مميز ::
20 فبراير 2009
2,925
8
0
www.facebook.com
بعد ما حلت المشكلة

نعم تستطيع تحميل هاكات جديدة

موفق انشاء الله
 

avara

عضو جديد
8 مارس 2009
109
0
0
شكرا اخوى يعنى هذا الكود لا يؤثر على هاكات جديدة
 

Alamia

:: محمد الشرقاوى ::, Contributor
Coder/Designer
PHP:
define('DISABLE_HOOKS', 1);

بعد ما ضبط معاك المنتدى قوم بتعد\يل هذا الكود من وضع رقم 0 بدل رقم واحد او قوم بحذفة بمعنى اوضح اخى قوم بارجعه كما سبق

موفق اخى ان شاء الله