havita Posted December 28, 2012 Share Posted December 28, 2012 Hello, I have problem with login like customer to my e-shop. If I want login from start page or some category page for example (www.havita.cz/cs) - no problem. But if I want login from some page of horizontal menu and in adress is content, for example (http://www.havita.cz/cs/content/14-moznosti-platby) - login goes to 404 page not found. Please, do You know some solvetion about this problem. Thank You very much for everybody of any information. Excuse my English Link to comment Share on other sites More sharing options...
suenda Posted December 29, 2012 Share Posted December 29, 2012 Well, it's simply because the link in "login" is a relative link. When you try to login from the content page, the request goes to authentication.php in the same directory. Since your directory does not have authentication.php, it gives your 404 error and it's pretty normal. What you need to do is open up your .tpl file for login block in the header and change the link to something like "http:/www.havita.cz/cs/authentication.php" or you can use relative link, sth like "../../authentication.php" depending on which hierarchy level your .tpl file is located. Link to comment Share on other sites More sharing options...
havita Posted December 29, 2012 Author Share Posted December 29, 2012 (edited) Woala, thank You very much for Your help. Now everything is O.K. For information what I need to do. in modules/blockmyaccount I changed link in tpl file from authentication.php to http://www.havita.cz...hentication.php next I delete compile files in /www/tools/smarty/compile and last step: in administration of PS in preferences - performance change smarty Force compile: and Cache: and change back. So solved. Thanks Edited December 29, 2012 by havita (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts