Magento 2.3.3仪表板不断加载

问题描述 投票:0回答:1

我已经在本地主机中安装了最新版本的magento。登录到管理面板后,仪表板会继续加载。这是图片-

enter image description here请帮助解决此错误。

admin magento2 loading dashboard
1个回答
0
投票

首先转到magento根目录,然后:

供应商/ magento /框架/视图/元素/tempalate/file/validator.php(不要完全复制此URL,只需遵循此路径)

使用任何编辑器打开此文件并更改此行

 $realPath = $this->fileDriver->getRealPath($path); //you can comment this out
    with this one

$realPath = str_replace('\\','/',$this->fileDriver->getRealPath($path));
then goto to

app / etc / di.xml

并搜索view_preprocessed

您会发现整行如下:

Magento \ Framework \ App \ View \ Asset \ MaterializationStrategy \ Symlink并用Copy更改Symlink

© www.soinside.com 2019 - 2024. All rights reserved.