.
安装后没有错误,管理空白屏幕,但它在浏览器的控制台上出现错误。
最佳答案
请按照以下说明操作。我希望它能解决你的问题。
去vendor/magento/framework/View/Element/Template/File/Validator.php
并找到函数 函数 isPathInDirectories 第 138 行。
代替:
$realPath = $this->fileDriver->getRealPath($path);
foreach ($directories as $directory) {
if (0 === strpos($realPath, $directory)) {
return true;
}
}
和:
$realPath = $this->fileDriver->getRealPath($path);
foreach ($directories as $directory) {
$directory = $this->fileDriver->getRealPath($path); //Add this line.
if (0 === strpos($realPath, $directory)) {
return true;
}
}
关于magento 2.3 安装后黑屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53645157/