Page 1 of 1

Display PHP error in wordpress site

Posted: Thu May 25, 2017 7:37 am
by Loc_rabbirt
Hi, I have few sites use wordpress, long time ago, I can debug it and see any errors display, but now I can't see it, they only way to see is go to vestacp dashboard and check the errorlog, how I can debug my code without go to vestacp dashboard?

Thank so much for all advices.

Re: Display PHP error in wordpress site

Posted: Thu May 25, 2017 9:27 am
by Phogo
Add the following to your wp-config.php file,

Code: Select all

define( 'WP_DEBUG', true );