WP_DEBUG is not set, but I’m still getting warnings

WP_DEBUG has no impact on PHP error output. In addition to error_reporting setting, set display_errors=0 in your php.ini file. It’s enabled by default for development. But you’ll want it off on production servers.

Leave a Comment