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

“未找到錯誤 404"在 Magento 管理員登錄頁面

quot;Error 404 Not Foundquot; in Magento Admin Login Page(“未找到錯誤 404在 Magento 管理員登錄頁面)
本文介紹了“未找到錯誤 404"在 Magento 管理員登錄頁面的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我剛剛將我的 magento 安裝從一臺本地機器服務器轉移到另一臺.現在,我無法登錄管理面板.當我轉到管理員登錄 url 時,收到以下錯誤消息:-

I just transfered my magento installation from one local machine server to another. Now, I cannot login to admin panel. When I go to the admin login url, I get the following error message:-

錯誤:404 未找到"

我的一些模塊頁面也顯示此錯誤.

Some of my module's pages also show this error.

有人能找出問題所在嗎?

Can anyone please figure out the problem?

推薦答案

最后,我找到了解決問題的方法.

Finally, I found the solution to my problem.

我查看了 Magento 系統日志文件 (var/log/system.log).在那里我看到了確切的錯誤.

I looked into the Magento system log file (var/log/system.log). There I saw the exact error.

錯誤如下:-

可恢復錯誤:參數 1 已通過到 Mage_Core_Model_Store::setWebsite()必須是一個實例Mage_Core_Model_Website,空給定,叫進來YOUR_PATHappcodecoreMageCoreModelApp.php在第 555 行并定義在YOUR_PATHappcodecoreMageCoreModelStore.php在線 285

Recoverable Error: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in YOUR_PATHappcodecoreMageCoreModelApp.php on line 555 and defined in YOUR_PATHappcodecoreMageCoreModelStore.php on line 285

可恢復錯誤:參數 1 已通過到Mage_Core_Model_Store_Group::setWebsite()必須是一個實例Mage_Core_Model_Website,空給定,叫進來YOUR_PATHappcodecoreMageCoreModelApp.php在第 575 行并定義在YOUR_PATHappcodecoreMageCoreModelStoreGroup.php在線 227

Recoverable Error: Argument 1 passed to Mage_Core_Model_Store_Group::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in YOUR_PATHappcodecoreMageCoreModelApp.php on line 575 and defined in YOUR_PATHappcodecoreMageCoreModelStoreGroup.php on line 227

其實我之前也遇到過這個錯誤.但是,像 Error: 404 Not Found 這樣的錯誤顯示消息對我來說是新的.

Actually, I had this error before. But, error display message like Error: 404 Not Found was new to me.

此錯誤的原因是管理員的store_idwebsite_id 應設置為0(零).但是,當您將數據庫導入新服務器時,不知何故這些值未設置為 0.

The reason for this error is that store_id and website_id for admin should be set to 0 (zero). But, when you import database to new server, somehow these values are not set to 0.

打開 PhpMyAdmin 并在您的數據庫中運行以下查詢:-

Open PhpMyAdmin and run the following query in your database:-

SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;

我在這里寫過這個問題和解決方案:-

I have written about this problem and solution over here:-

Magento:管理員登錄頁面中錯誤:404 未找到"的解決方案

這篇關于“未找到錯誤 404"在 Magento 管理員登錄頁面的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

Magento products by categories(按類別劃分的 Magento 產品)
Resource interpreted as image but transferred with MIME type text/html - Magento(資源被解釋為圖像但使用 MIME 類型 text/html 傳輸 - Magento)
Is there an event for customer account registration in Magento?(Magento 中是否有客戶帳戶注冊事件?)
Magento addFieldToFilter: Two fields, match as OR, not AND(Magento addFieldToFilter:兩個字段,匹配為 OR,而不是 AND)
Get Order Increment Id in Magento(在 Magento 中獲取訂單增量 ID)
Skip Checkout in Magento for a downloadable product(在 Magento 中跳過結帳以獲取可下載的產品)
主站蜘蛛池模板: 国产一区二区三区四区五区加勒比 | 九九精品在线 | www.黄网| 理论片免费在线观看 | 亚洲色欲色欲www | 99国产精品99久久久久久 | 亚洲毛片 | 欧美乱做爰xxxⅹ久久久 | 久热电影 | 欧美视频区 | 人人干人人干人人干 | 欧美日韩中文字幕 | 免费在线观看成年人视频 | 国产成人91 | 日韩精品在线看 | 91精品久久久久久久久中文字幕 | 日韩无| 亚洲精品1区 | 欧产日产国产精品国产 | 国产精品福利在线观看 | 操久久 | 日一区二区 | 国产综合久久 | 精品国产一区二区国模嫣然 | 在线观看中文字幕dvd播放 | 欧美亚洲国产日韩 | 中文字幕一区二区三区在线乱码 | 欧美在线国产精品 | 久久久精品久 | 国产成人综合av | 久久99深爱久久99精品 | 欧美另类日韩 | 免费国产成人av | 黑人性hd | 日韩中文字幕在线免费 | 蜜桃臀av一区二区三区 | 欧美2区| 91亚洲精品国偷拍自产在线观看 | 三级特黄特色视频 | 日韩欧美在线播放 | 欧美黄a|