久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

本地主機(jī)中 Magento 2.3.0 CE 上的空白管理頁面

Blank admin page on Magento 2.3.0 CE in localhost(本地主機(jī)中 Magento 2.3.0 CE 上的空白管理頁面)
本文介紹了本地主機(jī)中 Magento 2.3.0 CE 上的空白管理頁面的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我已經(jīng)在本地機(jī)器上安裝了 Magento 2.3,安裝順利.我可以通過 localhost/magento 訪問我的商店.我試圖訪問我的管理頁面 localhost/magento/admin_pogi 但它給了我一個空白頁面并重定向到 url http://localhost/magento/admin_pogi/admin/index/index/密鑰/a062e79f617010c42b07d662103d5142cd9bbe86314fb54da3e4cb5542b11eee/.

I have installed Magento 2.3 on my local-machine, installation goes fine. I can access my store at localhost/magento. I tried to access my admin page localhost/magento/admin_pogi but it gives me a blank page and redirected to the url http://localhost/magento/admin_pogi/admin/index/index/key/a062e79f617010c42b07d662103d5142cd9bbe86314fb54da3e4cb5542b11eee/.

到目前為止我嘗試過的是啟用開發(fā)模式,我在我的管理頁面上看到了這個錯誤:

What I have tried so far is to enable development mode, and I see this error on my admin page:

1 exception(s):
Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid 
template file: 'C:/xampp/htdocs/magento/vendor/magento/module- backend/view/adminhtml/templates/page/js/require_js.phtml' in module: 
'Magento_Backend' block's name: 'require.js'

Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'C:/xampp/htdocs/magento/vendor/magento/module-backend/view/adminhtml/templates/page/js/require_js.phtml' in module: 'Magento_Backend' block's name: 'require.js'
#0 C:xampphtdocsmagentovendormagentoframeworkViewElementTemplate.php(301): 
MagentoFrameworkViewElementTemplate->fetchView('C:/xampp/htdocs...')
#1 C:xampphtdocsmagentovendormagentoframeworkViewElementAbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()#2 
C:xampphtdocsmagentovendormagentoframeworkViewResultPage.php(249): 
MagentoFrameworkViewElementAbstractBlock->toHtml()
#3 
C:xampphtdocsmagentovendormagentoframeworkViewResultLayout.php(171): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#4 C:xampphtdocsmagentogeneratedcodeMagentoBackendModelViewResultPageInterceptor.php(193): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#5 C:xampphtdocsmagentovendormagentoframeworkAppHttp.php(139): MagentoBackendModelViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#6 C:xampphtdocsmagentogeneratedcodeMagentoFrameworkAppHttpInterceptor.php(24): MagentoFrameworkAppHttp->launch()
#7 C:xampphtdocsmagentovendormagentoframeworkAppBootstrap.php(258): MagentoFrameworkAppHttpInterceptor->launch()
#8 C:xampphtdocsmagentoindex.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#9 {main}

推薦答案

這將是一個錯誤,解決了 此提交.作者將 $path 更改為

This would be a bug that addresses this commit. Author changed $path to

$this->fileDriver->getRealPath($path)

它只是在 $path 上調(diào)用 realpath() 但這可能會改變 $path 上以前受

which is simply calling realpath() on $path but that might change directory separators on the $path that previously were affected by

#/vendor/magento/framework/View/Element/Template/File/Validator.php:114
$filename = str_replace('\', '/', $filename);

在 Windows 操作系統(tǒng)上,這將恢復(fù)上述 str_replace 的更改,以便像

On a Windows OS this will revert changes of above str_replace so that a path like

D:/Magento2.3/vendor/magento

將被規(guī)范化為其特定于 Windows 的版本:

will be canonicalized to its Windows specific version:

D:Magento2.3vendormagento

并且這不會在 MagentoFrameworkViewElementTemplateFileValidator 類的 isPathInDirectories() 方法中導(dǎo)致成功的比較:

and this will not result in a successful comparison within isPathInDirectories() method of MagentoFrameworkViewElementTemplateFileValidator class:

foreach ($directories as $directory) {
    if (0 === strpos($realPath, $directory)) {
        return true;
    }
}

解決方案

目前,我們可以在上面的 foreach 循環(huán)中進(jìn)行骯臟的快速更改,以便我們可以運(yùn)行我們的 magento 而不會出現(xiàn)更多問題:

Solution

Currently we can go for a dirty quick change in the above foreach loop so that we can run our magento with no further problems on this:

#/vendor/magento/framework/View/Element/Template/File/Validator.php:139
foreach ($directories as $directory) {
    // Add this line
    $realDirectory = $this->fileDriver->getRealPath($directory);
    // and replace `$directory` with `$realDirectory`
    if (0 === strpos($realPath, $realDirectory)) {
        return true;
    }
}

這篇關(guān)于本地主機(jī)中 Magento 2.3.0 CE 上的空白管理頁面的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設(shè)置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數(shù)組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產(chǎn)生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 国产精品一区二区久久久久 | 国产激情一区二区三区 | 免费看91 | 久久在线视频 | 99视频网站 | 欧美日产国产成人免费图片 | 日日操操 | 国产欧美日韩精品在线观看 | 国产精品亚洲成在人线 | 97成人在线 | 中文字幕在线播放第一页 | 香蕉av免费 | 亚洲人成网亚洲欧洲无码 | 99热精品国产 | 免费观看一级毛片 | 久久久久久久一区二区 | 国产精品激情 | 91久久国产综合久久 | 91啪影院 | 久久中文字幕一区 | 91久久久久久久久 | 亚洲成人一级片 | 综合久久国产 | 国产高清在线精品 | 日韩高清国产一区在线 | 日韩在线国产 | 国产伦精品一区二区三区精品视频 | 黄片毛片 | 国产日产精品一区二区三区四区 | 99九色| 国产一区二区三区 | 久久久一区二区三区 | 美女毛片 | 午夜小影院 | 在线观看av网站 | 亚洲另类自拍 | 一区二区三区中文字幕 | 日韩视频精品在线 | 日韩av在线免费 | 日韩在线一区二区三区 | 野狼在线社区2017入口 |