Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Not filter multilanguage, and mysql warning
- This topic has 5 replies, 2 voices, and was last updated 11 years, 11 months ago by
hmartinez.
-
AuthorPosts
-
June 18, 2014 at 7:00 pm #1867
hmartinez
Participant1.- The plug-in shows results of all languages, should only show the results of the current language. I’m using WPML.
Where you construct the query to add this condition? and how pass the lang code to query?2.- I’m using php 5.4 whith errors enabled, and plug-in throw me a warning (see attached image)
June 18, 2014 at 9:41 pm #1868Ernest Marcinko
KeymasterHi!
1. I will look into this when I get back to the office tomorrow, it’s probably only a minor bug, or the wpml version has changed since the last update. This issue was fixed before, but I guess something had changed in WPML since then.
2. I didn’t get the attached image (at least I can’t see it right now), can you send it again, or upload it somewhere?
Thanks! Will get back to you tomorrow morning.
June 18, 2014 at 10:00 pm #1869hmartinez
ParticipantHi,
Thanks for your quick response, WMPL verision is 2.7.1, I attached the image again, but if not see the warning is:
“<b>Warning</b>: Unknown: 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in <b>Unknown</b> on line <b>0</b><br />”
Thanks you for your attention.
June 19, 2014 at 10:00 am #1872Ernest Marcinko
KeymasterHi!
I have made a hotfix for the WPML issue. I’m using WMPL 3.1.4 as I can’t download an earlier version. It should work regardless. I’m attaching it to this post. Please uninstall the search plugin, and install this one isntead.
As for the second issue, I’m not sure where it is coming from, because it states “Unknown on line 0
” which is very unusual. Please try do temporary disable autocomplete for now, until the error reporting is turned off: http://i.imgur.com/QmyCgmo.pngI’m sure it’s related to something else, because it does not indicate a problem with the search, something else prints the error message before the ajax request is finished, then it’s printed into the autocomplete box.
June 19, 2014 at 10:27 am #1873Ernest Marcinko
KeymasterHere is the file.
June 19, 2014 at 2:50 pm #1878hmartinez
ParticipantThanks, I think that the translation problem is solved, at least in my last tests it worked properly.
For the moment I’m goint to check if something else causes the warning.
Anyway, if I have a problem, I write to you again.
Regards =)
-
AuthorPosts
- You must be logged in to reply to this topic.