Keyword

Can't work search

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 3 months ago - 8 years 3 months ago #156837 by German Levi
Can't work search was created by German Levi
After upgrade K2 to 2.7.1 search not works!
Enter a search phrase, the page is reloaded but nothing is. More precisely, the page does not change.
Last edit: 8 years 3 months ago by German Levi.

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

More
8 years 3 months ago #156867 by John
Replied by John on topic Can't work search
I got this issue too. After upgrade to 2.7.1. K2 search in Backend (don't have a Frontend search) does not work for Greek words.
It will work for "test" but not for "τεστ".

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 3 months ago #156884 by German Levi
Replied by German Levi on topic Can't work search
yes! don't work with RU words!

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

More
8 years 3 months ago #156903 by Vladislav
Replied by Vladislav on topic Can't work search
Replace 39 and 149-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\items.php"

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 3 months ago #156906 by German Levi
Replied by German Levi on topic Can't work search
yes. this is work. but search key words don't save in search field after press button search!

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

More
8 years 3 months ago #156907 by Vladislav
Replied by Vladislav on topic Can't work search
Replace 36-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\items\view.html.php"

and move 41-line
$db = JFactory::getDBO();
after 24-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view');
$db = JFactory::getDBO();

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 3 months ago #156908 by German Levi
Replied by German Levi on topic Can't work search
thanks Vladislav. it's work! good day!

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

More
8 years 3 months ago #156909 by Vladislav
Replied by Vladislav on topic Can't work search
Fixed search in other sections:

Categories

Replace 31 and 153-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\categories.php"

Replace 36-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\categories\view.html.php"

insert code
$db = JFactory::getDBO();
after 24-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view');
$db = JFactory::getDBO();

Tags

Replace 34 and 79-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\tags.php"

Replace 32-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\tags\view.html.php"

insert code
$db = JFactory::getDBO();
after 23-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view');
$db = JFactory::getDBO();

Comments

Replace 34 and 78-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\comments.php"

Replace 34-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\comments\view.html.php"

insert code
$db = JFactory::getDBO();
after 24-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view');
$db = JFactory::getDBO();

Users

Replace 36 and 142-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\users.php"

Replace 36-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\users\view.html.php"

Extra Fields

Replace 34 and 92-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\extrafields.php"

Replace 33-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\extrafields\view.html.php"

insert code
$db = JFactory::getDBO();
after 24-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view');
$db = JFactory::getDBO();

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

More
8 years 3 months ago #156918 by JoomlaWorks
Replied by JoomlaWorks on topic Can't work search
Update to 2.7.2 Dev Build to fix this.

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

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 3 months ago #156919 by German Levi
Replied by German Levi on topic Can't work search
url for download?

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


Powered by Kunena Forum