Lỗi Mysqli prepare error: Table 'admin_tclub.xf_error_log' doesn't exist

[VNXF] Theme Digital – Sự lựa chọn hoàn hảo cho diễn đàn công nghệ hiện đại

tpoclub

Corporal
Hiện tại mình gặp lỗi như sau báo trong ACP của Xen, nhờ mn giúp đỡ khắc phục, thân!

Admin Control Panel - tclub.com!
Server Error

Mysqli prepare error: Table 'admin_tclub.xf_error_log' doesn't exist (thiếu table xf_error_log)
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 825
  5. Zend_Db_Adapter_Abstract->fetchOne() in XenForo/Model/Log.php at line 33
  6. XenForo_Model_Log->countServerErrors() in XenForo/ControllerAdmin/Home.php at line 37
  7. XenForo_ControllerAdmin_Home->actionInde) in XenForo/FrontController.php at line 351
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  9. XenForo_FrontController->run() in /home/tclub.com/public_html/admin.php at line 13
Trên xenforo.com có link chỉ cách nhưng mình không biết tạo table trong phpmyadmin
Link: https://xenforo.com/community/threads/mysql-errors.73196/
Thân!
 
  • Like
Reactions: THB
Lệnh tạo table.
CREATE TABLE admin_tclub.xf_error_log();
 
  • Like
Reactions: THB
chạy lênh này trên sql
Mã:
CREATE TABLE xf_error_log (
        error_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
        exception_date INT UNSIGNED NOT NULL,
        user_id INT UNSIGNED DEFAULT NULL,
        ip_address VARBINARY(16) NOT NULL DEFAULT '',
        exception_type VARCHAR(75) NOT NULL,
        message TEXT NOT NULL,
        filename VARCHAR(255) NOT NULL,
        line INT UNSIGNED NOT NULL,
        trace_string MEDIUMTEXT NOT NULL,
        request_state MEDIUMBLOB NOT NULL,
        PRIMARY KEY (error_id),
        KEY exception_date (exception_date)
    ) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci
 
  • Like
Reactions: THB
chạy rồi nó vẫn báo lỗi bạn ơi
upload_2017-12-10_10-46-1.png
 
có thể 2 bản php ko phù hợp nhau.
bạn xem khi backup php bn? và khi restore thì php bao nhiêu?
 
Back
Top