[英]magento login page loads with a white background
I use magento 1.8.1 and I just moved my localhost site to a new server and imported my database using phpmyadmin and deleted the contents inside var/cache & var/session folders but when I try to access my backend the login page is loading in left top corner with a white background. 我使用magento 1.8.1,我只是将localhost站点移至新服务器,并使用phpmyadmin导入了数据库,并删除了var / cache和var / session文件夹中的内容,但是当我尝试访问后端时,登录页面正在加载左上角带有白色背景。
I viewed the page source of my login page and found that the url was missing some parameter (/) to discuss in detail instead of pointing to "127.0.0.1/july/js/prototype/prototype.js";
我查看了登录页面的页面源,发现URL缺少一些参数(/)来详细讨论,而不是指向
"127.0.0.1/july/js/prototype/prototype.js";
it points as follows "127.0.0.1/julyjs/prototype/prototype.js";
它指出如下:
"127.0.0.1/julyjs/prototype/prototype.js";
note that / is missing between july and js. 请注意,7月和js之间缺少/。
But my css and js for frontend is rendered correctly i do know why this weird problem occurs. 但是我的前端的css和js呈现正确,我确实知道为什么会发生这个奇怪的问题。
However I can access to my backend and my localhost login page is still loading fine but the magento login page in my new server is not loading fine. 但是,我可以访问后端,并且我的localhost登录页面仍然可以正常加载,但是新服务器中的magento登录页面无法正常加载。 what should i do to make my login page render correctly.
我应该怎么做才能使我的登录页面正确呈现。
I don't know what went wrong. 我不知道出了什么问题。 Please help me out to solve this issue.Thanks in advance
请帮我解决这个问题。
Run these queries on your database; 在数据库上运行这些查询;
SET FOREIGN_KEY_CHECKS = 0;
UPDATE `core_store` SET `store_id` = '0' WHERE `store_id` = 2 LIMIT 1 ;
UPDATE `core_website` SET `website_id` = '0' WHERE `website_id` = 2 LIMIT 1 ;
UPDATE `core_store_group` SET `group_id` = '0' WHERE `group_id` = 2 LIMIT 1 ;
SET FOREIGN_KEY_CHECKS = 1;
also check these values and make sure to add "/"
end of the url as per the magento norms 还要检查这些值,并确保按照magento规范在网址的末尾添加
"/"
open table core_config_data
correct the value for web/unsecure/base_url and web/secure/base_url
set the value to 0 for both dev/js/merge_files and dev/css/merge_css_files
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.