Jump to content

Issue when enable CCC for css


Recommended Posts

Hi guys, i have issue for Prestashop theme hope you can help. My theme working perfectly but when i enable CCC for CSS, it can not load file all.css (compress css file). It say "NetworkError: 404 Not Found - http://domain.com/cache/v_13_e8ff65859bce051dd7225339c838f634_all.css". I try to turn it on in Localhost but the same issue, i dont know what exactly make this error. Can u help me, thanks in advance

Link to comment
Share on other sites

If you are using PS v1.6.1.5 and you have installed prestashop in a sub-folder, then this is a known defect.  You should search their github or the forums for this issue, it has already been fixed, but you will need to apply a patch.

Link to comment
Share on other sites

I debug this. And all native module made by PrestaShop works fine but other modules where css is included in the same way as native is broken. In ...all.css is not included css files from this modules. All files is cleared and checked in css validator. The path is ok, the files is ok, file Media.php was changed.... 

So question is:

What I'm doing wrong ?

Is there a change in method to include css files ? (in previus version PrestaShop this modules works fine)

 

simple code from broken module 

 public function hookHeader()
    {
 $this->context->controller->addCSS($this->_path.'css/front/FINALmenu_'.$this->shop_id.'.css');
        $this->context->controller->addCSS($this->_path.'css/front/animate.css');
}

code from other broken module

$this->context->controller->addCSS($this->_path.'/css/platributes.css');
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...