Dan1 Posted October 28, 2017 Share Posted October 28, 2017 PS 1.7.2.4. Every time I clear the cache in back office: Advanced Parameters - Performance - Clear Cache, my shop loses the layout setting: Design - Theme & Logo - Choose Layout - Index - Two Columns. The home page goes back to being single column. Is this normal behavior? Link to comment Share on other sites More sharing options...
selectshop.at Posted October 28, 2017 Share Posted October 28, 2017 You are you using a non native theme ? Link to comment Share on other sites More sharing options...
selectshop.at Posted October 28, 2017 Share Posted October 28, 2017 I tried to trace your problem, but can't confirm the behavior you described. Made an upgrade from 1.7.2.2. to 1.7.2.4, cleared the cache. All settings remain. Made some changes on theme settings, saved. New settings apply. Cleared the cache several times. New settings still the same. No loose or change of design after cache clearance. Or you are usinga a non native theme, or your server cache is having wrong behavior. php-version in use is ? Theme in use is ? Link to comment Share on other sites More sharing options...
Dan1 Posted October 29, 2017 Author Share Posted October 29, 2017 (edited) I'm using the native theme, no modules added. PHP version 7.1. The behavior I described is precisely as it happens, there's no room for misinterpretation. Edited October 29, 2017 by Dan1 (see edit history) Link to comment Share on other sites More sharing options...
Dan1 Posted October 29, 2017 Author Share Posted October 29, 2017 Another strange behavior. If I save a change in translations, again the shop loses the saved layout. Link to comment Share on other sites More sharing options...
selectshop.at Posted October 29, 2017 Share Posted October 29, 2017 Could be a server (cache) problem, or a problem of the php-version in use. I don't have this problem. I'm using php 5.6.30 and 7.0. I suggest you add your problems to the bugtracker: http://forge.prestashop.com Link to comment Share on other sites More sharing options...
Dan1 Posted October 29, 2017 Author Share Posted October 29, 2017 Does adding it in bug tracker make them find a fix? Link to comment Share on other sites More sharing options...
selectshop.at Posted October 29, 2017 Share Posted October 29, 2017 The only place where bugs are processed is the bugtracker. Here in forum you will get help only from other users and for known problems. Deeper analysis nobody here will make, unless he is getting you for paid support. Link to comment Share on other sites More sharing options...
prestamax Posted October 29, 2017 Share Posted October 29, 2017 (edited) I think Dan1 means the advanced layout settings of the theme. For example if you change the default full width setting of the product page (or index page) to a two column setting this will be lost after clearing the cache. To prevent losing those settings download app/cache/prod/themes/yourthemename/shop1.json (or app/cache/dev/themes/yourthemename/shop1.json) and save this file before clearing the cache. When the cache has been cleared the folder yourthemename/shop1.json will be deleted. Upload your saved version and your settings are back again. Hope this will be easier in future versions of PS1.7 ;-) Edited October 29, 2017 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted October 29, 2017 Share Posted October 29, 2017 Yes, I know what he mean and tried this out. Cannot trace any problem with this, because I'm using different php-versions. It could be an server configuration error on cache level (apache+ngnix not interacting correctly), or on the php-version in use. @Dan1 when you report on forge, please also name the exact server configuration you are running. Link to comment Share on other sites More sharing options...
prestamax Posted October 29, 2017 Share Posted October 29, 2017 I had the same issue (php 7) and found the solution in the documentation of my theme provider so it seems to happen more than once. Quote: 2. One thing you need to do after choosing layouts for pages. Back up the \app\cache\prod\themes\themename\shop1.json file or the \app\cache\dev\themes\themename\shop1.json file after you choosing "Full width" or "Two columns, small left column" or "Two columns, small right column" for your pages, because of you may loose your settings afeter clearing the Smarty cache. Link to comment Share on other sites More sharing options...
Un_Tal_Iban Posted December 9, 2017 Share Posted December 9, 2017 (edited) I had same problem and i have solved. I dont know if this fix is for all user or not, i hope yes. After speak with my theme provider, he said me edit theme.yml is the provisional fix. My problem was that i need/want all layouts in full width and when clear cache some goes to two columns, three columns... What i do (easy and fast): First of all save layout. Go to themes/your theme/config/theme.yml In my case i search for "layout-left-column" to change for "layout-full-width" in this part: theme_settings: default_layout: layout-full-width layouts: category: layout-full-width best-sales: layout-full-width new-products: layout-full-width prices-drop: layout-full-width Sorry my english, hope this help This bug is reported: http://forge.prestashop.com/browse/BOOM-3222 Edited December 9, 2017 by tali656 (see edit history) 3 Link to comment Share on other sites More sharing options...
patuga Posted March 25, 2018 Share Posted March 25, 2018 i have the same problem with version 1.7.3.0 Link to comment Share on other sites More sharing options...
tantan199 Posted March 25, 2018 Share Posted March 25, 2018 Another possible solution is to adjust the permissions of the \app\cache\prod\themes\themename\shop1.json file, to don't allow apache to remove/edit it. Link to comment Share on other sites More sharing options...
patuga Posted May 9, 2018 Share Posted May 9, 2018 they fixed it in 1.7.3.1 (or so they say :p) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now