[Skip to main content](#vessel-content)

#   Smart Search Exact Phrase Error

##

- **[brendanlanza](/forum/user/45588-brendanlanza "View brendanlanza's Profile")**
- [![brendanlanza's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45588-brendanlanza "View brendanlanza's Profile") Topic Author
- [ Offline](/forum/user/45588-brendanlanza)

Less More

- Posts: 47
- Thank you received: 0
-
-

9 years 11 months ago [\#256801](#256801) by [brendanlanza](/forum/user/45588-brendanlanza "View brendanlanza's Profile")  *[Smart Search Exact Phrase Error](/forum/19-hikamarket/887774-smart-search-exact-phrase-error#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&#95;created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor&#95;id AS id, vendor.vendor&#95;name AS title, vendor.vendor&#95;description AS text, vendor&#95;created as created, &quot;1&quot; AS browsernav FROM #&#95;&#95;hikamarket&#95;vendor AS vendor WHERE vendor.vendor&#95;published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor&#95;created DESC, vendor.vendor&#95;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 &quot;Exact Phrase&quot; 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&#95;created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor&#95;id AS id, vendor.vendor&#95;name AS title, vendor.vendor&#95;description AS text, vendor&#95;created as created, &quot;1&quot; AS browsernav FROM #&#95;&#95;hikamarket&#95;vendor AS vendor WHERE vendor.vendor&#95;published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor&#95;created DESC, vendor.vendor&#95;id DESC LIMIT 0, 50  You can running an Exact Phrase search from our page   unicommsemall.com  Thanks.")* was created by *[brendanlanza](/forum/user/45588-brendanlanza "View brendanlanza's Profile")*

-- url of the page with the problem -- : [ unicommsemall.com](http://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](http://unicommsemall.com)

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3Nzc0LXNtYXJ0LXNlYXJjaC1leGFjdC1waHJhc2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[brendanlanza](/forum/user/45588-brendanlanza "View brendanlanza's Profile")**
- [![brendanlanza's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45588-brendanlanza "View brendanlanza's Profile") Topic Author
- [ Offline](/forum/user/45588-brendanlanza)

Less More

- Posts: 47
- Thank you received: 0
-
-

9 years 11 months ago [\#256803](#256803) by [brendanlanza](/forum/user/45588-brendanlanza "View brendanlanza's Profile")  Replied by *[brendanlanza](/forum/user/45588-brendanlanza "View brendanlanza's Profile")* on topic *[Smart Search Exact Phrase Error](/forum/19-hikamarket/887774-smart-search-exact-phrase-error#256803 "-- 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&#95;created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor&#95;id AS id, vendor.vendor&#95;name AS title, vendor.vendor&#95;description AS text, vendor&#95;created as created, &quot;1&quot; AS browsernav FROM #&#95;&#95;hikamarket&#95;vendor AS vendor WHERE vendor.vendor&#95;published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor&#95;created DESC, vendor.vendor&#95;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 &quot;Exact Phrase&quot; 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&#95;created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor&#95;id AS id, vendor.vendor&#95;name AS title, vendor.vendor&#95;description AS text, vendor&#95;created as created, &quot;1&quot; AS browsernav FROM #&#95;&#95;hikamarket&#95;vendor AS vendor WHERE vendor.vendor&#95;published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor&#95;created DESC, vendor.vendor&#95;id DESC LIMIT 0, 50  You can running an Exact Phrase search from our page   unicommsemall.com  Thanks.")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3Nzc0LXNtYXJ0LXNlYXJjaC1leGFjdC1waHJhc2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 11 months ago [\#256805](#256805) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Smart Search Exact Phrase Error](/forum/19-hikamarket/887774-smart-search-exact-phrase-error#256805 "-- 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&#95;created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor&#95;id AS id, vendor.vendor&#95;name AS title, vendor.vendor&#95;description AS text, vendor&#95;created as created, &quot;1&quot; AS browsernav FROM #&#95;&#95;hikamarket&#95;vendor AS vendor WHERE vendor.vendor&#95;published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor&#95;created DESC, vendor.vendor&#95;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 &quot;Exact Phrase&quot; 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&#95;created DESC, v' at line 1 SQL=SELECT DISTINCT vendor.vendor&#95;id AS id, vendor.vendor&#95;name AS title, vendor.vendor&#95;description AS text, vendor&#95;created as created, &quot;1&quot; AS browsernav FROM #&#95;&#95;hikamarket&#95;vendor AS vendor WHERE vendor.vendor&#95;published = 1 AND vendor. LIKE '%chair%' AND vendor. LIKE '%chair%' ORDER BY vendor.vendor&#95;created DESC, vendor.vendor&#95;id DESC LIMIT 0, 50  You can running an Exact Phrase search from our page   unicommsemall.com  Thanks.")*

Hi,

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

foreach($fields as $ffield) {

By Code:

foreach($fields as $field) {

in order to fix the type and let the plugin work in "exact" mode too.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3Nzc0LXNtYXJ0LXNlYXJjaC1leGFjdC1waHJhc2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
