0

Install magento 2.3.6, and it installed fine, but when opening the page it does not show anything, but the admin page there does work

enter image description here

1
  • any error in log file ???
    – Rk Rathod
    Dec 1 '20 at 5:43
0

Open This File :-

...\vendor\magento\framework\View\Element\Template\File\Validator.php

A function isPathInDirectories added a line

$realPath = str_replace('\\', '/', $realPath);

or refer below code function

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;
}

https://community.magento.com/t5/Installing-Magento-2-x/After-Successful-Installation-Magento-Getting-Blank-Gray-page/m-p/114235#M5155

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.