Jump to content

Link in block language with controllerUri=index at the end


Recommended Posts

  • 1 year later...
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

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 by Valdic (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 1 year later...
  • 10 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...