Jump to content
Gipielle

Link in block language with controllerUri=index at the end

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 :)

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More