COMMUNITY FORUM
Just noticed HUGE ERROR in 2.7.1
- Filip
- Topic Author
- Offline
- New Member
Less
More
8 years 2 weeks ago - 8 years 2 weeks ago #157522
by Filip
never walk alone
Just noticed HUGE ERROR in 2.7.1 was created by Filip
Hi guys, no need to tell you how fantastic you are. K2 is a must on my every site, ofc. Not having Serbian K2 forum, I decided to post here, since this sounds like international, too :)
Anyway, after upgrading to 2.7.1 I noticed that filter in backend stopped working for all except latin characters! It simply ignores entry. In my case, it's cyrillic. Just try it. You don't even have to have cyrillic titled items or categories, filter just acts like nothing happened. Now I know it's problem for all who use any other language or character set but strictly latin.
You have to change all administrator\components\com_k2\models files:
categories.php, items.php, comments.php...
Wherever you havewithinyou simply removed all that is not latin or number or space or dash... therefore my cyrillic letters go away in no second after clicking filter
I think just adding unicode modifier to preg_replace would solve this, works for me:
Please take this post into consideration. I might be wrong after all, but I doubt :)
Cheers!
Anyway, after upgrading to 2.7.1 I noticed that filter in backend stopped working for all except latin characters! It simply ignores entry. In my case, it's cyrillic. Just try it. You don't even have to have cyrillic titled items or categories, filter just acts like nothing happened. Now I know it's problem for all who use any other language or character set but strictly latin.
You have to change all administrator\components\com_k2\models files:
categories.php, items.php, comments.php...
Wherever you have
$search = trim(preg_replace('/[^a-zA-Z0-9\s\-_]/', '', $search));
function getData()
I think just adding unicode modifier to preg_replace would solve this, works for me:
$search = trim(preg_replace('(/[^a-zA-Z0-9\s\-_]/)u', '', $search));
Please take this post into consideration. I might be wrong after all, but I doubt :)
Cheers!
never walk alone
Last edit: 8 years 2 weeks ago by Filip. Reason: solution proposed
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 2 weeks ago #157531
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Just noticed HUGE ERROR in 2.7.1
Hello Filip and thank you for reporting this,
This has already been resolved in the DEV version, github.com/getk2/k2
This has already been resolved in the DEV version, github.com/getk2/k2
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip
- Topic Author
- Offline
- New Member
7 years 4 months ago #161894
by Filip
never walk alone
Replied by Filip on topic Just noticed HUGE ERROR in 2.7.1
Hi Krikor,
I just checked this topic, suggested solution is (at least) 8 months old :)
I know how to apply changes and / or install dev version, but I think this minor bug may produce a lot bigger issues with people who don't know how to do it. When they (we) can expect new version? I got a lot of people compaining about this, I applied solution, but I think there are a lot more outhere.
Thank you!
I just checked this topic, suggested solution is (at least) 8 months old :)
I know how to apply changes and / or install dev version, but I think this minor bug may produce a lot bigger issues with people who don't know how to do it. When they (we) can expect new version? I got a lot of people compaining about this, I applied solution, but I think there are a lot more outhere.
Thank you!
never walk alone
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #161896
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Just noticed HUGE ERROR in 2.7.1
2.8.0 Will be released in the coming days :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip
- Topic Author
- Offline
- New Member
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #161904
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Just noticed HUGE ERROR in 2.7.1
Stay tuned Filip :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.