Getting Blank Page Like this after Installing Magento Successfully Iam not able to track where it was gone wrong anyone could you please help me with this
This is the Front end screen iam able to see even i installed with sample data
Getting Blank Page Like this after Installing Magento Successfully Iam not able to track where it was gone wrong anyone could you please help me with this
This is the Front end screen iam able to see even i installed with sample data
Fix taken from Magento Community Forums, posted here for anyone who finds this query first (SO has better SEO than Magento forums)
excerpt below
in the directory path
...\vendor\magento\framework\View\Element\Template\File\Validator.php
In the function isPathInDirectories
add a line
$realPath = str_replace('\\', '/', $realPath);
refer below for where to insert
protected function isPathInDirectories($path, $directories)
{
if (!is_array($directories)) {
$directories = (array)$directories;
}
$realPath = $this->fileDriver->getRealPath($path);
$realPath = str_replace('\\', '/', $realPath); // extra code added
foreach ($directories as $directory) {
if (0 === strpos($realPath, $directory)) {
return true;
}
}
return false;
}
It should work.
What is the deployed mode of your current install? (Default, Developer or Production?)
If it is the default mode, you can track what is your problem on var/log/system/log More detail about Magento2 modes, you can reference here: https://devdocs.magento.com/guides/v2.0/config-guide/bootstrap/magento-modes.html
Regards, Bach