skip to Main Content

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

2

Answers


  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

    Login or Signup to reply.
  2. 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
    ...vendormagentoframeworkViewElementTemplateFileValidator.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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search