Gipielle Posted February 15, 2017 Share Posted February 15, 2017 Hello, i have links of language block with ?controllerUri=index at the end only for the home page, for products and category links are ok How can i fix ? Thanks Link to comment Share on other sites More sharing options...
Valdic Posted June 2, 2018 Share Posted June 2, 2018 On 15/2/2017 at 10:18 AM, Gipielle said: Hello, i have links of language block with ?controllerUri=index at the end only for the home page, for products and category links are ok How can i fix ? Thanks Hi! I'm having exactly the same problem, you got a solution?? Thank you Link to comment Share on other sites More sharing options...
Valdic Posted June 2, 2018 Share Posted June 2, 2018 (edited) This is the fix if someone needs it, at least just for my shop (PS 1.7.3.3). Quote If deleted this lines: if (defined('_PS_ADMIN_DIR_') === false) define('_PS_ADMIN_DIR_', _PS_ROOT_DIR_.'/admin/'); and changed this one: return basename(_PS_ADMIN_DIR_); with: return basename(PS_ROOT_DIR_.'/admin/'); Problem is related to cronjob module. If you disable the module, the problem is solved. But if you need the module, you have to do that modifications to the file modules/cronjob/cronjobs.php Make a backup of the file before, and it's better to comment the lines than delete them. Credit of this fix: https://www.prestashop.com/forums/topic/372966-url-du-bloc-langues-contenant-le-paramètre-controlleruriindex/#comment-2309428 Edited June 2, 2018 by Valdic (see edit history) 1 Link to comment Share on other sites More sharing options...
Gipielle Posted June 5, 2018 Author Share Posted June 5, 2018 Thanks Valdic Link to comment Share on other sites More sharing options...
Gipielle Posted June 8, 2018 Author Share Posted June 8, 2018 I've thy this solution but i doesn't fix for me. Link to comment Share on other sites More sharing options...
Gipielle Posted July 6, 2018 Author Share Posted July 6, 2018 Any suggestions ? PS 1.5.6.1 Link to comment Share on other sites More sharing options...
Gipielle Posted July 27, 2018 Author Share Posted July 27, 2018 Any news about this problem ? Link to comment Share on other sites More sharing options...
Sickboards Posted February 17, 2020 Share Posted February 17, 2020 Uninstalling the cronjob module works on 1.7.5.2 Thanks! Link to comment Share on other sites More sharing options...
Sickboards Posted January 2, 2021 Share Posted January 2, 2021 ps there is a type in your replacement: it should be: return basename(_PS_ROOT_DIR_.'/admin/'); with a _ before the PS_ROOT 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