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

#   1064 error

##

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

Less More

- Posts: 62
- Thank you received: 0
-
-

7 years 3 months ago [\#309263](#309263) by [joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")  *[1064 error](/forum/25-install-update/897986-1064-error#309263 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.2.20 -- Error-message(debug-mod must be tuned on) -- : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  Hi,  I have in a specific category of my shop an error when I try to enter the price of a product or when I try to add some variants to it. I got this error message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  You can see it in live here:   www.mijnkinderkamer.nl/nl/producten/hout...etters-12-cm-meisjes  I have tried a lot and search for same errors but no result till now.  Any idea what can be wrong?  regards, Joost")* was created by *[joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.10
-- PHP version -- : 7.2.20
-- Error-message(debug-mod must be tuned on) -- : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product_id FROM saqj9_hikashop_product_category WHERE category_id IN ()

Hi,

I have in a specific category of my shop an error when I try to enter the price of a product or when I try to add some variants to it. I got this error message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product_id FROM saqj9_hikashop_product_category WHERE category_id IN ()

You can see it in live here: [ www.mijnkinderkamer.nl/nl/producten/hout...etters-12-cm-meisjes](https://www.mijnkinderkamer.nl/nl/producten/houten-lettersnl/artikel/60774-houten-letters-12-cm-meisjes)

I have tried a lot and search for same errors but no result till now.

Any idea what can be wrong?

regards,
Joost

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

7 years 3 months ago [\#309264](#309264) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[1064 error](/forum/25-install-update/897986-1064-error#309264 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.2.20 -- Error-message(debug-mod must be tuned on) -- : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  Hi,  I have in a specific category of my shop an error when I try to enter the price of a product or when I try to add some variants to it. I got this error message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  You can see it in live here:   www.mijnkinderkamer.nl/nl/producten/hout...etters-12-cm-meisjes  I have tried a lot and search for same errors but no result till now.  Any idea what can be wrong?  regards, Joost")*

Hi,

Could you activate the "debug mode" and the "error reporting" settings of the Joomla configuration and try again ?
That error page should then contain much more information on the issue which will help us provide a solution.

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

7 years 3 months ago [\#309266](#309266) by [joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")  Replied by *[joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")* on topic *[1064 error](/forum/25-install-update/897986-1064-error#309266 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.2.20 -- Error-message(debug-mod must be tuned on) -- : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  Hi,  I have in a specific category of my shop an error when I try to enter the price of a product or when I try to add some variants to it. I got this error message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  You can see it in live here:   www.mijnkinderkamer.nl/nl/producten/hout...etters-12-cm-meisjes  I have tried a lot and search for same errors but no result till now.  Any idea what can be wrong?  regards, Joost")*

Hi Nicolas,

Thanks for the quick reply!
That is activated. Do you want me to send you the errorpage?

regards,
Joost

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

7 years 3 months ago [\#309267](#309267) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[1064 error](/forum/25-install-update/897986-1064-error#309267 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.2.20 -- Error-message(debug-mod must be tuned on) -- : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  Hi,  I have in a specific category of my shop an error when I try to enter the price of a product or when I try to add some variants to it. I got this error message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  You can see it in live here:   www.mijnkinderkamer.nl/nl/producten/hout...etters-12-cm-meisjes  I have tried a lot and search for same errors but no result till now.  Any idea what can be wrong?  regards, Joost")*

Hi,

This indicates that there is an issue with the "categories" restriction setting of one or several of your discounts. Like for example if you deleted a category that was selected in a discount.
Change the line: Code:

if(!isset($products[$key])) {

to; Code:

if(count($catIds) &amp;&amp; !isset($products[$key])) {

in the file administrator/components/com_hikashop/classes/currency.php and that will fix the error.
We'll add the patch on our end too.

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

7 years 3 months ago [\#309286](#309286) by [joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")  Replied by *[joostbloom](/forum/user/29932-joostbloom "View joostbloom's Profile")* on topic *[1064 error](/forum/25-install-update/897986-1064-error#309286 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.2.20 -- Error-message(debug-mod must be tuned on) -- : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  Hi,  I have in a specific category of my shop an error when I try to enter the price of a product or when I try to add some variants to it. I got this error message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 SELECT product&#95;id FROM saqj9&#95;hikashop&#95;product&#95;category WHERE category&#95;id IN ()  You can see it in live here:   www.mijnkinderkamer.nl/nl/producten/hout...etters-12-cm-meisjes  I have tried a lot and search for same errors but no result till now.  Any idea what can be wrong?  regards, Joost")*

Hi Nicolas!

Thanks for the quick and great support!
Everything is working again! Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5Nzk4Ni0xMDY0LWVycm9yP3RtcGw9bWFya2Rvd24=) 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?

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

Time to create page: 0.075 seconds

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