1

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

enter image description here

This is the Front end screen iam able to see even i installed with sample data

enter image description here

sai krishna
  • 105
  • 1
  • 9

2 Answers2

0

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.

Kender
  • 1,191
  • 3
  • 15
  • 34
-1

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

bachlee89
  • 717
  • 4
  • 8