AlbertoPyme Posted April 16, 2014 Share Posted April 16, 2014 (edited) 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. Edited April 20, 2014 by AlbertoPyme (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 16, 2014 Share Posted April 16, 2014 hello if you remove cached css file, it (script) generates exactly the same file with the same contents? Link to comment Share on other sites More sharing options...
JPresta.com Posted April 17, 2014 Share Posted April 17, 2014 As Vekia said, delete the theme cache files: /themes/sellya/cache/ Enable CCC and see if it's better. Link to comment Share on other sites More sharing options...
AlbertoPyme Posted April 17, 2014 Author Share Posted April 17, 2014 Thanks for replying. Its does exactly the same type of weird things everytime i enable CSS CCC. The cached CSS are exactly the same. I even compare them with notepad++ and the compare plugin, files match. Link to comment Share on other sites More sharing options...
AlbertoPyme Posted April 17, 2014 Author Share Posted April 17, 2014 I also read that is good to manually delete files in /img/tmp/ (except index.php of course), i have done it and nothing has change. Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2014 Share Posted April 17, 2014 image that you attached show subcategories? right? can you show definition of css styles for this part of shop? Link to comment Share on other sites More sharing options...
AlbertoPyme Posted April 18, 2014 Author Share Posted April 18, 2014 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 More sharing options...
vekia Posted April 19, 2014 Share Posted April 19, 2014 can you share url to your store? i will check it on my own it will be faster and easier for both of us Link to comment Share on other sites More sharing options...
AlbertoPyme Posted April 19, 2014 Author Share Posted April 19, 2014 Ok, i already posted the url in the first post but here it is again. Thanks Vekia. Link to comment Share on other sites More sharing options...
vekia Posted April 19, 2014 Share Posted April 19, 2014 sorry i missed this link :/ this is how subcategories look like at the moment: Link to comment Share on other sites More sharing options...
AlbertoPyme Posted April 20, 2014 Author Share Posted April 20, 2014 Hi again, i dont get to the point of what you mean Vekia, i can tell you that all css problems i have are with specific modules and not in main and subcategories of the store. Link to comment Share on other sites More sharing options...
vekia Posted April 20, 2014 Share Posted April 20, 2014 im a little confused right now yo usaid that you've got troubles with css styles for subcategories i checked website you attached, and i see that subcategories css works well there perhaps i missed something? Link to comment Share on other sites More sharing options...
AlbertoPyme Posted April 21, 2014 Author Share Posted April 21, 2014 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 More sharing options...
JPresta.com Posted April 22, 2014 Share Posted April 22, 2014 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 More sharing options...
AlbertoPyme Posted April 22, 2014 Author Share Posted April 22, 2014 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 More sharing options...
JPresta.com Posted April 22, 2014 Share Posted April 22, 2014 Well, it's just an idea. CCC is a tool that parses CSS and minimizes it. If there are errors in CSS it may results in bad compression. The w3c site you mentionned should be good to validate. 1 Link to comment Share on other sites More sharing options...
AlbertoPyme Posted May 22, 2014 Author Share Posted May 22, 2014 Hi there, i couldnt solve this problem but it seens that its not the cause of the slow load speed of my store (mysql problem) so, slould i close the post? Link to comment Share on other sites More sharing options...
Ron morales Posted July 31, 2014 Share Posted July 31, 2014 (edited) if you have to see if you have the cache enabled its slow, it happens to me with 1.6 I can not change smarty does not recognize me and not some script grabs the css Edited July 31, 2014 by Ron morales (see edit history) Link to comment Share on other sites More sharing options...
pankowaty Posted April 19, 2016 Share Posted April 19, 2016 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 More sharing options...
Jmonk Posted April 20, 2016 Share Posted April 20, 2016 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 More sharing options...
som-olga Posted April 20, 2016 Share Posted April 20, 2016 Check out this topic- https://www.prestashop.com/forums/topic/520452-update-from-1614-to-1615/page-2 . It seems to be a problem with having prestashop on a subfolder (like /shop/) and a bug on the new /classes/Media.php . Link to comment Share on other sites More sharing options...
pankowaty Posted April 20, 2016 Share Posted April 20, 2016 Check out this topic- https://www.prestashop.com/forums/topic/520452-update-from-1614-to-1615/page-2 . It seems to be a problem with having prestashop on a subfolder (like /shop/) and a bug on the new /classes/Media.php . Thank you, that solved the problem! Link to comment Share on other sites More sharing options...
Jmonk Posted April 21, 2016 Share Posted April 21, 2016 Check out this topic- https://www.prestashop.com/forums/topic/520452-update-from-1614-to-1615/page-2 . It seems to be a problem with having prestashop on a subfolder (like /shop/) and a bug on the new /classes/Media.php . Wow!!! you saved the day... I was getting crazy with this issue... thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts