Monji Posted May 23, 2011 Share Posted May 23, 2011 Here is my problem.In my website, wich is LIve, users can only open 1 cms page, afterwards even if its the same page, it show an error message "Page not available".They work fine if you open each of the individually on a diferent page, but never in the same page.I even thought the problem was with the footer module i have on the page, so i manually created links to cms using the Link Module. The problem however remains the same.Can anyone tell how to fix this?My website is: www.limitededition.com.ptThank you in advance. Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 Probably your problem with Friendly urls. In footer links looks like usual, not friendly. You have some redirector, which redirect you to valid friendly url. If you familiar with Smarty you can see in template code in footer and check whether links generates as friendly there. If not, you can try fix this. Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 I do have Griebdly Urls active, how can i fix this so it works properly? Thank you. Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 Do you familiar with smarty? Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 I only know how to turn it from 2 to 3 and vice versa in the back office.I tried that and it still didn't work. Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 Have you correct Friendly URL in Tools > CMS for all articles?If not, please set it. Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 I have Friendly URLs active if that is what you mean. Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 No.Links in footer points on articles, which there in admin panel Tools > CMSFor each article on form of editing it you need set Friendly url. This is text field, you need fill. Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 Just checked them, theu all have friendly url text. Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 For help you I need content of several files of your themes. First of all footer.tpl Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 The file is attached.Thank you so much for your help.EDIT:For some reason i can't attach the file.How else could i sent it to you? footer.txt Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 The file is attached.Thank you so much for your help.EDIT:For some reason i can't attach the file.How else could i sent it to you? EDIT #2:I've managed to upload it. Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 See Modules -> Positions and let me know what modules in Footer positionI try find tpl file, which display those links. Probably this file in one of modules. Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 There are 2 modules in Footer, Custom Footer abd Data Mining for statiustics. Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 May be in folder themes//modules/ is folder with name similar to 'customfooter'?If yes, let me know what *.tpl files is there in this folder Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 The problem is not in the module, i tryed the cms link with another module and they still don't work.The problem has to be in the CMS, maybe the cms database.Don't you think? Link to comment Share on other sites More sharing options...
gonandriy Posted May 24, 2011 Share Posted May 24, 2011 I think in module was generated incorrect links. Very difficult say certanly, may be problem in database or CMS, but first of all I want know why, when in system was activated friendly urls, in footer still generated simple urls. (with id_cms=)That's why, I would see code of template of this module, which display links. Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 See if these files help.The "Blockcms" is in the Themes/mytheme/modules/BlockcmsThe "tmfooterlinks" (the custom footer module) id in the root/modules.For some reson i can't upload the files again, could you pm me your e-mail so i can send them to you please? Link to comment Share on other sites More sharing options...
Monji Posted May 24, 2011 Author Share Posted May 24, 2011 Thanks, i sent it to the sales e-mail. Link to comment Share on other sites More sharing options...
JET-Dev Posted June 6, 2011 Share Posted June 6, 2011 Have u solved this? I have a similar problem in my store Link to comment Share on other sites More sharing options...
gonandriy Posted June 7, 2011 Share Posted June 7, 2011 Yes, we have solved this, but for help you I need some additional information:I need to see code, which generate these links. Link to comment Share on other sites More sharing options...
Monji Posted June 7, 2011 Author Share Posted June 7, 2011 I have to say that "gonandriy" was a great help in achieving this, i am sure he has the answers you are looking for BTW gonandriy, do you do custom template work?I don't have a lot of money at this time but i need a few changes in my template and i would rather have you do it, since you were so helpful before.Regards. Link to comment Share on other sites More sharing options...
JET-Dev Posted June 7, 2011 Share Posted June 7, 2011 Hello,Thank you for helping.Problem is with CMS and Menu. I activated friendly url and everything works perfect except that when clicking on my menu links from my CMS pages it uses the url: /content/nya-produkter. It should be the url: /nya-produkter.To see the problem “http://www.homestock.se/content/1-leverans” and click on any menu link.You will then be directed to : “http://www.homestock.se/content/nya-produkter”Should be “http://www.homestock.se/nya-produkter”Heres the code from my menunav.tpl {l s='Welcome' mod='menunav'}, {if $logged} {$customerName}({l s='Log out' mod='menunav'}) {else} {l s='Log in' mod='menunav'} {/if} {l s='Cart:' mod='menunav'} {$cart_qties} {l s='product' mod='menunav'} {l s='products' mod='menunav'} {if $cart_qties > 0} {if $priceDisplay == 1} {convertPrice price=$cart->getOrderTotal(false, 4)} {else} {convertPrice price=$cart->getOrderTotal(true, 4)} {/if} {/if} {l s='(empty)' mod='menunav'} <!-- /Block user information module HEADER --> {if $xml->body->home_menu_link1}getPageLink({$xml->body->home_menu_link1|escape:'htmlall':'UTF-8'})}" >{if $xml->body->$mnt}{$xml->body->$mnt|stripslashes}{/if}{/if} {if $xml->body->home_menu_link2}getPageLink({$xml->body->home_menu_link2|escape:'htmlall':'UTF-8'})}">{if $xml->body->$mnt2}{$xml->body->$mnt2|stripslashes}{/if}{/if} {if $xml->body->home_menu_link3}getPageLink({$xml->body->home_menu_link3|escape:'htmlall':'UTF-8'})}">{if $xml->body->$mnt3}{$xml->body->$mnt3|stripslashes}{/if}{/if} {if $xml->body->home_menu_link4}getPageLink({$xml->body->home_menu_link4|escape:'htmlall':'UTF-8'})}">{if $xml->body->$mnt4}{$xml->body->$mnt4|stripslashes}{/if}{/if} {if $xml->body->home_menu_link5}getPageLink({$xml->body->home_menu_link5|escape:'htmlall':'UTF-8'})}">{if $xml->body->$mnt5}{$xml->body->$mnt5|stripslashes}{/if}{/if} {if $xml->body->home_menu_link6}getPageLink({$xml->body->home_menu_link6|escape:'htmlall':'UTF-8'})}">{if $xml->body->$mnt6}{$xml->body->$mnt6|stripslashes}{/if}{/if} Link to comment Share on other sites More sharing options...
gonandriy Posted June 7, 2011 Share Posted June 7, 2011 Hello! This code {if $xml->body->home_menu_link1}getPageLink({$xml->body->home_menu_link1|escape:'htmlall':'UTF-8'})}" >{if $xml->body->$mnt}{$xml->body->$mnt|stripslashes}{/if}{/if} little misunderstanding for me. I have never seen such code in prestashop. So, why do you not want write simple link Nya produkter instead of this {if $xml->body->home_menu_link1}getPageLink({$xml->body->home_menu_link1|escape:'htmlall':'UTF-8'})}" >{if $xml->body->$mnt}{$xml->body->$mnt|stripslashes}{/if}{/if} ?If you need some intricate method for generating top menu links, then will be difficult help you without understanding how links are generated. Link to comment Share on other sites More sharing options...
JET-Dev Posted June 7, 2011 Share Posted June 7, 2011 Hello,I got it fixed Seems like the creator of my theme has not tested it with friendly url enabled.I inserted and new-products.php etc.... in my menunav.tplThank you I really appreciate your help. You make this forum the best in forum in the world Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted June 10, 2011 Share Posted June 10, 2011 Actually that is a known bug.. stupid to not have that fixed in the brand new 1.4.2 I just downloaded.. Seems you have to go to the phpmyadmin in your cpanel and edit the sql database directly for the index.php friendly url in table named ps_meta_lang Then save it.. that is it.. fixed. Link to comment Share on other sites More sharing options...
gonandriy Posted June 11, 2011 Share Posted June 11, 2011 I am sorry, but what is known bug? That is you wrong typing links on some pages in top menu?This is probably bug of theme developer, not more. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted June 13, 2011 Share Posted June 13, 2011 gonandriy, The issue is a known bug to the developers.. they know about this problem. Yet they just put out a new release and did not correct it. The solution is to use your cpanel to make the change to the friendly URL for index.php you can do that by logging into your cpanel and finding your phpadmin and inside there finding the table named: ps_meta_lang and inside that table find index.php and click the little pencil to edit it.. in the column headed "friendly URL" type what you want your friendly url for your home page to be named.. wa la it will be instantly fixed. Then all works fine.. Link to comment Share on other sites More sharing options...
shaz Posted August 6, 2011 Share Posted August 6, 2011 Hi, I am having this same problem and would really apreciate it if you could assit me in resolving this issue. I am using V1.3 Thanks, much appreciated 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