久久久久久久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 中跳過結帳以獲取可下載的產品)
主站蜘蛛池模板: 国产亚洲精品久久久久久牛牛 | 亚洲精品第一 | 97国产在线观看 | 中文字幕蜜臀av | 国产欧美精品一区二区三区 | 国产精品国产三级国产aⅴ原创 | 日韩av在线不卡 | 久久大全| 国产精品久久久久久久毛片 | 久久aⅴ乱码一区二区三区 亚洲国产成人精品久久久国产成人一区 | 日韩精品 | 久久亚洲欧美日韩精品专区 | 北条麻妃国产九九九精品小说 | 国产九九九九 | 国产亚洲网站 | 亚洲美乳中文字幕 | 日韩成年人视频在线 | av天天干 | 成人网视频 | 国产精品久久久久久久免费大片 | 成人黄色av网站 | 欧美亚洲一区二区三区 | 亚洲视频在线免费观看 | 欧美视频在线播放 | 欧美电影在线 | 日韩一区二区在线观看 | 蜜桃av鲁一鲁一鲁一鲁 | 亚洲男人网 | 夜夜爽99久久国产综合精品女不卡 | 青青草av在线播放 | 人成在线 | 日韩精品在线看 | 亚洲 欧美 日韩 在线 | 国产精品污www一区二区三区 | 久久久久久久久久久91 | 一区影院 | 99久久精品国产一区二区三区 | 成人午夜激情 | 成年人网站免费 | www.99久久.com | 国产日韩欧美电影 |