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

  • let me know are u facing any problem with frontend? – Nagaraju K Dec 3 '18 at 11:54
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.

| improve this answer | |
  • its core file but directly this way its not recommended to work – Hitesh Balpande Dec 3 '18 at 11:28
  • Hi @webdeveloper but frontend not getting home page prnt.sc/lpssgn and at admin page prnt.sc/lpst7h windows please advise – Nagaraju K Dec 3 '18 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 Dec 3 '18 at 11:34
  • 1
    Give up vote and mark accepted answer if its helpful to you. – anonymous Dec 3 '18 at 11:35
  • @Vivek, any patches are available for it? without touching vendor file can we resolve this issue? – jafar pinjar Dec 28 '18 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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