I install magento on window with Xampp and when I access backend it show black window can any body help me thanks in advance.
1 Answer
This is a path issue. try editing the Validator file from vendor folder with namespace
Magento\Framework\View\Element\Template\File
At around line 138 replace code with this one
$realPath = str_replace('\\', '/',$this->fileDriver->getRealPath($path));
save then cache:flush
Then check if it works. Hope it helps
-
protected function isPathInDirectories($path, $directories) { if (!is_array($directories)) { $directories = (array)$directories; } foreach ($directories as $directory) { if (0 === strpos($this->fileDriver->getRealPath($path), $directory)) { return true; } } return false; } Dec 28, 2018 at 4:12
-
-
protected function isPathInDirectories($path, $directories) { if (!is_array($directories)) { $directories = (array)$directories; } foreach ($directories as $directory) { if (0 === strpos(str_replace('\\', '/',$this->fileDriver->getRealPath($path)), $directory)) { return true; } } return false; } check this one– fmsthirdDec 28, 2018 at 4:17
-
-
protected function isPathInDirectories($path, $directories) { if (!is_array($directories)) { $directories = (array)$directories; } $realPath = str_replace('\\', '/',$this->fileDriver->getRealPath($path)); foreach ($directories as $directory) { if (0 === strpos($realPath, $directory)) { return true; } } return false; } Try this one– fmsthirdDec 28, 2018 at 5:07