- Posts: 7902
Joomdle search plugin not working
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
12 years 2 months ago #11
by Antonio Durán
Replied by Antonio Durán on topic Joomdle search plugin not working
My apologies. I tried again, and now I managed to replicate the error. Don't know what I did last time. Another user reported the problem, so I thought I should retry.
The problem happens because something changed in Joomla, and now the limit parameter is passed as an integer, while it was being passed as a string before. The web service expects a string, so it fails.
The good news is that it is really easy to solve. I have done it for next release, but you can do it yourself in the meantime.
You need to open all 3 plugins code:
plugins/search/courses/courses.php
plugins/search/coursecategories/coursecategories.php
plugins/search/coursetopics/coursetopics.php
And look for the web service call. Then add a string cast to the last param.
For example, in courses plugin, change:
By:
Please try and let us know how it works for you.
Thanks for your feedback.
The problem happens because something changed in Joomla, and now the limit parameter is passed as an integer, while it was being passed as a string before. The web service expects a string, so it fails.
The good news is that it is really easy to solve. I have done it for next release, but you can do it yourself in the meantime.
You need to open all 3 plugins code:
plugins/search/courses/courses.php
plugins/search/coursecategories/coursecategories.php
plugins/search/coursetopics/coursetopics.php
And look for the web service call. Then add a string cast to the last param.
For example, in courses plugin, change:
Code:
$rows = JoomdleHelperContent::call_method ("search_courses", $text,$phrase,$ordering, $limit);
Code:
$rows = JoomdleHelperContent::call_method ("search_courses", $text,$phrase,$ordering, (string) $limit);
Please try and let us know how it works for you.
Thanks for your feedback.
Please Log in or Create an account to join the conversation.
- AIR Learning
- Offline
- New Member
-
Less
More
- Posts: 12
12 years 2 months ago #12
by AIR Learning
Replied by AIR Learning on topic Joomdle search plugin not working
yes it worked! tnx
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 2 months ago #13
by Antonio Durán
Replied by Antonio Durán on topic Joomdle search plugin not working
Great, thanks for sahring your results.
Please Log in or Create an account to join the conversation.
- Emma Richardson
- Offline
- New Member
-
Less
More
- Posts: 11
12 years 2 months ago - 12 years 2 months ago #14
by Emma Richardson
Replied by Emma Richardson on topic Joomdle search plugin not working
I have exactly the same error. I also have all green lights for connectivity. Everything else is working fine but I get an error every time I try the search.
Sorry, posted before I saw that there was a fix. Looking into that now. By the way, is there anyway to get Smart Search to work with Joomdle?
Sorry, posted before I saw that there was a fix. Looking into that now. By the way, is there anyway to get Smart Search to work with Joomdle?
Last edit: 12 years 2 months ago by Emma Richardson.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 2 months ago #15
by Antonio Durán
Replied by Antonio Durán on topic Joomdle search plugin not working
We have not worked on Smart Search, and so far I think you are the first one to ask about it, if I remeber correctly.
Please Log in or Create an account to join the conversation.