5 years-11 months
- Posted On :
- Posted by : Vikas
When you’re getting a blank page in Magento 2.x or only error number like Error log record number: (any number), you can enable error reporting in Magento.
// enable error messages in command line
php bin/magento deploy:mode:set developer
// enable error messages in file
Add following code in index.php file :-
// disable error messages in command line
php bin/magento maintenance:disable
Goto app/etc/ and open env.php
and change current application mode by MAGE_MODE' => 'default' to MAGE_MODE' => 'developer'
Then,please flush the cache
you can give a try by renaming local.xml.sample to local.xml under pub/errors
When answering a question please:
- Read the question carefully.
- Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
- If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.