- Posts: 11
COMMUNITY FORUM
Bug in the search plugin
- Pomba
- Offline
- New Member
Less
More
14 years 9 months ago #77563
by Pomba
Replied by Pomba on topic Bug in the search plugin
Im using v 2.2.
Now I downloaded the fixed file for the Search plugin - code.google.com/p/joomlaworks/source/browse/trunk/K2/plugins/search/k2.php
Still it doesn't work. No results at all/any, with the following error-message:
Warning: Invalid argument supplied for foreach() in /home/xdxpnet/public_html/plugins/search/k2.php on line 131
Now I downloaded the fixed file for the Search plugin - code.google.com/p/joomlaworks/source/browse/trunk/K2/plugins/search/k2.php
Still it doesn't work. No results at all/any, with the following error-message:
Warning: Invalid argument supplied for foreach() in /home/xdxpnet/public_html/plugins/search/k2.php on line 131
Please Log in or Create an account to join the conversation.
- Swami Abhiramananda
- Offline
- New Member
Less
More
- Posts: 7
14 years 9 months ago #77564
by Swami Abhiramananda
Replied by Swami Abhiramananda on topic Bug in the search plugin
Lefteris, I have set Enable search in tags to NO, but still have the problem in search. What is the fix for this? Could you provide us the updated search file?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
14 years 9 months ago #77565
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Bug in the search plugin
Hi. Are you getting any error? Please enable debug mode and check the query ( or post it here....).
cmath said:Lefteris, I have set Enable search in tags to NO, but still have the problem in search. What is the fix for this? Could you provide us the updated search file?
cmath said:Lefteris, I have set Enable search in tags to NO, but still have the problem in search. What is the fix for this? Could you provide us the updated search file?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Ivo Apostolov
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 62
14 years 9 months ago #77566
by Ivo Apostolov
Replied by Ivo Apostolov on topic Bug in the search plugin
Lefteris, the strange thing is that the plugin for 2.1 works out of the box
Please Log in or Create an account to join the conversation.
- Swami Abhiramananda
- Offline
- New Member
Less
More
- Posts: 7
14 years 9 months ago #77567
by Swami Abhiramananda
Replied by Swami Abhiramananda on topic Bug in the search plugin
Hi Lefteris,
The following sql query is executed, but there are no errors on the page, although the search is not returning any results:
SELECT i.*, c.name AS categoryname,c.id AS categoryid, c.alias AS categoryalias, c.params AS categoryparams
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories AS c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
ORDER BY i.id DESC
LIMIT 0, 10
SELECT COUNT(*)
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
Thanks,
Lefteris Kavadas said:Hi. Are you getting any error? Please enable debug mode and check the query ( or post it here....). cmath said:Lefteris, I have set Enable search in tags to NO, but still have the problem in search. What is the fix for this? Could you provide us the updated search file?
The following sql query is executed, but there are no errors on the page, although the search is not returning any results:
SELECT i.*, c.name AS categoryname,c.id AS categoryid, c.alias AS categoryalias, c.params AS categoryparams
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories AS c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
ORDER BY i.id DESC
LIMIT 0, 10
SELECT COUNT(*)
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
Thanks,
Lefteris Kavadas said:Hi. Are you getting any error? Please enable debug mode and check the query ( or post it here....). cmath said:Lefteris, I have set Enable search in tags to NO, but still have the problem in search. What is the fix for this? Could you provide us the updated search file?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
14 years 9 months ago #77568
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Bug in the search plugin
Hi. The queries you posted are from the K2 component search not the K2 search plugin. The queries are fine. Maybe providing a link to your site will help us see what's wrong.
cmath said:Hi Lefteris, The following sql query is executed, but there are no errors on the page, although the search is not returning any results:
SELECT i.*, c.name AS categoryname,c.id AS categoryid, c.alias AS categoryalias, c.params AS categoryparams
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories AS c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
ORDER BY i.id DESC
LIMIT 0, 10
SELECT COUNT(*)
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
Thanks,
Lefteris Kavadas said:Hi. Are you getting any error? Please enable debug mode and check the query ( or post it here....). cmath said:Lefteris, I have set Enable search in tags to NO, but still have the problem in search. What is the fix for this? Could you provide us the updated search file?
cmath said:Hi Lefteris, The following sql query is executed, but there are no errors on the page, although the search is not returning any results:
SELECT i.*, c.name AS categoryname,c.id AS categoryid, c.alias AS categoryalias, c.params AS categoryparams
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories AS c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
ORDER BY i.id DESC
LIMIT 0, 10
SELECT COUNT(*)
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories c
ON c.id = i.catid
WHERE i.published = 1
AND i.access <= 2
AND i.trash = 0
AND c.published = 1
AND c.access <= 2
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-02-17 10:51:06' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-02-17 10:51:06' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('ramakrishna')
Thanks,
Lefteris Kavadas said:Hi. Are you getting any error? Please enable debug mode and check the query ( or post it here....). cmath said:Lefteris, I have set Enable search in tags to NO, but still have the problem in search. What is the fix for this? Could you provide us the updated search file?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Swami Abhiramananda
- Offline
- New Member
Less
More
- Posts: 7
14 years 9 months ago #77569
by Swami Abhiramananda
Replied by Swami Abhiramananda on topic Bug in the search plugin
Hi Lefteris,
Here is the link:
www.chennaimath.org/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=3&Itemid=703
Thanks,
Lefteris Kavadas said:Hi. The queries you posted are from the K2 component search not the K2 search plugin. The queries are fine. Maybe providing a link to your site will help us see what's wrong.
Here is the link:
www.chennaimath.org/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=3&Itemid=703
Thanks,
Lefteris Kavadas said:Hi. The queries you posted are from the K2 component search not the K2 search plugin. The queries are fine. Maybe providing a link to your site will help us see what's wrong.
Please Log in or Create an account to join the conversation.
- Ivo Apostolov
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 62
14 years 9 months ago #77570
by Ivo Apostolov
Replied by Ivo Apostolov on topic Bug in the search plugin
They have it in Google Code
code.google.com/p/joomlaworks/source/browse/#svn/trunk/K2
Larry said:i can not get the 2.2 search plugin to work...
could someone please post the k2.php code from version 2.1
code.google.com/p/joomlaworks/source/browse/#svn/trunk/K2
Larry said:i can not get the 2.2 search plugin to work...
could someone please post the k2.php code from version 2.1
Please Log in or Create an account to join the conversation.
- Swami Abhiramananda
- Offline
- New Member
Less
More
- Posts: 7
14 years 9 months ago #77571
by Swami Abhiramananda
Replied by Swami Abhiramananda on topic Bug in the search plugin
So, is K2 Search broken in K2 2.2? Are there any alternatives?
Larry said:thank you Ivo, .. still get no output from K2 search....
if i switch to "clouds"... the tool works perfectly...
if i switch back to "search" mode...
and simply hit "enter" with a "blank search box"
then i get the entire dbase listing...
Larry said:thank you Ivo, .. still get no output from K2 search....
if i switch to "clouds"... the tool works perfectly...
if i switch back to "search" mode...
and simply hit "enter" with a "blank search box"
then i get the entire dbase listing...
Please Log in or Create an account to join the conversation.
- GreenDome
- Offline
- Premium Member
Less
More
- Posts: 93
14 years 9 months ago #77572
by GreenDome
Replied by GreenDome on topic Bug in the search plugin
I echo that - got the same problem :(
cmath said:So, is K2 Search broken in K2 2.2? Are there any alternatives?
Larry said:thank you Ivo, .. still get no output from K2 search.... if i switch to "clouds"... the tool works perfectly...
if i switch back to "search" mode...
and simply hit "enter" with a "blank search box"
then i get the entire dbase listing...
cmath said:So, is K2 Search broken in K2 2.2? Are there any alternatives?
Larry said:thank you Ivo, .. still get no output from K2 search.... if i switch to "clouds"... the tool works perfectly...
if i switch back to "search" mode...
and simply hit "enter" with a "blank search box"
then i get the entire dbase listing...
Please Log in or Create an account to join the conversation.