S
S
SLaMeeR2017-02-05 13:00:41
Network administration
SLaMeeR, 2017-02-05 13:00:41

Why is a white screen displayed when opening the site?

When opening the site, a pure white screen appears, without any errors.
.htaccess has

php_flag display_errors on 
#php_value error_reporting 0
What could be the problem and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2017-02-05
@ThunderCat

In .htaccess

php_flag error_reporting = E_ALL
php_flag display_errors = On
php_flag display_startup_errors = On

in the code in the first lines
echo ini_get('error_reporting');
echo ini_get('display_errors');
echo ini_get('display_startup_errors');
exit();

run and see - if everything is installed, then the settings through xtaxess work, remove the code from php and see what errors. Ideally, write these directives in php.ini.
In any case, there are logs, see the php erorlog, all errors should be there.

Y
younghacker, 2017-02-05
@younghacker

The site is not on WordPress by any chance?
Add memory for php in .htaccess.
Well, as ThunderCat said, read the logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question