Enable Error Reporting in WordPress

When things aren’t working as expected on your site, or you get an error notification from WordPress, you will need to check the error logs for your site.
WordPress runs on PHP and the error logs let you know when PHP had problems running code. PHP errors are often the reason plugins or your theme aren’t working as expected.