WPML
Trạng thái
Đã giải quyết
Được báo cáo cho
WPML Multilingual CMS 3.3.8
Đã giải quyết trong
WPML Multilingual CMS 3.6.0

Tổng quan về lỗi

Khi truy cập vào liên kết kích hoạt Gravity Forms được gửi cho khách hàng, một lỗi nghiêm trọng xảy ra trên trang web. Ví dụ, khi truy cập: http://example.com/?page=gf_activation&key=3f14e4d2e8025d47

Ví dụ, liên kết sau: http://example.com/?page=gf_activation&key=3f14e4d2e8025d47

Dẫn đến lỗi:

PHP Fatal error: __clone method called on non-object in ..wp-contentpluginssitepress-multilingual-cmssitepress.class.php on line 2875

Giải pháp tạm thời

Để khắc phục sự cố này, bạn cần truy cập ../wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php tại dòng 2875

Tại đó, thay thế mã:

 $wp_query = clone $this->wp_query; 

Bằng đoạn mã sau:

if(!is_object($this->wp_query)) {
    $this->wp_query = is_object( $wp_query ) ? clone $wp_query : null;
}

Tất cả các lỗi đã ghi nhận →