Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

If user saves K2 item then item is not visible
(1 viewing) (1) Guest
Support forum for customers who have purchased this product with priority support pack. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: If user saves K2 item then item is not visible

If user saves K2 item then item is not visible 12 years, 2 months ago #27684

Hello.

I'm using Joomla 1.7.3, K2 1.5.4, ArtioSEF 4.2.3, Extension K2 3.0.3. My webpage is multilingual and I'm using System Language - ARTIO JoomSEF.

When the user edits own K2 item from frontend and saves it then the item is not visible in the category.
I have to open and save that item as administrator and then is everything ok.

When I look into #__k2_items for relevant K2 item (row) I see the language is not set correctly. Instead sk-SK I see sk only. If the user edits and saves K2 item in other language (e.g. in english) the relevant database row is still set to 'sk' instead 'en-GB'.

I searched bit in Artio settings and I found if I set the another language for Main language in the Language tab then every saved K2 item keeps this language in the database.

If I turn off ArtioSEF and enable basic Joomla System - Language Filter then the saved language is correct.
Regards

Jan
The topic has been locked.

Re: If user saves K2 item then item is not visible 12 years, 2 months ago #27699

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,
Thank you for your report, we'll test this issue.
ARTIO Support Team
The topic has been locked.

Re: If user saves K2 item then item is not visible 12 years, 2 months ago #27708

  • dajo
  • OFFLINE
  • Posts: 5069
We've found a bug in JoomSEF causing only the ISO code (sk) instead of full code (sk-SK) being stored in the database. It will be fixed in next version.
As regards that sk is stored even in english language, please make sure you enable "Save language to cookie" in JoomSEF's Language configuration, because K2 doesn't use proper language in edit URL (Joomla's Language filter also uses cookies in such situations).
ARTIO Support Team
Last Edit: 12 years, 2 months ago by dajo.
The topic has been locked.

Re: If user saves K2 item then item is not visible 12 years, 2 months ago #27709

Thanks for your feedback.

Could you write me please where in your source code I could change full code for the language?

Regards.
Jan
The topic has been locked.

Re: If user saves K2 item then item is not visible 12 years, 2 months ago #27710

  • dajo
  • OFFLINE
  • Posts: 5069
Edit file /components/com_sef/joomsef.php and in function getLanguage($uri) around line 631 change this code:
JRequest::setVar('language',$lang);

to this:
JRequest::setVar('language',$langs[$lang]->lang_code);
ARTIO Support Team
The topic has been locked.

Re: If user saves K2 item then item is not visible 12 years, 2 months ago #27713

Thanks, now it works ok.

Jan
The topic has been locked.
  • Page:
  • 1
User Login Empty