After putting the site into production mode and running the compiler, the site just loads a blank white page. I've tried disabling all third party modules and it has not helped. I have all error logging enabled, but nothing is logged. I've narrowed it down to something in the generated metadata, as deleting that folder gets the site working again. I've struggled with this for the past couple days and I'm at a loss. Anyone have any clue?
Here is the source for the blank page that is displayed:
<!doctype html>
<html lang="en">
<head >
<meta charset="utf-8"/>
<meta name="robots" content="INDEX,FOLLOW"/>
<title></title>
<link rel="icon" type="image/x-icon" href="https://xxx.xxx.xxx.xxx/pub/static/version1519935733/frontend/_view/en_US/Magento_Theme/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="https://xxx.xxx.xxx.xxx/pub/static/version1519935733/frontend/_view/en_US/Magento_Theme/favicon.ico" />
</head>
<body data-container="body" data-mage-init='{"loaderAjax": {}, "loader": { "icon": "https://xxx.xxx.xxx.xxx/pub/static/version1519935733/frontend/_view/en_US/images/loader-2.gif"}}' class="cms-index-index page-layout-1column">
</body>
</html>
Magento 2.2.2
Best Answer
Just follow : to debug blank white screen and CSS,JS page load design issue.
then don't compile just deploy
php bin/magento setup:static-content:deploy
and
php bin/magento indexer:reindex
chown -R www-data:www-data /var/www/html/magento2
check & set file permission also
'chmod -R 777 /var/www/html/magento2'
delete all from
var/cache