M2部分主机安装完成之后后台无法正常显示,变灰

作者:admi... 点击数: 0 收藏到会员中心
最后编辑时间: 2021-02-25 12:14

目前测试到的版本,基本上所有版本均会有这类情况现,后台变灰。有提示

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;
    }


请登录已经激活账号继续浏此文章所有内容!
会员中心

已经有帐号啦 !赶紧同小伙伴们愉快地玩耍吧

立即登录

还没有账号? 马上注册一个新帐户

注册账号
内容说明:
如您需要转载本文请保留以下信息是对作者发文的支持与尊重:

M2部分主机安装完成之后后台无法正常显示,变灰 来源于 https://www.magentola.com/news-read-211.html
上一篇:M2部分主机安装完成之后出现页面无法访问情况
下一篇:magento2如果快速填充演示数据到网站
相关内容
产品推荐