【问题标题】:Browser unable to load theme.css.php file from magento skin folder浏览器无法从 magento 皮肤文件夹加载 theme.css.php 文件
【发布时间】:2015-05-23 00:29:19
【问题描述】:

我使用 cpanel 作为主机。 我用过Gala Electronues Market Responsive Theme

我已经在 localhost 中进行了测试,它工作正常,但是当我尝试在实时托管服务器上安装时,其中一个主题文件没有加载。

我的实时网址是www.freshdeals.co.in

谁能遇到这个问题或者可以帮我解决这个问题。

【问题讨论】:

  • 你是如何引用你的css文件的?请在此处提供相关代码供以后的读者阅读。
  • @KJ 我是 magento 的新手,但是如果您检查该站点,您会发现其中一个文件没有加载,但其他文件正在从皮肤文件夹加载。
  • 你为什么将你的文件命名为 theme.css.php ?应该是thecss.php吗?
  • 我使用了默认的快速启动 magento 安装,他们已将此文件放在皮肤文件夹中。
  • 是的,@PaulBrunache 是对的。实际文件名是“theme.css.php”,但看起来有一个 URL 重写,您应该在没有“.php”的情况下调用它:freshdeals.co.in/skin/frontend/default/galaelectronues/css/…

标签: php css .htaccess magento cpanel


【解决方案1】:

转到app\design\frontend\default\galaelectronues\template\page\html

打开em_head.php

css/theme.css.php 中删除.php

它看起来像href="<?php echo $this->getSkinUrl('css/theme.css').'?'.http_build_query($setting->getAllCssConfig(), '', '&'); ?>">

【讨论】:

    【解决方案2】:

    是的,我得到了您问题的答案,因为我面临同样的事情

    注释根目录中的.htaccess文件并删除缓存,然后文件theme.css.php就可以正常工作了。

    查看以下链接:https://magento.stackexchange.com/questions/180730/browser-unable-to-load-theme-css-php-file-from-magento-skin-folder/180732#180732

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-20
      • 2016-06-28
      • 1970-01-01
      • 2016-05-23
      • 1970-01-01
      • 2012-09-04
      • 2020-12-31
      • 2014-12-12
      相关资源
      最近更新 更多