AL Mahmud Khan’s Post

After Successful Installation Magento Getting Blank Gray page for Admin https://lnkd.in/ec2W5x8g …\vendor\magento\framework\View\Element\Template\File\Validator.php Find and add the extra code- 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; \}

To view or add a comment, sign in

Explore topics