Why is it that when I enable error messages using these instructions: https://www.templatemonster.com/help/magento-how-to-display-error-messages.html
That my site completely stops work? Before, my homepage worked fine. But when I change index.php
as the article suggests, I just get this error message on my home page:
Warning: fopen(/git/magento/var/locks/index_process_4.lock): failed to open stream: Permission denied in /git/magento/app/code/core/Mage/Index/Model/Process.php on line 423
Why would it start failing all of a sudden? Does enabling error messages somehow cause warnings to become errors?
Thank you for your help.
EDIT:
The real question here is why does enabling error messages turn the warnings into errors? That's why I don't believe this question is a duplicate at all.