- Tham gia
- 28/02/2015
- Bài viết
- 15,979
- Được Like
- 12,456
Sau thi install add-ons Thread Prefix Listing 1.2.0 bị lỗi
Cách khắc phục:
- Tìm /library/PrefixForumListing/Extend/ControllerPublic/Forum.php
Dòng thứ 5:
Sửa thành
Dòng 7
Sửa thành:
- Tìm /library/PrefixForumListing/DataWriter/Discussion/Thread.php
Dòng thứ 4
Sửa thành
Dòng thứ 12
Sửa thành
Dòng thứ 16:
Sửa thành
Dòng thứ 44:
Sửa thành:
Lưu tất cả lại là xong.
Chúc các bạn thành công!
Cách khắc phục:
- Tìm /library/PrefixForumListing/Extend/ControllerPublic/Forum.php
Dòng thứ 5:
Mã:
public function actionIndex()
Mã:
public function actionForum()
Dòng 7
Mã:
$response = parent::actionIndex();
Mã:
$response = parent::actionForum();
Dòng thứ 4
Mã:
protected function _discussionPostDelete(array $messages)
Mã:
protected function _discussionPostDelete()
Dòng thứ 12
Mã:
return parent::_discussionPostDelete($messages);
Mã:
return parent::_discussionPostDelete();
Dòng thứ 16:
Mã:
protected function _discussionPostSave(array $messages)
Sửa thành
Mã:
protected function _discussionPostSave()
Dòng thứ 44:
Mã:
return parent::_discussionPostSave($messages);
Mã:
return parent::_discussionPostSave();
Lưu tất cả lại là xong.
Chúc các bạn thành công!
Nguồn: tuoitreit.vn