Jump to content

CCC working on localhost but not on web host


Recommended Posts

Hi,

I'm running Prestashop Version 1.4.0.5. I have the exact same website both on localhost and live on my web host. The configuration is exactly the same (identical db, all files the same).

CCC (Combine, Compress and Cache) is active for both CSS and JS. This works well on localhost but doesn't work on my web host. The store looks the same on both, just the CSS/JS files aren't combined.

localhost platform:
Windows NT build 2600 (Windows XP Professional Service Pack 3) i586
Apache/2.2.11 (Win32) mod_ssl/2.2.11 OpenSSL/0.9.8k PHP/5.3.0

web host platform (KnownHost VPS):
Linux #1 SMP Wed Aug 26 13:11:07 MSD 2009 i686
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.16

Any ideas why this is happening?
Thanks!

Link to comment
Share on other sites

ok, just figured it out..

the theme/mytheme/cache directory wasn't writable

finally had to dig in the code to see that it needs to be for cccCss() in Tools.php

well, if anyone else experiences problems with CCC, that may be the reason

btw
it doesn't show this as a warning in Back Office > Tools > Informations > Check your configuration
so it might be useful to add it there as well

  • Like 1
Link to comment
Share on other sites

  • 4 months later...
ok, just figured it out..

the theme/mytheme/cache directory wasn't writable

finally had to dig in the code to see that it needs to be for cccCss() in Tools.php

well, if anyone else experiences problems with CCC, that may be the reason

btw
it doesn't show this as a warning in Back Office > Tools > Informations > Check your configuration
so it might be useful to add it there as well


you rock dude, I was having the same problem and it turned out I didn't have the cache file under my theme. Added it and change the permissions to 755, it works like a charm. Thank you so much
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...