Hướng dẫn hiển thị đầy đủ lỗi khi có thông báo Exception printing is disabled by default for security reasons trong Magento 2

Trong quá trình cài đặt và sử dụng Magento 2, có thể bạn sẽ bắt gặp lỗi Exception printing is disabled by default for security reasons, Bạn không biết được chính xác đây là lỗi gì? ở đâu?, trong bài viết này mình sẽ hướng dẫn các bạn cách hiển thị đầy đủ lỗi. Giúp các bạn có hướng giải quyết vấn đề của mình.

Thông báo đó có dạng như :

Exception printing is disabled by default for security reasons

Đầu tiên các bạn tim file local.xml.sample theo đường dẫn pub\error .

local.xml.sample

Xóa đuôi .sample để file thành local.xml.

local.xml

Bây giờ các bạn load lại trang.

Hiện lỗi

Vậy là lỗi đã được hiển thị.

Các bạn cũng có thể làm theo cách khác như sau. Chạy lệnh php bin/magento deploy:mode:set developer sau đó xóa bộ nhớ cache và load lại trang.

Cảm ơn các bạn đã đọc bài viết.

0 0 votes
Article Rating

Callula Huy

Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under her belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.

Leave a Reply or put your Question here

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x