2

I tried to install Magento New Release 2.3 , installed successfully but here Magento Admin Login Page not rendering even Home page working fine. Some error are i am mentioning below please if any solution is please guide me.

Here generated folder deleted,cache,upgrade,deploy,compile everything is done but no solution.

enter image description here

1
  • let me know are u facing any problem with frontend? Commented Dec 3, 2018 at 11:54

1 Answer 1

3

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.

8
  • its core file but directly this way its not recommended to work Commented Dec 3, 2018 at 11:28
  • Hi @webdeveloper but frontend not getting home page prnt.sc/lpssgn and at admin page prnt.sc/lpst7h windows please advise Commented Dec 3, 2018 at 11:30
  • 3
    @hiteshbalpande, I know its causing you a problem because You are on windows system and windows use '/' for seprator and linux uses '\' So if you are on windows than you have to do this. Its core bug reported on Git Also.
    – anonymous
    Commented Dec 3, 2018 at 11:34
  • 1
    Give up vote and mark accepted answer if its helpful to you.
    – anonymous
    Commented Dec 3, 2018 at 11:35
  • @Vivek, any patches are available for it? without touching vendor file can we resolve this issue? Commented Dec 28, 2018 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.