Lỗi như hình ảnh trên chúng ta sẽ thấy được field description không được tìm thấy. Chúng ta tiếp tục thấy lỗi được phát sinh ở dòng thứ 97 của file function.php
[1] => Array ( [file] => /home/bqfermkq/onbai365.com/modules/test/functions.php [line] => 96
Ở bài viết này chúng ta tiến hành fix lỗi trên ở module test -> file functions.php
Mở file functions.php dòng thứ 96
$resul = $db->query('SELECT group_id, title, description, group_type, exp_time, numbers FROM ' . NV_GROUPS_GLOBALTABLE . ' WHERE act=1 AND (idsite = ' . $global_config['idsite'] . ' OR (idsite =0 AND siteus = 1)) ORDER BY idsite, weight');
Thay thế bằng:
$result = $db->query('SELECT g.group_id, d.title,d.description, g.group_type, g.idsite, g.exp_time, g.numbers FROM ' . NV_USERS_GLOBALTABLE . '_groups AS g LEFT JOIN ' . NV_USERS_GLOBALTABLE . "_groups_detail d ON ( g.group_id = d.group_id AND d.lang='" . NV_LANG_DATA . "' ) WHERE (g.idsite = " . $global_config['idsite'] . ' OR (g.idsite =0 AND g.siteus = 1)) ORDER BY g.idsite, g.weight');
Xem Thêm : Hiển thị báo lỗi khi website bị lỗi 500 internal server error nukeviet
Trên bản 4.4 trở đi field description đã được tách qua bảng _groups_detail vì vậy chúng ta cần INNER JOIN thêm một bảng mới để tiến hành lấy field description như yêu cầu. Sau khi sửa xong chúng ta tiến hành xóa cache, và reload lại để sử dụng. Nếu như bạn vẫn gặp lỗi thì hãy comment dưới bài viết để được hỗ trợ ngay khi chúng tôi online.
Nguồn: https://vncode.info
Danh mục: Hướng dẫn fix lỗi Nukeviet