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

查看:41
本文介绍了将服务器和产品页面移为空后,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天全站免登陆