Jump to content

Problems enabling CCC CSS smarty cache with the look of the store


Recommended Posts

Hi there,

 

I already opened a topic in the spanish forum about this but i cannot find the solution so here we go...

 

I am doing some changes to a store with 1.5.6 version and after that i activated the smarty cache and all CCC cache options in "preferences->performance". To my surprise, if the CSS CCC options is activated, some parts of the store (especially the ones i modified most) looks weird and doesnt fit with the rest of the template.

 

i think the store didnt have the cache folder inside the template directory before i activated smarty cache. I created it by FTP and applied propertly 755 permissions to folders and 644 permissions to files.

 

i also delete al files except index.php inside "smarty" and "compile" folders inside /cache/smarty directory.

 

i made all modifications on the real css files and never in the "cached" files.

 

The store is this. Is in production so i cannot show it with CSS CCC active. Everything looks fine this way but its not going to be s fast as with CCC CSS cache enabled.

 

Iam trying the same in a local version of the store and it does the same weird things.

 

You can see for example how this section looks different and weird in the picture attached.

 

Sorry for my bad english folks, i wait for your wise advices.

 

 

post-720456-0-13055600-1397680120_thumb.jpg

Edited by AlbertoPyme (see edit history)
Link to comment
Share on other sites

Sorry Vekia, i dont know what you mean exactly, the part of the shop i show you in the attached file is done with the azGallery module. Another part that is giving me troubles is made with the new smartblog module.

 

What exactly do you need me to show you?

Link to comment
Share on other sites

The thing is that everything works fine with CCC CSS disable (like now).

If i enable it, this section (galeria) and this section (blog) goes mad. I must also inform you that i made intensive change to css and tpl of this two modules (azgallery and smartblog by the way).

 

I think that i didnt find any other strange thing but iam not sure at all.

Link to comment
Share on other sites

The thing is that everything works fine with CCC CSS disable (like now).

If i enable it, this section (galeria) and this section (blog) goes mad. I must also inform you that i made intensive change to css and tpl of this two modules (azgallery and smartblog by the way).

 

I think that i didnt find any other strange thing but iam not sure at all.

Maybe you have an error in your CSS that is handled by browsers but not by CCC? You should check for errors in CSS files.

Link to comment
Share on other sites

Sorry joemartin, this is new to me, didnt know that CSS could be handled by browsers and not by CCC, i think that this could be the problem.

I must also say that i included several times css style definitions inside the .tpl code instead of using the .css files only (You can check it by inspecting the font code), could this be the cause of my problem?

 

Can i check my css files for errors using for example this site?

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 months later...
  • 1 year later...

I have quite a similar problem to the one described in this topic. In my case, the situation looks as follows:

 

1. On the test server (well, it's my laptop ;) ) I have restored a backup of my shop from production server.

2. The local copy is located on /presta folder, while the original shop is located in root directory. I changed the folder wherever it seemed necessary, so that the shop was up&running.

3. I upgraded this local copy from 1.6.0.14 to 1.6.1.5

4. After the upgrade, when the smart cache for CSS is disabled, the website works fine. As soon as I enable it, website seems like it's not reading the css at all. When I read the source code of the website (ctrl+u in a browser), the address of the css file is "http://127.0.0.1/themes/default-bootstrap/cache\v_107_a8f57a381b0cb2d289230e696d6ec38e_all.css" . This file obviously does not exist, there is '/presta' missing between 127.0.0.1 and '/themes' (see point 2 above). 

 

So now my question is: what do I missed? The problem seems strange, as the website works, when the cache is disabled. It looks like the smarty cache for css is missing the information on the prestashop installation folder. Any ideas on how can I fix this? 

Link to comment
Share on other sites

I have quite a similar problem to the one described in this topic. In my case, the situation looks as follows:

 

1. On the test server (well, it's my laptop ;) ) I have restored a backup of my shop from production server.

2. The local copy is located on /presta folder, while the original shop is located in root directory. I changed the folder wherever it seemed necessary, so that the shop was up&running.

3. I upgraded this local copy from 1.6.0.14 to 1.6.1.5

4. After the upgrade, when the smart cache for CSS is disabled, the website works fine. As soon as I enable it, website seems like it's not reading the css at all. When I read the source code of the website (ctrl+u in a browser), the address of the css file is "http://127.0.0.1/themes/default-bootstrap/cache\v_107_a8f57a381b0cb2d289230e696d6ec38e_all.css" . This file obviously does not exist, there is '/presta' missing between 127.0.0.1 and '/themes' (see point 2 above). 

 

So now my question is: what do I missed? The problem seems strange, as the website works, when the cache is disabled. It looks like the smarty cache for css is missing the information on the prestashop installation folder. Any ideas on how can I fix this? 

 

Hi Pankowaty,

 

Did you find any solution?

I'm having the same issue as yours...

I've upgraded from 1.6.1.4 to 1.6.1.5 and noticed the smart cache for CSS is disabled. But as soon as I enable it, the website can not access to css file, using firebug, the uri value of the shop is missing from the css path...

 

thanks

Link to comment
Share on other sites

×
×
  • Create New...