vendor/magento/framework/View/Element/Template/File/Validator.php
B. Search the following line
if (0 === strpos($realPath, $directory)) {
return true;
}
C. Replace the content with the following lines.
$realDirectory = $this->fileDriver->getRealPath($directory);
if (0 === strpos($realPath, $realDirectory)) {
return true;
}
B. Search the following line
if (0 === strpos($realPath, $directory)) {
return true;
}
C. Replace the content with the following lines.
$realDirectory = $this->fileDriver->getRealPath($directory);
if (0 === strpos($realPath, $realDirectory)) {
return true;
}