Groupjive search issue
- Saka
-
Topic Author
- Offline
- Administrator
-
17 years 4 months ago - 17 years 4 months ago #1715
by Saka
Emir Sakic
www.sakic.net
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:- Right above that code add the query set line so it reads:
Now the search results will be displayed normally.
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');
$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
Last Edit: 17 years 4 months ago by Saka.
Please Log in or Create an account to join the conversation.