Question

I am really new to this world of magento, I installed Magento 2.4 in XAMPP with the help of compposer, elastic search, I did everything to the letter, when I checked my installation I saw that it does not load content neither in the frontend nor in the backend, does not mark an error, it just does not load the content already run ----reindex, upgrade, static-content: deploy –f and flush upgrade

But it remains the same, I would appreciate if you could help me give clues of what it could beenter image description herehere de image without content

Was it helpful?

Solution

#/vendor/magento/framework/View/Element/Template/File/Validator.php:140

the string

if (0 === strpos($realPath, $directory)) {
    return true;
}

to replace

$realDirectory = $this->fileDriver->getRealPath($directory);
if ($realDirectory && 0 === strpos($realPath, $realDirectory)) {
   return true;
}

After run all commmands.

THANKS.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top