Jump to content

Cannot delete language


Recommended Posts

Hello,

Don't know if I'm in the right place to post this...
I have a problem in the backoffice of one of my clients : I can't delete languages on the 'Localization' page.

Prestashop version is 1.6.1.18
When I try to delete a language (any of them, enabled or disabled) I get this error :
"You cannot delete the language currently in use. Please select a different language."

I found where the problem comes from :
- When deleting a language, Prestashop calls the "AdminLanguages" controller, with query string parameters "id_lang=X" and "deletelang". This is normal.
- But I noticed that when using the "id_lang=X" parameter in the query string, the specified language "X" becomes the active language in the BO.
(For example, if I try to delete the Spanish language, I will get the error message, but part of my BO (menu and some other texts) will show in Spanish)
- So, if "id_lang=X" makes X the active language, I'll never be able to delete it... :-)

Did any of you already have this problem ? Or is it normal (I doubt it) ?
I can reproduce this behavior on any BO page : if I add "id_lang=X", the active language changes.
I tested with another prestashop installation that I have (version 1.6.1.12), the "id_lang=X" query string parameter doesn't change anything to the active BO language...

Can you help me please ?

Thank you very much,
Best regards,

AD-DEV - Arnaud Dohogne
 

screenshot.png

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...
  • 10 months later...

Just if it's helpful.

I've been facing same problem in a clean installation, after all, it's not an issue, at least not for me.

I found the language I tried to delete actually was in use, in my case by one of the users o employees, actually the admin.

So when in admin's profiles I changed its language, then tried to delete the language, and Voilà! problem solved.

 

Please give feedback if it helps someone else.

 

Link to comment
Share on other sites

  • 3 years later...
  • 1 month 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...