9ashes Posted June 12, 2013 Share Posted June 12, 2013 Dear all, Yesterday I updated a shop I administer to the latest version of Prestashop (1.5.4.1) and, although there were some slight CSS issues that I've ironed out, there is a major issue with the CMS pages. Basically, the CMS pages load but the content in those CMS pages are missing. This obviously is a MAJOR issue as those CMS pages include T&Cs, delivery info, data privacy and all that that protects the shop against any future issues. Here's an example: http://zeliahorsley....-and-conditions PLEASE PLEASE PLEASE can someone help me this is??? Thanks in advance. Paul Link to comment Share on other sites More sharing options...
9ashes Posted June 13, 2013 Author Share Posted June 13, 2013 Please help! Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 and what about back office? are you able to edit those pages, or for example, create new? Can you try? Link to comment Share on other sites More sharing options...
9ashes Posted June 13, 2013 Author Share Posted June 13, 2013 Hey Vekia, that's for the reply... Yes, I can edit and create CMS pages in the back office. They're all there like they were before! Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 okay, but when you create new page - does it work well in front? Link to comment Share on other sites More sharing options...
9ashes Posted June 13, 2013 Author Share Posted June 13, 2013 No it doesn't, I've tried and I get the same result as the other CMS pages... Nothing Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 Try to copy file attached to this post, copy it to controllers/front/ directory change name to the CmsController.php (make a backup of original CmsController.php file first) CmsController.txt Link to comment Share on other sites More sharing options...
9ashes Posted June 13, 2013 Author Share Posted June 13, 2013 Hey Vekia, Thanks so much for helping but I've done as you've said and it hasn't worked. Is there anything else I can do? Thanks so much for helping me. Paul Link to comment Share on other sites More sharing options...
9ashes Posted June 14, 2013 Author Share Posted June 14, 2013 BUMP! Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 hello if it is possible - can you please paste here contents of your cms.tpl file? 1 Link to comment Share on other sites More sharing options...
9ashes Posted June 14, 2013 Author Share Posted June 14, 2013 (edited) No probs, I'll pop it up asap. Thanks x Edited June 14, 2013 by 9ashes (see edit history) Link to comment Share on other sites More sharing options...
9ashes Posted June 14, 2013 Author Share Posted June 14, 2013 Hey Vekia, please see below the coding of my cms.tpl {* * 2007-2011 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 1.4 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $cms->id != $cgv_id} {/if} {if isset($cms) && !isset($category)} {if !$cms->active} <div id="admin-action-cms"> <p>{l s='This CMS page is not visible to your customers.'} <input type="hidden" id="admin-action-cms-id" value="{$cms->id}" /> <input type="submit" value="{l s='Publish'}" class="exclusive" onclick="submitPublishCMS('{$base_dir}{$smarty.get.ad}', 0)"/> <input type="submit" value="{l s='Back'}" class="exclusive" onclick="submitPublishCMS('{$base_dir}{$smarty.get.ad}', 1)"/> </p> <div class="clear" ></div> <p id="admin-action-result"></p> </p> </div> {/if} <div class="rte cms{if $content_only} content_only{/if}"> {$cms->content} </div> {elseif isset($category)} <div> <h1>{$category->name|escape:'htmlall':'UTF-8'}</h1> {if isset($sub_category) & !empty($sub_category)} <h4>{l s='List of sub categories in '}{$category->name}{l s=':'}</h4> <ul class="bullet"> {foreach from=$sub_category item=subcategory} <li> <a href="{$link->getCMSCategoryLink($subcategory.id_cms_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> {/if} {if isset($cms_pages) & !empty($cms_pages)} <h4>{l s='List of pages in '}{$category->name}{l s=':'}</h4> <ul class="bullet"> {foreach from=$cms_pages item=cmspages} <li> <a href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'htmlall':'UTF-8'}">{$cmspages.meta_title|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> {/if} </div> {else} {l s='This page does not exist.'} {/if} Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 can you put before the: {if $cms->id != $cgv_id} this: {$cms|print_r} after this - refresh cms page in your front office Link to comment Share on other sites More sharing options...
9ashes Posted June 15, 2013 Author Share Posted June 15, 2013 Hey Vekia, Thanks so much, it's kind of worked but not quite: http://zeliahorsley.com/shop/content/3-terms-and-conditions Link to comment Share on other sites More sharing options...
vekia Posted June 15, 2013 Share Posted June 15, 2013 hello it was for debug purposes i think that now you can remove {$cms|print_r} Link to comment Share on other sites More sharing options...
9ashes Posted June 15, 2013 Author Share Posted June 15, 2013 Vekia, You are my knight in shining armour. Thanks so much, have a great weekend. Paul Link to comment Share on other sites More sharing options...
vekia Posted June 16, 2013 Share Posted June 16, 2013 you're welcome now i can mark this thread as [solved] if you've got any questions related to this case - feel free to continue discussion here regards! Link to comment Share on other sites More sharing options...
pmdelgado1 Posted June 29, 2013 Share Posted June 29, 2013 Please help, I installed the block news cms to try it out and did not like it, I disable it but my regular CMS block (the default in 1.5.4.x) i not showing now, what should I do. Thank you Link to comment Share on other sites More sharing options...
vekia Posted June 29, 2013 Share Posted June 29, 2013 what module you installed, can you share the url to it? what ps version you use? Link to comment Share on other sites More sharing options...
pmdelgado1 Posted June 29, 2013 Share Posted June 29, 2013 Thank you Vekia my url is www.marcadorparaplacasradiograficas.com and the ps version is 1.5.4.1 this happened this morning right after I tried block news cms appreciate you answering so fast. Link to comment Share on other sites More sharing options...
Relax-Distribut Posted September 10, 2013 Share Posted September 10, 2013 Hello Vekia, I have the same problem , I followed all your steps but it still isn't working. Is there anything else that i can do? Here is my cms.tpl file after removing the print_r DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if ($content_only == 0)} {include file="$tpl_dir./breadcrumb.tpl"} {/if} {if isset($cms) && !isset($cms_category)} {if !$cms->active} <br /> <div id="admin-action-cms"> <p>{l s='This CMS page is not visible to your customers.'} <input type="hidden" id="admin-action-cms-id" value="{$cms->id}" /> <input type="submit" value="{l s='Publish'}" class="exclusive" onclick="submitPublishCMS('{$base_dir}{$smarty.get.ad|escape:'htmlall':'UTF-8'}', 0, '{$smarty.get.adtoken|escape:'htmlall':'UTF-8'}')"/> <input type="submit" value="{l s='Back'}" class="exclusive" onclick="submitPublishCMS('{$base_dir}{$smarty.get.ad|escape:'htmlall':'UTF-8'}', 1, '{$smarty.get.adtoken|escape:'htmlall':'UTF-8'}')"/> </p> <div class="clear" ></div> <p id="admin-action-result"></p> </p> </div> {/if} <div class="rte{if $content_only} content_only{/if}"> {$cms->content} </div> {elseif isset($cms_category)} <div class="block-cms"> <h1><a href="{if $cms_category->id eq 1}{$base_dir}{else}{$link->getCMSCategoryLink($cms_category->id, $cms_category->link_rewrite)}{/if}">{$cms_category->name|escape:'htmlall':'UTF-8'}</a></h1> {if isset($sub_category) && !empty($sub_category)} <p class="title_block">{l s='List of sub categories in %s:' sprintf=$cms_category->name}</p> <ul class="bullet"> {foreach from=$sub_category item=subcategory} <li> <a href="{$link->getCMSCategoryLink($subcategory.id_cms_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> {/if} {if isset($cms_pages) && !empty($cms_pages)} <p class="title_block">{l s='List of pages in %s:' sprintf=$cms_category->name}</p> <ul class="bullet"> {foreach from=$cms_pages item=cmspages} <li> <a href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'htmlall':'UTF-8'}">{$cmspages.meta_title|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> {/if} </div> {else} <div class="error"> {l s='This page does not exist.'} </div> {/if} Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 you updated also to 1.5.4 ? Link to comment Share on other sites More sharing options...
Relax-Distribut Posted September 10, 2013 Share Posted September 10, 2013 yes , last version , 2 days ago Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 so 1.5.4.1 or latest version as you said? Link to comment Share on other sites More sharing options...
Relax-Distribut Posted September 10, 2013 Share Posted September 10, 2013 last version . sorry . I'm not quite familiar with this stuff. Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 no worries, im asking because it is very important to know your prestashop version. what issue you've got exactly? i've got several questions: 1) are you able to define new pages in abck office (preferences > CMS tab) 2) are you able to edit contents of pages that you've got defined? after save, changes appear in back office properly? 3) you use default theme? Link to comment Share on other sites More sharing options...
Relax-Distribut Posted September 10, 2013 Share Posted September 10, 2013 yes I'm using deafult theme. the site is ( www.relaxcom.ro) The backoffice is working properly , I'm creating as many contents as I want . I can save , i can change , do everything I can without errors But as you can see in the front office in the link . All you can see is About us and our stores. I tried to create several contents , but with no result If you click on information , they appear , but I want them to appear in the main Information table. Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 if you're talking about this block: i must ask: have you checked cms block module configuration page? 1 Link to comment Share on other sites More sharing options...
Relax-Distribut Posted September 10, 2013 Share Posted September 10, 2013 I spent the last 2 days searching everywhere for this answer. I have no idea how I've missed this. Thank you very much for your time Vekia. You're a genius! 1 Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 thank you for your kind words im really glad that i could help you a little in this case if you will have any other questions related to this case - feel free to continue discussion best regards Link to comment Share on other sites More sharing options...
Proglamour Posted September 12, 2013 Share Posted September 12, 2013 Hey Vekia, I can't access the backend and on every frontpage come up "Page does not exist". Can you help please.. Thanks 1.5.4 Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2013 Share Posted September 12, 2013 Hey Vekia, I can't access the backend and on every frontpage come up "Page does not exist". Can you help please.. Thanks 1.5.4 i suppose that your issue aren't related to main case in this topic, can you please create new thread with description of your issue? Link to comment Share on other sites More sharing options...
dandzii Posted October 29, 2013 Share Posted October 29, 2013 Hello Vekia, Can you help me figure out something, my webpage administrator left the country so im kinda on my own. I have updated my prestashop to the 1.5.6.0 version, so far managed to set up everything and it works great with my default theme that is modified to my custom needs, until i wanted to change some CMS pages, then i have noticed that i dont have them in my back office>preferences>cms . I mean when i open my website and navigate to the pages i have all the content there and everything works great, just when i wanted to chage severel text's and links i realized that i dont have those pages in the CMS category so i cant edit them and i have started cheking one by one and realized that im missing 24 pages from CMS. I hope you understand what im writing, simpy i have the pages on my website, just i dont have them in my CMS editor to edit them. How can i get them back? Thanks in advance, Daniel Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 hello really weird. These pages work well in front office? you run store with multistore feature turned on? Link to comment Share on other sites More sharing options...
dandzii Posted October 29, 2013 Share Posted October 29, 2013 Hi vekia, Yes exactly these pages work well in front office everything is visible only im not able to see them or find them in back office to edit these pages. And no i dont use multistore, i mean it is off. Link to comment Share on other sites More sharing options...
suikerklontje Posted December 19, 2013 Share Posted December 19, 2013 Hi, I have the exact same problem as the topic starter. Empty CMS pages even though they aren't empty in the back end. I tried adding the debug line. It then show the page content plus some more stuff. As soon as i remove that line though, the page is empty again. What is the next step after adding the extra debug line to the cms.tpl? Thanks! Link to comment Share on other sites More sharing options...
suikerklontje Posted December 23, 2013 Share Posted December 23, 2013 Bump! Link to comment Share on other sites More sharing options...
suikerklontje Posted January 2, 2014 Share Posted January 2, 2014 Another bump. Because im not able to fix this on my own Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2014 Share Posted January 2, 2014 in cms.tpl file add somewhere {$cms|print_r} what you see on product page then? Link to comment Share on other sites More sharing options...
dandzii Posted January 3, 2014 Share Posted January 3, 2014 Stays the same for me Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2014 Share Posted January 3, 2014 even after clearing cache in your shop and with force compilation turned on? Link to comment Share on other sites More sharing options...
dandzii Posted January 3, 2014 Share Posted January 3, 2014 even after clearing cache in your shop and with force compilation turned on? Yes Sent you PM Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2014 Share Posted January 3, 2014 i tried to open your website but it loads loads loads and finally die you've got sime hosting problems? Link to comment Share on other sites More sharing options...
dandzii Posted January 3, 2014 Share Posted January 3, 2014 Works fine, i just had to turn of caching system becouse it eats up disc space, i have checked with the hosting company they where doing some maintainance for few minutes, maybe that was it. Try from now, it works fine Link to comment Share on other sites More sharing options...
vekia Posted January 4, 2014 Share Posted January 4, 2014 yes i can confirm, for me it works now. also cms pages works too: Link to comment Share on other sites More sharing options...
dandzii Posted January 5, 2014 Share Posted January 5, 2014 yes i can confirm, for me it works now. also cms pages works too: Exactly it works and you can open the page, everybody can, but, when i want to EDIT some of these CMS pages i cant becouse i dont have it listed anymore in my admin panel , preferences > CMS , and the page i want to edit is not listed there, i have several pages to be more specific i have 24 pages that are visible to people but not for me to edit them in the preferences > CMS editor For example i have the page : http://www.laptopdelovi.rs/en/35_laptop-charger-ac-adapter But in the admin > prefenreces > CMS > the page is not listed so i cant edit it anymore. Link to comment Share on other sites More sharing options...
dandzii Posted January 5, 2014 Share Posted January 5, 2014 What i want to say that i have in the preferences > CMS i think 18 CMS pages and i can access them and edit them without any problem but im missing 24 pages from there so i could edit them, but the pages are not missing from the Front office or should i say they are not missing from the website, you can navigate and browse on them. Link to comment Share on other sites More sharing options...
suikerklontje Posted January 6, 2014 Share Posted January 6, 2014 Hi Vekia, I added the {$cms|print_r} And the following is what my CMS pages show (instead of just being empty) http://casadelvinoamsterdam.nl/content/4-Over-ons I just can't make anything of it myself. Also cleared the cash which didnt do much. Thanks! Link to comment Share on other sites More sharing options...
suikerklontje Posted January 8, 2014 Share Posted January 8, 2014 (edited) Damn i keep missing the activity in this thread. Anybody have any idea how to solve my problem? Thanks! edit: it seems that if i remove {$cms|print_r}, all of my cms content is put in html comment tags. I think these are the tags normally meant for showing which module is starting, but it doesnt close properly? http://casadelvinoamsterdam.nl/content/4-Over-ons -> look at the source code. Edited January 8, 2014 by suikerklontje (see edit history) Link to comment Share on other sites More sharing options...
suikerklontje Posted January 9, 2014 Share Posted January 9, 2014 Ok! I've found a solution! https://github.com/PrestaShop/PrestaShop/commit/1ed8a01f5f723c313d92d976bff4dd704aadf33c I guess this is because of the use of a theme not meant for 1.5 :/ Link to comment Share on other sites More sharing options...
dandzii Posted January 10, 2014 Share Posted January 10, 2014 Ok! I've found a solution! https://github.com/PrestaShop/PrestaShop/commit/1ed8a01f5f723c313d92d976bff4dd704aadf33c I guess this is because of the use of a theme not meant for 1.5 :/ Great, but for me i have a different problem, im using the default theme with some modification, and everybody can see the CMS pages only i cant find them in the back office administration to edit these pages and change something on them , and i have some 24 pages like that. Link to comment Share on other sites More sharing options...
Palle Posted February 3, 2014 Share Posted February 3, 2014 Hi there, I have a CMS problem regarding images. I am using PS 1.5.6.1 and are using it local with easyPHP. If i create a CMS-page and like to put an image on it, I click on insert image and go to "upload image". I upload and the photo is uploaded to the prestashop/img/cms folder (I have looked it is there :-) ). Then in the next screen, I can see the images name and if I click on the small icon beside I can preview the image. I mark the image and in the information block I can read some facts about the image and that it is readable and writable. I then click on "Select" and in the next page I can read the image address (I beleive it is here the problem is) http://127.0.0.1/C:/linnea/prestashop/img/cms/tyttebaervedtrefot.jpg. I can not preview the image and if I go further, the image will not be displayed. I have tried to remove http://, it did not help. I also tried with removing http://127.0.0.1/, did not help. So what to do. I also have a very strange problem on the product page. When adding a new one I could not name it with some letters in the beginning, c for instance. The product then does not show up on the Front-office. I have to work me around this by giving it another name (not starting with c or k ...) and then save it look on it in Front-office and then I can go bac and rename it to its real name. But my big issue at the moment is the image problem. /palle Link to comment Share on other sites More sharing options...
dandzii Posted March 10, 2014 Share Posted March 10, 2014 Still unable to edit my CMS page , i have 24 CMS pages that i can see in the Front office, but i cant edit them becouse i cant find them in back office , for example here is one page : http://www.laptopdelovi.rs/sr/35_laptop-charger-ac-adapter and i cant edit it to change the text on it becouse i dont have it in my CMS list in the back office Anyone know how to solve this issue? Link to comment Share on other sites More sharing options...
WalTig Posted March 25, 2014 Share Posted March 25, 2014 (edited) I had the same problem as some other users. This topic has [sOLVED] in addition, but I cannot find the solution in this thread. And the last reply before mine is young and also contains the request for a solution. Therefor I add my experience to this thread. Maybe it will help others. My problem: Changes to CMS pages disappear (changes are not saved, even though I try to save them and everything seems to work fine). PrestaShop version 1.5.6.2 My findings: I turned on displaying errors in the file ../config/defines.inc.php by changing define('_PS_MODE_DEV_', false) into define('_PS_MODE_DEV_', true). Then I received an error.... PrestaShopDatabaseException: Unknown column 'indexation' in 'field list'. The executed SQL statement was like this: UPDATE `ps_cms` SET `id_cms` = '1',`id_cms_category` = '1',`position` = '0',`indexation` = '0',`active` = '0' WHERE `id_cms` = 1 And indeed, opening MySQL database, looking at table ps_cms there was no field named indexation. My solution: So I added this new field (ALTER TABLE `ps_cms` ADD `indexation` INT( 1 ) NOT NULL). After this adjustment all works like a charm. Of course one last action: changing back define('_PS_MODE_DEV_', true) into define('_PS_MODE_DEV_', false) again. Edited March 25, 2014 by WalTig (see edit history) Link to comment Share on other sites More sharing options...
isaiaseg Posted July 3, 2014 Share Posted July 3, 2014 Hello my pages are not showing content eighter, please any help?? Link to comment Share on other sites More sharing options...
vekia Posted July 3, 2014 Share Posted July 3, 2014 Hello my pages are not showing content eighter, please any help?? hello please share url to your website where you don't see contents. Link to comment Share on other sites More sharing options...
isaiaseg Posted July 3, 2014 Share Posted July 3, 2014 hello please share url to your website where you don't see contents. Hello Vekia, I made a new topic for this and it was solved quickly... Here is the post http://www.prestashop.com/forums/topic/341820-cant-see-my-content-on-cms-pages-solved/?do=findComment&comment=1723568 Hello Vekia, I made a new topic for this and it was solved quickly... Here is the post http://www.prestashop.com/forums/topic/341820-cant-see-my-content-on-cms-pages-solved/?do=findComment&comment=1723568 Oh and thank you anyway!! Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2014 Share Posted July 4, 2014 Hello Vekia, I made a new topic for this and it was solved quickly... Here is the post http://www.prestashop.com/forums/topic/341820-cant-see-my-content-on-cms-pages-solved/?do=findComment&comment=1723568 Oh and thank you anyway!! thank you for informations :-) glad to hear that community solved another problem so quickly :-) Link to comment Share on other sites More sharing options...
Coloranti Posted August 7, 2014 Share Posted August 7, 2014 (edited) I had the same problem as some other users. This topic has [sOLVED] in addition, but I cannot find the solution in this thread. And the last reply before mine is young and also contains the request for a solution. Therefor I add my experience to this thread. Maybe it will help others. My problem: Changes to CMS pages disappear (changes are not saved, even though I try to save them and everything seems to work fine). PrestaShop version 1.5.6.2 My findings: I turned on displaying errors in the file ../config/defines.inc.php by changing define('_PS_MODE_DEV_', false) into define('_PS_MODE_DEV_', true). Then I received an error.... PrestaShopDatabaseException: Unknown column 'indexation' in 'field list'. The executed SQL statement was like this: UPDATE `ps_cms` SET `id_cms` = '1',`id_cms_category` = '1',`position` = '0',`indexation` = '0',`active` = '0' WHERE `id_cms` = 1 And indeed, opening MySQL database, looking at table ps_cms there was no field named indexation. My solution: So I added this new field (ALTER TABLE `ps_cms` ADD `indexation` INT( 1 ) NOT NULL). After this adjustment all works like a charm. Of course one last action: changing back define('_PS_MODE_DEV_', true) into define('_PS_MODE_DEV_', false) again. Absolute genious! I have pulled my hair trying to solve this problem. Thank you a million WalTig!! Edited August 7, 2014 by Coloranti (see edit history) Link to comment Share on other sites More sharing options...
boogs Posted October 30, 2014 Share Posted October 30, 2014 (edited) Hi, I use PS 1.6.0.9 and a child of the default theme (copy). I have that problem of content not showing up on backoffice side. It's like it quickly appears sometimes, but no. I tried the debug trick but it doesn't work. It's weird because I did not make any changes in that child theme, except css tweaks. Any idea to make my content appear again ? [edit] Solved : let Prestashop regenerate a clean htaccess Edited October 31, 2014 by boogs (see edit history) Link to comment Share on other sites More sharing options...
archkenny Posted January 12, 2015 Share Posted January 12, 2015 (edited) Hi I have the same issues as the person who started this threadand I have followd the steps. My verion is 1.6 . When i pasted this {$cms|print_r} in the cms.tpl, it showed me the cms contents but then i removed it as you said then everything dissapeared again. Is it resolved differently in v1.6? Thanks Edited January 12, 2015 by archkenny (see edit history) Link to comment Share on other sites More sharing options...
archkenny Posted January 12, 2015 Share Posted January 12, 2015 (edited) hello it was for debug purposes i think that now you can remove {$cms|print_r} HI, After i removed the {$cms|print_r}, everything goes blank again? I'm running v1.6.0.9. Help Please. Thanks Edited January 12, 2015 by archkenny (see edit history) Link to comment Share on other sites More sharing options...
archkenny Posted February 11, 2015 Share Posted February 11, 2015 HI, It seems no one is responding to this post in this community. Is there a place to find solution for same issue on 1.6? Thanks Link to comment Share on other sites More sharing options...
vivianlwy Posted March 3, 2015 Share Posted March 3, 2015 (edited) I am facing the same problem. I upgrade prestashop 1.6.0.9 to the latest version 1.6.0.13 two day ago and having problem. I restore backup at the phpmyadmin the problem still there. I had try all method on this thread but it not help. I cannot access the cms at the back office and it show category cannot be load My website all cms page not display and show This page does not exist. Please HELP !!! Edited March 3, 2015 by vivianlwy (see edit history) Link to comment Share on other sites More sharing options...
ilios622001 Posted March 12, 2015 Share Posted March 12, 2015 HI Vekia, i have just updated to version 1.6.0.14 and i have just lost cms access both in backend and also in front end. it was working fine in ver 1.6.0.13 after a transfer from one hosting company to another. I have tried the debug and it shows that the cms shop is not visible but when i look at the database it is present and also shows how many characters in the content. I am not sure how to proceed. Your help would be highly appreciated. I dont mind creating the cms pagers from scratch since i have all the filezilla backups but i have no access in back office. This is my cms file if i can perhaps also use a debug tool like you have previously used with sucess. <?php /* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class CmsControllerCore extends FrontController { public $php_self = 'cms'; public $assignCase; public $cms; public $cms_category; public $ssl = false; public function canonicalRedirection($canonicalURL = '') { if (Tools::getValue('live_edit')) return; if (Validate::isLoadedObject($this->cms) && ($canonicalURL = $this->context->link->getCMSLink($this->cms, $this->cms->link_rewrite, $this->ssl))) parent::canonicalRedirection($canonicalURL); elseif (Validate::isLoadedObject($this->cms_category) && ($canonicalURL = $this->context->link->getCMSCategoryLink($this->cms_category))) parent::canonicalRedirection($canonicalURL); } /** * Initialize cms controller * @see FrontController::init() */ public function init() { if ($id_cms = (int)Tools::getValue('id_cms')) $this->cms = new CMS($id_cms, $this->context->language->id, $this->context->shop->id); elseif ($id_cms_category = (int)Tools::getValue('id_cms_category')) $this->cms_category = new CMSCategory($id_cms_category, $this->context->language->id, $this->context->shop->id); if (Configuration::get('PS_SSL_ENABLED') && Tools::getValue('content_only') && $id_cms && Validate::isLoadedObject($this->cms) && in_array($id_cms, array((int)Configuration::get('PS_CONDITIONS_CMS_ID'), (int)Configuration::get('LEGAL_CMS_ID_REVOCATION')))) $this->ssl = true; parent::init(); $this->canonicalRedirection(); // assignCase (1 = CMS page, 2 = CMS category) if (Validate::isLoadedObject($this->cms)) { $adtoken = Tools::getAdminToken('AdminCmsContent'.(int)Tab::getIdFromClassName('AdminCmsContent').(int)Tools::getValue('id_employee')); if (!$this->cms->isAssociatedToShop() || !$this->cms->active && Tools::getValue('adtoken') != $adtoken) { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } else $this->assignCase = 1; } elseif (Validate::isLoadedObject($this->cms_category)) $this->assignCase = 2; else { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } } public function setMedia() { parent::setMedia(); if ($this->assignCase == 1) $this->addJS(_THEME_JS_DIR_.'cms.js'); $this->addCSS(_THEME_CSS_DIR_.'cms.css'); } /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $parent_cat = new CMSCategory(1, $this->context->language->id); $this->context->smarty->assign('id_current_lang', $this->context->language->id); $this->context->smarty->assign('home_title', $parent_cat->name); $this->context->smarty->assign('cgv_id', Configuration::get('PS_CONDITIONS_CMS_ID')); if (isset($this->cms->id_cms_category) && $this->cms->id_cms_category) $path = Tools::getFullPath($this->cms->id_cms_category, $this->cms->meta_title, 'CMS'); elseif (isset($this->cms_category->meta_title)) $path = Tools::getFullPath(1, $this->cms_category->meta_title, 'CMS'); if ($this->assignCase == 1) { $this->context->smarty->assign(array( 'cms' => $this->cms, 'content_only' => (int)Tools::getValue('content_only'), 'path' => $path, 'body_classes' => array($this->php_self.'-'.$this->cms->id, $this->php_self.'-'.$this->cms->link_rewrite) )); if ($this->cms->indexation == 0) $this->context->smarty->assign('nobots', true); } elseif ($this->assignCase == 2) { $this->context->smarty->assign(array( 'category' => $this->cms_category, //for backward compatibility 'cms_category' => $this->cms_category, 'sub_category' => $this->cms_category->getSubCategories($this->context->language->id), 'cms_pages' => CMS::getCMSPages($this->context->language->id, (int)$this->cms_category->id, true, (int)$this->context->shop->id), 'path' => ($this->cms_category->id !== 1) ? Tools::getPath($this->cms_category->id, $this->cms_category->name, false, 'CMS') : '', 'body_classes' => array($this->php_self.'-'.$this->cms_category->id, $this->php_self.'-'.$this->cms_category->link_rewrite) )); } $this->setTemplate(_PS_THEME_DIR_.'cms.tpl'); } } Link to comment Share on other sites More sharing options...
ilios622001 Posted March 12, 2015 Share Posted March 12, 2015 HI Vekia, i have just updated to version 1.6.0.14 and i have just lost cms access both in backend and also in front end. it was working fine in ver 1.6.0.13 after a transfer from one hosting company to another. I have tried the debug and it shows that the cms shop is not visible but when i look at the database it is present and also shows how many characters in the content. I am not sure how to proceed. Your help would be highly appreciated. I dont mind creating the cms pagers from scratch since i have all the filezilla backups but i have no access in back office. This is my cms file if i can perhaps also use a debug tool like you have previously used with sucess. <?php /* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class CmsControllerCore extends FrontController { public $php_self = 'cms'; public $assignCase; public $cms; public $cms_category; public $ssl = false; public function canonicalRedirection($canonicalURL = '') { if (Tools::getValue('live_edit')) return; if (Validate::isLoadedObject($this->cms) && ($canonicalURL = $this->context->link->getCMSLink($this->cms, $this->cms->link_rewrite, $this->ssl))) parent::canonicalRedirection($canonicalURL); elseif (Validate::isLoadedObject($this->cms_category) && ($canonicalURL = $this->context->link->getCMSCategoryLink($this->cms_category))) parent::canonicalRedirection($canonicalURL); } /** * Initialize cms controller * @see FrontController::init() */ public function init() { if ($id_cms = (int)Tools::getValue('id_cms')) $this->cms = new CMS($id_cms, $this->context->language->id, $this->context->shop->id); elseif ($id_cms_category = (int)Tools::getValue('id_cms_category')) $this->cms_category = new CMSCategory($id_cms_category, $this->context->language->id, $this->context->shop->id); if (Configuration::get('PS_SSL_ENABLED') && Tools::getValue('content_only') && $id_cms && Validate::isLoadedObject($this->cms) && in_array($id_cms, array((int)Configuration::get('PS_CONDITIONS_CMS_ID'), (int)Configuration::get('LEGAL_CMS_ID_REVOCATION')))) $this->ssl = true; parent::init(); $this->canonicalRedirection(); // assignCase (1 = CMS page, 2 = CMS category) if (Validate::isLoadedObject($this->cms)) { $adtoken = Tools::getAdminToken('AdminCmsContent'.(int)Tab::getIdFromClassName('AdminCmsContent').(int)Tools::getValue('id_employee')); if (!$this->cms->isAssociatedToShop() || !$this->cms->active && Tools::getValue('adtoken') != $adtoken) { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } else $this->assignCase = 1; } elseif (Validate::isLoadedObject($this->cms_category)) $this->assignCase = 2; else { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } } public function setMedia() { parent::setMedia(); if ($this->assignCase == 1) $this->addJS(_THEME_JS_DIR_.'cms.js'); $this->addCSS(_THEME_CSS_DIR_.'cms.css'); } /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $parent_cat = new CMSCategory(1, $this->context->language->id); $this->context->smarty->assign('id_current_lang', $this->context->language->id); $this->context->smarty->assign('home_title', $parent_cat->name); $this->context->smarty->assign('cgv_id', Configuration::get('PS_CONDITIONS_CMS_ID')); if (isset($this->cms->id_cms_category) && $this->cms->id_cms_category) $path = Tools::getFullPath($this->cms->id_cms_category, $this->cms->meta_title, 'CMS'); elseif (isset($this->cms_category->meta_title)) $path = Tools::getFullPath(1, $this->cms_category->meta_title, 'CMS'); if ($this->assignCase == 1) { $this->context->smarty->assign(array( 'cms' => $this->cms, 'content_only' => (int)Tools::getValue('content_only'), 'path' => $path, 'body_classes' => array($this->php_self.'-'.$this->cms->id, $this->php_self.'-'.$this->cms->link_rewrite) )); if ($this->cms->indexation == 0) $this->context->smarty->assign('nobots', true); } elseif ($this->assignCase == 2) { $this->context->smarty->assign(array( 'category' => $this->cms_category, //for backward compatibility 'cms_category' => $this->cms_category, 'sub_category' => $this->cms_category->getSubCategories($this->context->language->id), 'cms_pages' => CMS::getCMSPages($this->context->language->id, (int)$this->cms_category->id, true, (int)$this->context->shop->id), 'path' => ($this->cms_category->id !== 1) ? Tools::getPath($this->cms_category->id, $this->cms_category->name, false, 'CMS') : '', 'body_classes' => array($this->php_self.'-'.$this->cms_category->id, $this->php_self.'-'.$this->cms_category->link_rewrite) )); } $this->setTemplate(_PS_THEME_DIR_.'cms.tpl'); } } Hi Vekia, just an update. I was able to gain access to the back office by uploading a new shop.php in classes now i am looking to see what i can do about the front end. Thank you. Link to comment Share on other sites More sharing options...
fastcloud Posted May 22, 2015 Share Posted May 22, 2015 (edited) Hi, Nothing is working for me. I have the latest version. Everything but the cms page is not working. I go to cms , create a new page , hit submit and get the message , " successful update " , but my page is blank . Nothing there. I have tried for hours , searched the forum , tried everything, still no luck. What else can i do if my cms doesnt work? Any easy way to make custom pages? I erased the old htaccess file and re uploaded a new blank one. Now i am getting this error. An error occurred while updating an object. cms (Unknown column 'id_shop' in 'field list') Thanks Edited May 22, 2015 by fastcloud (see edit history) Link to comment Share on other sites More sharing options...
rraulinio Posted November 9, 2015 Share Posted November 9, 2015 (edited) // solved Edited November 9, 2015 by rraulinio (see edit history) Link to comment Share on other sites More sharing options...
simon0033 Posted December 4, 2015 Share Posted December 4, 2015 Hi there, I have lost my CMS links after upgrading to version 1.6.1.3. I have tried the above as that is all i can find on Google and nothing works.. I did try the cms.tpl file but commend line required could not be found. Any ideas? Cheers Si Link to comment Share on other sites More sharing options...
lovemyseo Posted March 8, 2017 Share Posted March 8, 2017 Try to copy file attached to this post, copy it to controllers/front/ directory change name to the CmsController.php (make a backup of original CmsController.php file first) I am facing issue with multi shop PS 1.6.1.11 CMS link block on footer when I click on URL , url seems to be correct but it says doesnt not exist when I check preference cms pages are there but they are empty for that specific shop Link to comment Share on other sites More sharing options...
kirubanidhi Posted March 9, 2017 Share Posted March 9, 2017 CMS page publish button is not working prestashop 1.5.6.2. Its works fine if the displayed boolean button is enabled. When Click no that time open page publish button is having that page. I clicked publish button is not working. anyone help me please Link to comment Share on other sites More sharing options...
lovemyseo Posted March 10, 2017 Share Posted March 10, 2017 thank you for informations :-) glad to hear that community solved another problem so quickly :-) my Cms lang field is showing empty enteris for each page and id shop column was missing I aaded ID shop column but no luck PS 1.6.1.11 I made a seprate post as well but no usehttps://www.prestashop.com/forums/topic/598437-empty-cms-page-in-back-front-office-multi-shop-prestashop-16111/ Link to comment Share on other sites More sharing options...
StefanoPap Posted April 19, 2017 Share Posted April 19, 2017 I solved the problem with CMS in the Update to prestashop 1.6 is not the table was created (ALTER TABLE `ps_cms` ADD `indexation` INT( 1 ) NOT NULL) Link to comment Share on other sites More sharing options...
joaopaulogv Posted June 21, 2017 Share Posted June 21, 2017 I just fixed this issue turning CloudFlare "development mode" OFF. 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