I'm Using Drupal to build a website, and I'm having a hard time knowing what errors or problems I have during coding and styling template, and I would just have to keep guessing and try different things and that takes me a long time. I just get a blank or a white page, every time there is a problem.It would be just so much easier if I can get error messages that tells me what's the problem. How can I make my Drupal show error messages? please help

1 Answer

This could be fixed by editing your index.php in your Drupal sites by adding this code at first line after <?php :
<?php :
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

We are an independently owned research and review service, funded by people like you. In the spirit of full disclosure, we get paid a referral commission when you buy digital goods following some of our links. Learn more