vBulletin suite 4.2.5 nulled by tuoitreit.vn

Bỏ qua và cài đặt tiếp thì gặp tiếp lỗi này và dừng k cài đc nữa
vbmLYbn.png
Lỗi này xảy ra, bạn vào phpmyadmin > SQL và gõ lệnh sau
PHP:
CREATE TABLE blog_searchresult (
    blogsearchid INT UNSIGNED NOT NULL DEFAULT 0,
    id INT UNSIGNED NOT NULL DEFAULT 0,
    `offset` INT UNSIGNED NOT NULL DEFAULT 0,
    PRIMARY KEY (blogsearchid, `offset`)
);
 
Lỗi này xảy ra, bạn vào phpmyadmin > SQL và gõ lệnh sau
PHP:
CREATE TABLE blog_searchresult (
    blogsearchid INT UNSIGNED NOT NULL DEFAULT 0,
    id INT UNSIGNED NOT NULL DEFAULT 0,
    `offset` INT UNSIGNED NOT NULL DEFAULT 0,
    PRIMARY KEY (blogsearchid, `offset`)
);
Vẫn báo lỗi như vậy bác ạ
 
Bạn gõ thử SQL trên nhé, rồi tiếp tục upgrade
Em gõ xong vào chạy lại install, đến bước yêu cầu xóa database đã có trước đó thì xóa hết ngoại trừ table blog_searchresult. Sau đó chạy thì vẫn hiện lỗi như trên.
 
Em gõ xong vào chạy lại install, đến bước yêu cầu xóa database đã có trước đó thì xóa hết ngoại trừ table blog_searchresult. Sau đó chạy thì vẫn hiện lỗi như trên.
Vào install, rồi copy và thay thế file install/mysql-schema.php này
Code:
https://www.fshare.vn/file/T8GC354WZYJI
 
Tối về thử test localhost xem có ổn không. Muốn dùng phiên bản 4.x để làm mấy skin share mà khó cài.
Sau 1 thời gian mày mò, mình đã tìm ra nguyên nhân ở đây @tamduy121
Mở file /install/includes/class_upgrade_vbblog.php
Tìm
PHP:
$this->run_query(
            sprintf($this->phrase['vbphrase']['create_table'], TABLE_PREFIX . "blog_searchresult"),
            "CREATE TABLE " . TABLE_PREFIX . "blog_searchresult (
                blogsearchid INT UNSIGNED NOT NULL DEFAULT '0',
                id INT UNSIGNED NOT NULL DEFAULT '0',
                offset INT UNSIGNED NOT NULL DEFAULT '0',
                PRIMARY KEY  (blogsearchid,offset)
            )",
            self::MYSQL_ERROR_TABLE_EXISTS
        );

Thay bằng

PHP:
$this->run_query(
    sprintf($this->phrase['vbphrase']['create_table'], TABLE_PREFIX . "blog_searchresult"),
    "CREATE TABLE " . TABLE_PREFIX . "blog_searchresult (
        blogsearchid INT UNSIGNED NOT NULL DEFAULT '0',
        id INT UNSIGNED NOT NULL DEFAULT '0',
        `offset` INT UNSIGNED NOT NULL DEFAULT '0',
        PRIMARY KEY  (blogsearchid, `offset`)
    )",
    self::MYSQL_ERROR_TABLE_EXISTS
);

Chúc bạn thành công và ủng hộ tuoitreit.vn nhé
 

Facebook Comments

Similar threads

Back
Top