dongzhong7299 2019-06-03 14:21
浏览 220

Magento 2空白管理员新安装

I use Windows 10. I am trying to install Magento 2 using XAMPP. My admin screen is blank and I get these errors:

Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. localhost/:1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559567140/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. localhost/:1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559567140/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. localhost/:1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559567140/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. localhost/:1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559567140/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. localhost/:1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559567140/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. localhost/:1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559567140/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. require.js:1 Failed to load resource: net::ERR_CONNECTION_RESET mixins.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) requirejs-config.js:536 Uncaught ReferenceError: require is not defined at requirejs-config.js:536 opensans-400.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-400.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Blank admin

  • 写回答

2条回答 默认 最新

  • dsn46282 2019-06-04 06:17
    关注

    Step 1: If you use windows machine Please change the path on this location "vendor/magento/framework/view/element/template/file/validator.php"

    From $realPath = $this->fileDriver->getRealPath($path); To $realPath = str_replace('\', '/', $this->fileDriver->getRealPath($path));

    Step 2: Check Your root .htaccess Remove IfVersion

    Step 3: Remove IfVersion from pub/.htaccess and pub/Static/.htaccess

    Hope working as per acceptation. If you face any problem Please tell me.

    评论

报告相同问题?

悬赏问题

  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退