Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I need to show the error on the front page instead of the error report.Please suggest
Try following methods to display error on screen:
1. Set the Magento mode
php bin/magento deploy:mode:set developer
2. Uncomment code
3. Rename File
If you want to display PHP error then Go to app/bootstrap.php and uncomment Line No 10 and 11. And if you want to display error instead of error report then Go to pub/error directory and find local.xml.sample file and rename it to local.xml
I hope this solution will help you.
the two methods can be used
1.Changing mode into the "developer"
2.Rename local.xml.sample in pub/error directory to local.xml