Magento CSS和JS的路径不正确 [英] Magento Path to CSS and JS incorrect

查看:120
本文介绍了Magento CSS和JS的路径不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

清除缓存后,该网站已损坏: http://isaacgrainger.co.uk/

This website has broken after cache clearing: http://isaacgrainger.co.uk/

在这里,我已经按照其他建议进行了以下操作:

I've done the following as per other suggestions on here:

  1. 已检查的文件夹权限
  2. 运行SQL脚本以关闭CSS和JS合并
  3. 检查了所有权限的媒体和var文件夹
  4. 检查基本网址-一切正常

我完全被困住了.在后端(无样式),似乎无法更改CSS偏好设置.我没有构建此项目,所以我不知道原始开发人员如何配置Magento的后端.

I am totally stumped. in the backend (unstyled) there seems to be no way to change CSS preferences. I didn't build this project so I don't know how the original developer configured the back end of Magento.

推荐答案

检查损坏的路径

查看页面的来源,然后单击CSS链接,如果指向正确,它将带您进入CSS页面.

View the source of your page and click the CSS links, if it is pointed correctly it should bring you to the CSS page.

解决方案

需要转到phpMyAdmin并执行以下操作:

Need to go to phpMyAdmin and do this:

SELECT * FROM `core_config_data` WHERE `path` LIKE '%merge%'

然后将值从1更改为0清除缓存,一切都会好的

Then change values from 1 to 0 Clear cache and all will be ok

这篇关于Magento CSS和JS的路径不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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