Groupjive search issue

16 years 9 months ago - 16 years 9 months ago #1715 by Saka
Groupjive - 1.5 & 1.6
SEF Advance - any version

Symptom: When you enter a search string to search for groups in Groupjive component you only get the pagination links while the group results are not displayed. This happens when SEF Advance is turned on and when turned off searched groups are displayed as normal.

Cause: Despite the fact it works when SEF Advance is off, this error is actually caused by Groupjive. Between setting the DB query and displaying results Groupjive calls menu links which change query in SEF Advance in the meantime.

Fix: Set the query again.
- Open the file ./components/com_groupjive/groupjive.php
- Locate the following code:
$rows=$database->loadAssocList();
HTML_wg::errorpage(GJ_SEARCH_RESULTS.' : '.$searchstring, 'info');
- Right above that code add the query set line so it reads:
$database->setQuery($sql);
$rows=$database->loadAssocList();
HTML_wg::errorpage(GJ_SEARCH_RESULTS.' : '.$searchstring, 'info');

Now the search results will be displayed normally.

Emir Sakic
www.sakic.net

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

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch