目前测试到的版本,基本上所有版本均会有这类情况现,后台变灰。有提示
page/js/require_js.phtml' in module: '' block's name: 'require.js'
无法正常登录用户名及密码,只需要修改以下文件
vendor\magento\Framework\View\Element\Template\File\Validator.php中的内容
public function isValid($filename) { $filename = str_replace('\\', '/', $filename); if (!isset($this->_templatesValidationResults[$filename])) { $this->_templatesValidationResults[$filename] = ($this->isPathInDirectories($filename, $this->_compiledDir) || $this->isPathInDirectories($filename, $this->moduleDirs) || $this->isPathInDirectories($filename, $this->_themesDir) || $this->_isAllowSymlinks) && $this->getRootDirectory()->isFile($this->getRootDirectory()->getRelativePath($filename)); } return $this->_templatesValidationResults[$filename]; }为以下内容
public function isValid($filename) { return true; }