0

After installing Magento 2.1.7, When I am trying to open the admin panel login screen is blank and my console contains an error.if anyone has a solution then please let me know. I check in this file -

/vendor/magento/framework/View/Element/Template/File/Validator.php

in line number there is a code like :-:138

foreach($directories as $directory)
   {
     if(0===strpos($this->fileDriver->getRealPath($path),$directory))
     { 
      return true;
     }
  }

enter image description here

10

1 Answer 1

0

You can edit this line like this:

foreach($directories as $directory)
   {
     if(0===str_replace('\\', '/',$this->fileDriver->getRealPath($path),$directory))
     { 
      return true;
     }
  }  

Your Answer

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

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