解决办法:

在lib\internal\Magento\Framework\View\Element\Template\File文件夹下找到Validator.php文档。

大概在140行左右,添加一行

 $directory = $this->fileDriver->getRealPath($directory);

magento windows出现错误invalid template file

原因是因为linux和windows的文佳目录分隔符不同造成的。

 

相关文章:

  • 2021-07-23
  • 2022-01-08
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案