cancel
Showing results for 
Search instead for 
Did you mean: 

About error while enabling developer mode (Close)

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

About error while enabling developer mode (Close)

在啟用開發人員模式時關於錯誤

magento 2.2
當我啟用開發人員模式時,magento不工作,而是顯示此錯誤

請幫忙,謝謝!

1個異常:
異常#0Magento \ Framework \ Config \ Dom \ ValidationException):主題佈局更新文件'public_html / app / design / frontend / Mgs / XXX / Magento_Contact / layout / contact_index_index.xml'無效。
XML聲明只允許在文檔的開頭
行:2

例外#0Magento \ Framework \ Config \ Dom \ ValidationException):主題佈局更新文件'public_html / app / design / frontend / Mgs / XXX / Magento_Contact / layout / contact_index_index .xml'無效。
XML聲明只允許在文檔的開頭
行:2
0 public_html / vendor / magento / framework / View / Model / Layout / Merge.php662):Magento \ Framework \ View \ Model \ Layout \ Merge - > _ loadFileLayoutUpdatesXml ()
1 public_html / generated / code / Magento / Framework / View / Model / Layout / Merge / Interceptor.php245):Magento \ Framework \ View \ Model \ Layout \ Merge-> getFileLayoutUpdatesXml()
2 public_html / vendor / /framework/View/Model/Layout/Merge.php(535):Magento \ Framework \ View \ Model \ Layout \ Merge \ Interceptor-> getFileLayoutUpdatesXml()
3 public_html / vendor / magento / framework / View / Model / Layout / Merge.php514):Magento \ Framework \ View \ Model \ Layout \ Merge - > _ fetchPackageLayoutUpdates'default'
4 public_html / vendor / magento / framework / View / Model / Layout / Merge.php438):Magento \ Framework \ View \ Model \ Layout \ Merge - > _ merge'default'
5 public_html / generated / code / Magento / Framework / View / Model / Layout / Merge / Interceptor.php193):Magento \ Framework \ View \模\佈\ Merge->負載(陣列)
6 public_html / vendor / magento / framework / View / Layout / Builder.php86):Magento \ Framework \ View \ Model \ Layout \ Merge \ Interceptor-> load()
7 public_html / vendor / magento / framework / View /Layout/Builder.php(63):Magento \ Framework \ View \ Layout \ Builder-> loadLayoutUpdates()
8 public_html / vendor / magento / framework / View / Layout.php254):Magento \ Framework \ View \ Layout
Magento / Framework / View / Layout-> build()
10 public_html / generated / code / Magento / Framework / build()9 public_html / vendor / magento / framework / View / Layout.php875View / Layout / Interceptor.php414):Magento \ Framework \ View \ Layout-> getBlock'page_content_he ...'
11 public_html / vendor / magento / module-cms / Helper / Page.php171 Magento\框\查\佈\ Interceptor-> getBlock'page_content_he ......“)
Magento \ Cms \ Helper \ Page-> prepareResultPage(對象(Magento \ Cms \ Controller \ Index \ Index \ Interceptor),'')
#13的public_html /生成/代碼/ Magento的/ CMS /控制器/索引/索引/ Interceptor.php(24):的Magento \ CMS \控制器\索引\首頁- >執行(NULL)
#14的public_html /供應商/ Magento的/framework/App/Action/Action.php(107):Magento \ Cms \ Controller \ Index \ Index \ Interceptor-> execute()
#15 public_html / vendor / magento / framework / Interception / Interceptor.php(58):Magento (Magento \ Framework \ App \ Request \ Http))
#16 public_html / vendor / magento / framework / Interception / Interceptor.php(138):Magento \ Cms \ Controller \ Index \ Index \ Interceptor - > ___ callParent('dispatch',Array)
攔截/ Interceptor.php(153):Magento \ Cms \ Controller \ Index \ Index \ Interceptor-> Magento \ Framework \ Interception \ {閉合}(對象(Magento \ Framework \ App \請求\ Http))
#18 public_html / generated / code / Magento / Cms / Controller / Index / Index / Interceptor.php(39):Magento \ Cms \ Controller \ Index \ Index \ Interceptor - > ___ callPlugins('dispatch' ,Array)
#19 public_html /供應商/ magento /框架/應用程序/ FrontController.php(55):Magento \ Cms \控制器\索引\索引\攔截器 - >調度(對象(Magento \ Framework \應用程序\請求\ Http))
#20 public_html / vendor / magento / framework / Interception / Interceptor.php(58):Magento \ Framework \ App \ FrontController-> dispatch(Object(Magento \ Framework \ App \ Request \ Http))
#21 public_html / vendor / magento / framework / Interception / Interceptor.php(138):Magento \ Framework \ App \ FrontController \ Interceptor - > ___ callParent('dispatch',Array)
#22 public_html / vendor / magento / module-store / Appage / FrontController / Plugin / RequestPreprocessor.php(94):Magento \ Framework \ App \ FrontController \ Interceptor-> Magento \ Framework \ Interception \ {closure}(對象(Magento \ Framework \ App \ Request \ Http))
#23 public_html /vendor/magento/framework/Interception/Interceptor.php(135):Magento \ Store \ App \ FrontController \ Plugin \ RequestPreprocessor-> aroundDispatch(Object(Magento \ Framework \ App \ FrontController \ Interceptor),Object(Closure),Object (Magento的\框架\軟件\請求\ HTTP))
#24 public_html / vendor / magento / module-page-cache / Model / App / FrontController / BuiltinPlugin.php(69):Magento \ Framework \ App \ FrontController \ Interceptor-> Magento \ Framework \ Interception \ {closure}(Object (Magento \ Framework \ App \ Request \ Http))
#25 public_html / vendor / magento / framework / Interception / Interceptor.php(135):Magento \ PageCache \ Model \ App \ FrontController \ BuiltinPlugin-> aroundDispatch \ App \ FrontController \ Interceptor),Object(Closure),Object(Magento \ Framework \ App \ Request \ Http))
#26 public_html / vendor / magento / framework / Interception / Interceptor.php(153):Magento \ Framework \ \ FrontController \ Interceptor->的Magento \框架\攔截\ {閉合}(對象(Magento的\框架\ APP \請求\ HTTP))
#27 public_html / generated / code / Magento / Framework / App / FrontController / Interceptor.php(26):Magento \ Framework \ App \ FrontController \ Interceptor - > ___ callPlugins('dispatch',Array,NULL)
#28 public_html / magento / framework / App / Http.php(135):Magento \ Framework \ App \ FrontController \ Interceptor-> dispatch(對象(Magento \ Framework \ App \ Request \ Http))
#29 public_html / vendor / magento / framework / (Magento \ Framework \ App \ Http-> launch()
#30 public_html / index.php(39):Magento \ Framework \ App \ Bootstrap-> Http))
#31 {main}