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
error_reporting(E_ALL); ini_set('display_errors', 1);
to index.php file and check error log file located in var folder