How to fix the «Invalid template file» / «require_js.phtml» failure of Magento 2.3.0 in Windows?

bug
filesystem
windows
bug-fix
magento23
magento230

(Dmitry Fedyuk) #1

Replace the line:

with the following one:

if (0 === strpos($realPath, $this->fileDriver->getRealPath($directory))) {

How to fix the «Invalid template file» / «require_js.phtml» failure of Magento 2.2.7 in Windows?
(Dmitry Fedyuk) #2

See also: How to fix the «Invalid template file» / «require_js.phtml» failure of Magento 2.2.7 in Windows?


(Samair Ali) #3

hi tried it but still no success any other solution ?


(Samair Ali) #4

and i am using magento 2.3


(Dmitry Fedyuk) #5

It always work for me. Re-check your code.