Skip to main content
added 81 characters in body
Source Link
anonymous
  • 3.8k
  • 4
  • 25
  • 67

It's causing you problem due to you are on windows.

Give a try to below workaround.

Find : /vendor/magento/framework/View/Element/Template/File/Validator.php:139

find : 
foreach ($directories as $directory) {
    if (0 === strpos($realPath, $directory)) {
        return true;
    }
}

Replace with:
foreach ($directories as $directory) {
    $realDirectory = $this->fileDriver->getRealPath($directory);
    // and replace `$directory` with `$realDirectory`
    if (0 === strpos($realPath, $realDirectory)) {
        return true;
    }
}

UPDATE :

https://github.com/magento/magento2/issues/19480#issue-386162790

Its working for me too.

It's causing you problem due to you are on windows.

Give a try to below workaround.

Find : /vendor/magento/framework/View/Element/Template/File/Validator.php:139

find : 
foreach ($directories as $directory) {
    if (0 === strpos($realPath, $directory)) {
        return true;
    }
}

Replace with:
foreach ($directories as $directory) {
    $realDirectory = $this->fileDriver->getRealPath($directory);
    // and replace `$directory` with `$realDirectory`
    if (0 === strpos($realPath, $realDirectory)) {
        return true;
    }
}

Its working for me too.

It's causing you problem due to you are on windows.

Give a try to below workaround.

Find : /vendor/magento/framework/View/Element/Template/File/Validator.php:139

find : 
foreach ($directories as $directory) {
    if (0 === strpos($realPath, $directory)) {
        return true;
    }
}

Replace with:
foreach ($directories as $directory) {
    $realDirectory = $this->fileDriver->getRealPath($directory);
    // and replace `$directory` with `$realDirectory`
    if (0 === strpos($realPath, $realDirectory)) {
        return true;
    }
}

UPDATE :

https://github.com/magento/magento2/issues/19480#issue-386162790

Its working for me too.

Source Link
anonymous
  • 3.8k
  • 4
  • 25
  • 67

It's causing you problem due to you are on windows.

Give a try to below workaround.

Find : /vendor/magento/framework/View/Element/Template/File/Validator.php:139

find : 
foreach ($directories as $directory) {
    if (0 === strpos($realPath, $directory)) {
        return true;
    }
}

Replace with:
foreach ($directories as $directory) {
    $realDirectory = $this->fileDriver->getRealPath($directory);
    // and replace `$directory` with `$realDirectory`
    if (0 === strpos($realPath, $realDirectory)) {
        return true;
    }
}

Its working for me too.