Cách hiển thị lỗi khi viết php cho wordpress

Trước tiên cần vào file wp-config.php để bật trạng thái debug

Kéo xuống phần WP_DEBUG

Chuyển trạng thái sang true để sang trạng thái Debug

Để hiển thị lỗi, thêm đoạn code sau trên đầu trang


GeSHi Error: GeSHi could not find the language php (using path /var/www/html/kb.innocom.vn/wp-content/plugins/wp-synhighlight/geshi/geshi/) (code 2)

Leave a Reply

You must be logged in to post a comment.