移动服务器和产品页面为空后,Magento Admin CSS 和 JS 路径不正确? [英] Magento Admin CSS and JS paths incorrect after moving server and product pages empty?

查看:16
本文介绍了移动服务器和产品页面为空后,Magento Admin CSS 和 JS 路径不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将 Magento 站点从子域移到了另一台服务器上 picnprint.me 的目标域.自从将站点移到新服务器后,我目前遇到了两个问题.

I have recently moved a Magento site from a subdomain to it's destination domain at picnprint.me on a different server. I am experiencing two problems at the moment since moving the site to the new server.

管理区域 CSS 和 JS 路径渲染不正确.例如... Magento 管理页面正在寻找 adminhtml/default/default/reset.css 而不是 picnprint.me/skin/adminhtml/default/default/...

The admin area CSS and JS paths are being rendered incorrectly. For example... The Magento Admin page is looking for adminhtml/default/default/reset.css instead of picnprint.me/skin/adminhtml/default/default/…

如果我将 CSS 和 JS 文件放在管理页面当前路径的位置,那么 Magento Admin 将正常加载但不允许我登录.

If I place the CSS and JS files in the locations that the admin pages are currently pathing to then the Magento Admin will load normally but won't allow me to login.

此外,前端的所有产品页面都显示为空白,网站模板加载但没有产品内容加载.有谁知道这些问题的原因可能是什么以及我如何解决问题?

Also, All the product pages on the front end are displaying blank, the site template loads but no product content loads. Does anyone know what the cause of these issues could be and how I remedy the problem?

干杯,

安迪

推荐答案

使用您喜欢的 RDMS 工具(例如 phpMyAdmin)打开表 core_config_data,更正路径的值 web/unsecure/base_urlweb/secure/base_url.确保 dev/js/merge_filesdev/css/merge_css_files 都是 0.

Using your favourite RDMS tool (such as phpMyAdmin) open the table core_config_data, correct the values for the paths web/unsecure/base_url and web/secure/base_url. Make sure dev/js/merge_files and dev/css/merge_css_files are both 0.

通过删除 Magento 目录中 var/cache/ 中的所有文件来清除缓存.

Clear the cache by deleting all files in var/cache/ in your Magento directory.

这篇关于移动服务器和产品页面为空后,Magento Admin CSS 和 JS 路径不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆