Smart Search Exact Phrase Error

  • Posts: 47
  • Thank you received: 0
7 years 11 months ago #256801

-- url of the page with the problem -- : unicommsemall.com
-- HikaShop version -- : Business 2.64
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6.3
-- PHP version -- : 5.6.24
-- Browser(s) name and version -- : 4
-- Error-message(debug-mod must be tuned on) -- : Error 1064- Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor_created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor_id AS id, vendor.vendor_name AS title, vendor.vendor_description AS text, vendor_created as created, "1" AS browsernav FROM #__hikamarket_vendor AS vendor WHERE vendor.vendor_published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor_created DESC, vendor.vendor_id DESC LIMIT 0, 50

Hi guys,

We have the Hikashop Business and Hika Market installed.

The Smart Search is giving out error code 1064 when you run an "Exact Phrase" search, but is ok in other search modes. The system is running on MySQLi and MySQL is version 5.6.24 as reported by Joomla.

The error is - Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor_created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor_id AS id, vendor.vendor_name AS title, vendor.vendor_description AS text, vendor_created as created, "1" AS browsernav FROM #__hikamarket_vendor AS vendor WHERE vendor.vendor_published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor_created DESC, vendor.vendor_id DESC LIMIT 0, 50

You can running an Exact Phrase search from our page unicommsemall.com

Thanks.

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

  • Posts: 47
  • Thank you received: 0
7 years 11 months ago #256803

We have turned off the Advanced Search Options for now until the problem is resolved. Thanks.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #256805

Hi,

There is a search plugin for HikaMarket.
Please edit that plugin (plugins/search/hikamarket_vendors/hikamarket_vendors.php) and replace the line

foreach($fields as $ffield) {
By
foreach($fields as $field) {
in order to fix the type and let the plugin work in "exact" mode too.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.056 seconds
Powered by Kunena Forum