مشكلة عند دخول لوحة التحكم

  • بادئ الموضوع بادئ الموضوع Ficen
  • تاريخ البدء تاريخ البدء
الحالة
مغلق و غير مفتوح للمزيد من الردود.

Ficen

عضو جديد
22 يناير 2009
80
1
0
Makkah
السلام عليكم ,

كان عندي هذا المشكله

PHP:
Database error in vBulletin 3.7.3:

Invalid SQL:

    SELECT COUNT(*) AS count
    FROM moderation AS moderation
    INNER JOIN post AS post USING (postid)
    WHERE moderation.type='reply';

MySQL Error   : Unknown column 'xxxxxx_vb.moderation.postid' in 'on clause'
Error Number  : 1054
Request Date  : Thursday, January 22nd 2009 @ 11:45:30 PM
Error Date    : Thursday, January 22nd 2009 @ 11:45:31 PM
Script        : http://www.xxxxx.com/vb/admincp/index.php?do=home
Referrer      : http://www.xxxxx.com/vb/admincp/index.php
IP Address    : 154.38.54.75
Username      : xxxxxxxxxx
Classname     : vB_Database
MySQL Version : 4.1.22-standard
فقمت بزراعة الأمر

PHP:
 alter table `moderation` add `threadid` int(10) unsigned NOT NULL default '0'
وهذه هي النتيجه

alfaris_net_1232648265.jpg


فأرجو حل المشكة
 
الجدول threadid غير موجود بداخل moderation


ثوانى اجيب لك الامر
 
ازرع الامر التالى


PHP:
CREATE TABLE IF NOT EXISTS `moderation` (
  `primaryid` int(10) unsigned NOT NULL default '0',
  `type` enum('thread','reply','visitormessage','groupmessage','picturecomment') NOT NULL default 'thread',
  `dateline` int(10) unsigned NOT NULL default '0',
  `threadid` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`primaryid`,`type`),
  KEY `type` (`type`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


 
ازرع الامر التالى


PHP:
CREATE TABLE IF NOT EXISTS `moderation` (
  `primaryid` int(10) unsigned NOT NULL default '0',
  `type` enum('thread','reply','visitormessage','groupmessage','picturecomment') NOT NULL default 'thread',
  `dateline` int(10) unsigned NOT NULL default '0',
  `threadid` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`primaryid`,`type`),
  KEY `type` (`type`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;



مشكور اخوي على المساعده بس المشكله مازالت موجوده

شاهد الصورة

alfaris_net_1232655938.jpg
 
شوف يالغالى بعد زراعه الامر ده


PHP:
CREATE TABLE IF NOT EXISTS `moderation` (
  `primaryid` int(10) unsigned NOT NULL default '0',
  `type` enum('thread','reply','visitormessage','groupmessage','picturecomment') NOT NULL default 'thread',
  `dateline` int(10) unsigned NOT NULL default '0',
  `threadid` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`primaryid`,`type`),
  KEY `type` (`type`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

ازرع الامر ده كمان بعده

PHP:
alter table `moderation` add `threadid` int(10) unsigned NOT NULL default '0'
 
بعد كتابة الأمر تم الأمر بنجاح ولكن عند كتابة الأمر ثاني رجعنا للمشكلة السابقة

alfaris_net_1232648265.jpg
 
بعد كتابة الأمر تم الأمر بنجاح ولكن عند كتابة الأمر ثاني رجعنا للمشكلة السابقة

alfaris_net_1232648265.jpg
قم بأخذ نسخه احتياطية من قاعده البيانات اولا قبل البدأ بهذه الخطوه

وقم بزرع الامر التالى

PHP:
DROP TABLE `moderation`
وبعدين ده

PHP:
CREATE TABLE IF NOT EXISTS `moderation` (
  `primaryid` int(10) unsigned NOT NULL default '0',
  `type` enum('thread','reply','visitormessage','groupmessage','picturecomment') NOT NULL default 'thread',
  `dateline` int(10) unsigned NOT NULL default '0',
  `threadid` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`primaryid`,`type`),
  KEY `type` (`type`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
وشوف لوحه التحكم ظبطت او لا لو لسه نفذ الامر ده

PHP:
alter table `moderation` add `threadid` int(10) unsigned NOT NULL default '0'
 
مشكور يا أستاذ ENG MUHAMED على المساعده

تم حل المشكله بنجاح

الله يعطيك العافية وما قصرت والله
 
التعديل الأخير:
الحالة
مغلق و غير مفتوح للمزيد من الردود.