[EasyEngine] Sửa lỗi Downloading WordPress - failed khi thêm website bằng EasyEngine 1
EasyEngine,  Linux

[EasyEngine] Sửa lỗi Downloading WordPress – failed khi thêm website bằng EasyEngine

Tiếp tục sê-ri sửa lỗi khi dùng EasyEngine để quản trị VPS.

Nếu bạn thêm website bằng EasyEngine mà gặp lỗi Downloading WordPress [Fail] thì đây là bài viết giúp các bạn sửa lỗi này.

Downloading WordPress [Fail]
Oops Something went wrong !!
Calling cleanup actions ...
'ee_mysql_grant_host'

Tổng quan thì lỗi này không phải do EasyEngine mà là do WP-CLI, để sửa lỗi thì các bạn cần làm như sau:

  1. Cập nhật WP-CLI lên phiên bản nightly build
    sudo wp --allow-root cli update --nightly
  2. Ép WP-CLI chỉ tải về phiên bản WordPress 4.8.1
    cat <<EOF > ~/.wp-cli/config.yml
    core download:
      version: 4.8.1
    EOF
    

Bây giờ thì thao tác thêm website WordPress đã bình thường

Bạn cần chạy câu lệnh sau để cập nhật các website sử dụng WordPress lên phiên bản mới nhất:

sudo wp core update --allow-root

Reasons

One of the causes of the error was assumed to be due to faulty gzip compression of WordPress’ en_USlocale, which later came out to be false.

Another one was that something went possibly wrong with WP-CLI’s Extractor class which uses PharData() to extract the zip and, as observed by Daniel Bachhuber, the error was indeed indirectly caused by PharData which had its dependency on a Debian PHP patch.

Avatar of jamesblackvn

Tui là jamesblackvn!

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Website này sử dụng Akismet để hạn chế spam. Tìm hiểu bình luận của bạn được duyệt như thế nào.