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

#   Error on login

##

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

9 months 2 weeks ago [\#370354](#370354) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  *[Error on login](/forum/33-customers/910095-error-on-login#370354 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5 -- 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  Hello Nicolas,  I am experiencing a SQL syntax error when a registered user logs into the frontend while having items in their cart.  The error message: 1064 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  Steps to reproduce: Log in as a user and add products to the cart. Log out (the cart is saved in the database). Attempt to log back in.  The error appears immediately after the login action, and the user is blocked by the error page.  Observations:  If I manually delete the cart entries for that user via the Joomla administrator, the user can log in again without issues.  The error seems to be caused by an empty IN() clause in a SQL query, likely where HikaShop tries to retrieve or merge cart data, resulting in syntax like WHERE something IN ().  Could you please investigate this?  Best regards, Jeroen")* was created by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")*

-- HikaShop version -- : 6.3.0
-- Joomla version -- : 5
-- 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

Hello Nicolas,

I am experiencing a SQL syntax error when a registered user logs into the frontend while having items in their cart.

The error message: 1064 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

Steps to reproduce:
Log in as a user and add products to the cart.
Log out (the cart is saved in the database).
Attempt to log back in.

The error appears immediately after the login action, and the user is blocked by the error page.

Observations:

If I manually delete the cart entries for that user via the Joomla administrator, the user can log in again without issues.

The error seems to be caused by an empty IN() clause in a SQL query, likely where HikaShop tries to retrieve or merge cart data, resulting in syntax like WHERE something IN ().

Could you please investigate this?

Best regards,
Jeroen

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MTAwOTUtZXJyb3Itb24tbG9naW4/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 months 2 weeks ago [\#370357](#370357) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error on login](/forum/33-customers/910095-error-on-login#370357 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5 -- 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  Hello Nicolas,  I am experiencing a SQL syntax error when a registered user logs into the frontend while having items in their cart.  The error message: 1064 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  Steps to reproduce: Log in as a user and add products to the cart. Log out (the cart is saved in the database). Attempt to log back in.  The error appears immediately after the login action, and the user is blocked by the error page.  Observations:  If I manually delete the cart entries for that user via the Joomla administrator, the user can log in again without issues.  The error seems to be caused by an empty IN() clause in a SQL query, likely where HikaShop tries to retrieve or merge cart data, resulting in syntax like WHERE something IN ().  Could you please investigate this?  Best regards, Jeroen")*

Hi,

I do not have the problem on my end and the error message is not precise enough to understand where the problem is.
Can you reproduce the issue with the "debug system" setting of the Joomla configuration page activated and provide the full error message with the call stack ? That will help us understand what is going on.

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

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

9 months 2 weeks ago [\#370359](#370359) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  Replied by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")* on topic *[Error on login](/forum/33-customers/910095-error-on-login#370359 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5 -- 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  Hello Nicolas,  I am experiencing a SQL syntax error when a registered user logs into the frontend while having items in their cart.  The error message: 1064 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  Steps to reproduce: Log in as a user and add products to the cart. Log out (the cart is saved in the database). Attempt to log back in.  The error appears immediately after the login action, and the user is blocked by the error page.  Observations:  If I manually delete the cart entries for that user via the Joomla administrator, the user can log in again without issues.  The error seems to be caused by an empty IN() clause in a SQL query, likely where HikaShop tries to retrieve or merge cart data, resulting in syntax like WHERE something IN ().  Could you please investigate this?  Best regards, Jeroen")*

I disabled the Hikashop GA4 plugin and this seems to work:

\#
\#&lt;?php die('Forbidden.'); ?&gt;
\#Date: 2026-02-10 09:04:54 UTC
\#Software: Joomla! 5.4.2 Stable [ Kutegemea ] 6-January-2026 16:00 GMT

\#Fields: datetime priority clientip category message
2026-02-10T09:04:54+00:00 CRITICAL 83.86.253.48 error Uncaught Throwable of type mysqli_sql_exception thrown with 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". Stack trace: #0 [ROOT]/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php(138): mysqli-&gt;prepare()
\#1 [ROOT]/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php(972): Joomla\Database\Mysqli\MysqliStatement-&gt;__construct()
\#2 [ROOT]/libraries/vendor/joomla/database/src/DatabaseDriver.php(1780): Joomla\Database\Mysqli\MysqliDriver-&gt;prepareStatement()
\#3 [ROOT]/plugins/system/hikashop_ga4/hikashop_ga4.php(856): Joomla\Database\DatabaseDriver-&gt;setQuery()
\#4 [ROOT]/plugins/system/hikashop_ga4/hikashop_ga4.php(869): plgSystemHikashop_ga4-&gt;_isCartPage()
\#5 [ROOT]/plugins/system/hikashop_ga4/hikashop_ga4.php(75): plgSystemHikashop_ga4-&gt;getCartJS()
\#6 [ROOT]/administrator/components/com_hikashop/pluginCompatJ4.php(68): plgSystemHikashop_ga4-&gt;onBeforeCompileHead()
\#7 [ROOT]/libraries/vendor/joomla/event/src/Dispatcher.php(454): hikashopJoomlaPlugin-&gt;__call()
\#8 [ROOT]/libraries/src/Document/Renderer/Html/MetasRenderer.php(62): Joomla\Event\Dispatcher-&gt;dispatch()
\#9 [ROOT]/libraries/src/Document/HtmlDocument.php(578): Joomla\CMS\Document\Renderer\Html\MetasRenderer-&gt;render()
\#10 [ROOT]/libraries/src/Document/HtmlDocument.php(897): Joomla\CMS\Document\HtmlDocument-&gt;getBuffer()
\#11 [ROOT]/libraries/src/Document/HtmlDocument.php(650): Joomla\CMS\Document\HtmlDocument-&gt;_renderTemplate()
\#12 [ROOT]/libraries/src/Application/CMSApplication.php(1120): Joomla\CMS\Document\HtmlDocument-&gt;render()
\#13 [ROOT]/libraries/src/Application/SiteApplication.php(745): Joomla\CMS\Application\CMSApplication-&gt;render()
\#14 [ROOT]/libraries/src/Application/CMSApplication.php(309): Joomla\CMS\Application\SiteApplication-&gt;render()
\#15 [ROOT]/includes/app.php(58): Joomla\CMS\Application\CMSApplication-&gt;execute()
\#16 [ROOT]/index.php(51): require_once('...')
\#17 {main}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MTAwOTUtZXJyb3Itb24tbG9naW4/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 months 2 weeks ago [\#370365](#370365) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error on login](/forum/33-customers/910095-error-on-login#370365 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5 -- 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  Hello Nicolas,  I am experiencing a SQL syntax error when a registered user logs into the frontend while having items in their cart.  The error message: 1064 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  Steps to reproduce: Log in as a user and add products to the cart. Log out (the cart is saved in the database). Attempt to log back in.  The error appears immediately after the login action, and the user is blocked by the error page.  Observations:  If I manually delete the cart entries for that user via the Joomla administrator, the user can log in again without issues.  The error seems to be caused by an empty IN() clause in a SQL query, likely where HikaShop tries to retrieve or merge cart data, resulting in syntax like WHERE something IN ().  Could you please investigate this?  Best regards, Jeroen")*

Hi,

Thank you. I've pushed a new version of the plugin with a patch for this. Please update the plugin and the error will not appear.

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

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

Time to create page: 0.055 seconds

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