Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMohsen Qaddoura
22,237 PointsWP_DEBUG is set to false Errors are still shown on front end pages
WP_DEBUG is set to false Errors are still shown on front end pages on localhost.
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', false);
/* That's all, stop editing! Happy blogging. */
2 Answers
Sue Dough
35,800 PointsAn error can still show even with the Boolean value false. What is the error message?
Yudi Haryasa
1,612 PointsJust look at your php.ini file in your web server. You must be set the error_reporting configuration to always display error message.
Paulius Vitkus
24,230 PointsPaulius Vitkus
24,230 PointsIt's not about specific error message this time, it's about fact, that error are still shown. But that's not very important thing, just interesting why erros are still shown, even with WP_DEBUG false.
Sue Dough
35,800 PointsSue Dough
35,800 PointsOf course they can still be shown. WP_DEBUG doesn't stop all errors from showing. You would need to adjust your error reporting in your php.ini that is completely seperate from wp_debug to stop all errors from showing. :)