Disable error display

- [Instructor] Displaying PHP errors and warnings…in the browser may be useful during site development.…But on a live production site,…it's a security risk that should be avoided.…This video explains how to make sure that your…Wordpress-powered site is configured to not display errors.…Here is what we are talking about in this tutorial.…When errors are displayed on your site,…as they are here, sensitive information about your server…and setup are revealed to the public.…So anyone or thing that catches the error…may use it to exploit your site.…

For example, as you can see here,…the full server path is revealed,…along with the function names and other information…that could provide an attacker with leverage.…And to regular visitors, it just looks bad,…like there's some serious problems with your site.…So we're going to lock this down,…and make sure that doesn't happen.…By default, error display is disabled by Wordpress.…So if you're setting up a new site,…there shouldn't be anything to worry about.…But if your site has been around a while,…