Keyword

k2 mess up the html language tag

  • Sori
  • Sori's Avatar Topic Author
  • Offline
  • Senior Member
More
3 years 3 months ago - 3 years 3 months ago #177685 by Sori
k2 mess up the html language tag was created by Sori
I would like to let you know that after two weeks of investigation and many failures I understood K2 messup the whole language tag system in Joomla.
If you have a multilingual website, and install K2, it will change the website to only each time get the default language tag.

since I use a rtl language on my website, I went through a lot to understand what is causing this error. And it is the new version 2.10.3 .

as soon as you install K2 this happens.
What could be the reason?
Anyone has any solution?

as you can see in the image. the page is in the fa-ir language but the html tag says it is en-gb and this is bad since it changes the whole rtl styles to ltr. and creates a mess.
Attachments:
Last edit: 3 years 3 months ago by Sori.

Please Log in or Create an account to join the conversation.

  • Sori
  • Sori's Avatar Topic Author
  • Offline
  • Senior Member
More
3 years 3 months ago #177686 by Sori
Replied by Sori on topic k2 mess up the html language tag
Here is a quick 60sec video on the problem:
https://i.imgur.com/r4kSlek.mp4

Please Log in or Create an account to join the conversation.

  • Sori
  • Sori's Avatar Topic Author
  • Offline
  • Senior Member
More
3 years 3 months ago #177687 by Sori
Replied by Sori on topic k2 mess up the html language tag
I understood this file is needed on my home page :
K2HelperUtilities
which is in this directory:
..../components/com_k2/helpers/utilities.php

I don't know why my first page which has nothing to do with k2 right now is needing this file.

Please Log in or Create an account to join the conversation.

  • Sori
  • Sori's Avatar Topic Author
  • Offline
  • Senior Member
More
3 years 3 months ago #177688 by Sori
Replied by Sori on topic k2 mess up the html language tag
I would seriously need help.

Please Log in or Create an account to join the conversation.

  • Sori
  • Sori's Avatar Topic Author
  • Offline
  • Senior Member
More
3 years 3 months ago #177689 by Sori
Replied by Sori on topic k2 mess up the html language tag
found the cuplrit:
.../plugins/system/k2

the k2 system plugin mess up Joomla language.

Please Log in or Create an account to join the conversation.

  • Sori
  • Sori's Avatar Topic Author
  • Offline
  • Senior Member
More
3 years 3 months ago #177690 by Sori
Replied by Sori on topic k2 mess up the html language tag
I replaced that file with an older version 2.8 and it is working alright now.
Hopefully we will find what is going on with the new version.

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #177745 by JoomlaWorks
Replied by JoomlaWorks on topic k2 mess up the html language tag
The issue is most likely related to plugin ordering. Try v2.10.4 (dev) from getk2.org/downloads/?f=K2_Development_Release.zip - it will probably resolve your issue. Getting a file from v2.8 as you said is a bad, bad option...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Sori
  • Sori's Avatar Topic Author
  • Offline
  • Senior Member
More
3 years 2 months ago #177785 by Sori
Replied by Sori on topic k2 mess up the html language tag
Thanks Fotis,

It was the weirdest problem I ever had. but it arised after I got hacked. I had to install a new fresh joomla and go into the pain of transfering all data to this new one and now I have the latest K2 and it works fine.

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #177787 by JoomlaWorks
Replied by JoomlaWorks on topic k2 mess up the html language tag
Great.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum