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

#   Error 1064

##

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

Less More

- Posts: 86
- Thank you received: 2
-
-

11 years 3 months ago -  11 years 3 months ago [\#211835](#211835) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  *[Error 1064](/forum/32-content-creation/878823-error-1064#211835 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Firefox 40.0.2 -- Error-message(debug-mod must be tuned on) -- : Call stack # Function Location 1 JApplicationCms-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/index.php:47 2 JApplicationAdministrator-&gt;doExecute() /home/gi000337/public&#95;html/shop/libraries/cms/application/cms.php:252 3 JApplicationAdministrator-&gt;dispatch() /home/gi000337/public&#95;html/shop/libraries/cms/application/administrator.php:152 4 JComponentHelper::renderComponent() /home/gi000337/public&#95;html/shop/libraries/cms/application/administrator.php:98 5 JComponentHelper::executeComponent() /home/gi000337/public&#95;html/shop/libraries/cms/component/helper.php:372 6 require&#95;once() /home/gi000337/public&#95;html/shop/libraries/cms/component/helper.php:392 7 hikashopController-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/hikashop.php:54 8 JControllerLegacy-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1527 9 hikashopController-&gt;apply() /home/gi000337/public&#95;html/shop/libraries/legacy/controller/legacy.php:728 10 hikashopController-&gt;store() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1299 11 hikashopProductClass-&gt;saveForm() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1363 12 hikashopProductClass-&gt;backSaveForm() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/classes/product.php:50 13 JDatabase-&gt;query() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/classes/product.php:574 14 JDatabaseDriverMysql-&gt;execute() /home/gi000337/public&#95;html/shop/libraries/joomla/database/database.php:33  Hello. I'm trying to load products and get an error 1064:  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 'ELSE ordering END WHERE variant&#95;characteristic&#95;id IN () AND variant&#95;product&#95;id =' at line 1 SQL=UPDATE ts2mf&#95;hikashop&#95;variant SET ordering = CASE variant&#95;characteristic&#95;id ELSE ordering END WHERE variant&#95;characteristic&#95;id IN () AND variant&#95;product&#95;id = 2  This happens so much with a new product, like when I edit an existing product.  Thank you very much in advance for your help.")* was created by *[vilo](/forum/user/7826-vilo "View vilo's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.44
-- Browser(s) name and version -- : Firefox 40.0.2
-- Error-message(debug-mod must be tuned on) -- : Call stack
\# Function Location
1 JApplicationCms-&gt;execute() /home/gi000337/public_html/shop/administrator/index.php:47
2 JApplicationAdministrator-&gt;doExecute() /home/gi000337/public_html/shop/libraries/cms/application/cms.php:252
3 JApplicationAdministrator-&gt;dispatch() /home/gi000337/public_html/shop/libraries/cms/application/administrator.php:152
4 JComponentHelper::renderComponent() /home/gi000337/public_html/shop/libraries/cms/application/administrator.php:98
5 JComponentHelper::executeComponent() /home/gi000337/public_html/shop/libraries/cms/component/helper.php:372
6 require_once() /home/gi000337/public_html/shop/libraries/cms/component/helper.php:392
7 hikashopController-&gt;execute() /home/gi000337/public_html/shop/administrator/components/com_hikashop/hikashop.php:54
8 JControllerLegacy-&gt;execute() /home/gi000337/public_html/shop/administrator/components/com_hikashop/helpers/helper.php:1527
9 hikashopController-&gt;apply() /home/gi000337/public_html/shop/libraries/legacy/controller/legacy.php:728
10 hikashopController-&gt;store() /home/gi000337/public_html/shop/administrator/components/com_hikashop/helpers/helper.php:1299
11 hikashopProductClass-&gt;saveForm() /home/gi000337/public_html/shop/administrator/components/com_hikashop/helpers/helper.php:1363
12 hikashopProductClass-&gt;backSaveForm() /home/gi000337/public_html/shop/administrator/components/com_hikashop/classes/product.php:50
13 JDatabase-&gt;query() /home/gi000337/public_html/shop/administrator/components/com_hikashop/classes/product.php:574
14 JDatabaseDriverMysql-&gt;execute() /home/gi000337/public_html/shop/libraries/joomla/database/database.php:33

Hello. I'm trying to load products and get an error 1064:

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 'ELSE ordering END WHERE variant_characteristic_id IN () AND variant_product_id =' at line 1 SQL=UPDATE ts2mf_hikashop_variant SET ordering = CASE variant_characteristic_id ELSE ordering END WHERE variant_characteristic_id IN () AND variant_product_id = 2

This happens so much with a new product, like when I edit an existing product.

Thank you very much in advance for your help.

Last edit: 11 years 3 months ago by [vilo](/forum/user/7826-vilo "View vilo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODc4ODIzLWVycm9yLTEwNjQ/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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#211837](#211837) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Error 1064](/forum/32-content-creation/878823-error-1064#211837 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Firefox 40.0.2 -- Error-message(debug-mod must be tuned on) -- : Call stack # Function Location 1 JApplicationCms-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/index.php:47 2 JApplicationAdministrator-&gt;doExecute() /home/gi000337/public&#95;html/shop/libraries/cms/application/cms.php:252 3 JApplicationAdministrator-&gt;dispatch() /home/gi000337/public&#95;html/shop/libraries/cms/application/administrator.php:152 4 JComponentHelper::renderComponent() /home/gi000337/public&#95;html/shop/libraries/cms/application/administrator.php:98 5 JComponentHelper::executeComponent() /home/gi000337/public&#95;html/shop/libraries/cms/component/helper.php:372 6 require&#95;once() /home/gi000337/public&#95;html/shop/libraries/cms/component/helper.php:392 7 hikashopController-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/hikashop.php:54 8 JControllerLegacy-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1527 9 hikashopController-&gt;apply() /home/gi000337/public&#95;html/shop/libraries/legacy/controller/legacy.php:728 10 hikashopController-&gt;store() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1299 11 hikashopProductClass-&gt;saveForm() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1363 12 hikashopProductClass-&gt;backSaveForm() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/classes/product.php:50 13 JDatabase-&gt;query() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/classes/product.php:574 14 JDatabaseDriverMysql-&gt;execute() /home/gi000337/public&#95;html/shop/libraries/joomla/database/database.php:33  Hello. I'm trying to load products and get an error 1064:  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 'ELSE ordering END WHERE variant&#95;characteristic&#95;id IN () AND variant&#95;product&#95;id =' at line 1 SQL=UPDATE ts2mf&#95;hikashop&#95;variant SET ordering = CASE variant&#95;characteristic&#95;id ELSE ordering END WHERE variant&#95;characteristic&#95;id IN () AND variant&#95;product&#95;id = 2  This happens so much with a new product, like when I edit an existing product.  Thank you very much in advance for your help.")*

Hi,

Are you sure that you're using the latest build ?
And do you have some overrides for the back product views ?

Because the code which generate the SQL is Code:

$query .= ' ELSE ordering END WHERE variant_characteristic_id IN ('.implode(',', $product-&gt;characteristics).') AND variant_product_id = '.(int)$status;

But that code is in a block Code:

if(hikashop_acl('product/edit/characteristics') &amp;&amp; !empty($product-&gt;characteristics)) {

So it means that your variable is in the same time, not empty (because it enter into the "if") and empty (because the result of the implode is an empty string).
I have to admit that I don't understand.

Regards,

---

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

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

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

Less More

- Posts: 86
- Thank you received: 2
-
-

11 years 3 months ago [\#211939](#211939) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  Replied by *[vilo](/forum/user/7826-vilo "View vilo's Profile")* on topic *[Error 1064](/forum/32-content-creation/878823-error-1064#211939 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Firefox 40.0.2 -- Error-message(debug-mod must be tuned on) -- : Call stack # Function Location 1 JApplicationCms-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/index.php:47 2 JApplicationAdministrator-&gt;doExecute() /home/gi000337/public&#95;html/shop/libraries/cms/application/cms.php:252 3 JApplicationAdministrator-&gt;dispatch() /home/gi000337/public&#95;html/shop/libraries/cms/application/administrator.php:152 4 JComponentHelper::renderComponent() /home/gi000337/public&#95;html/shop/libraries/cms/application/administrator.php:98 5 JComponentHelper::executeComponent() /home/gi000337/public&#95;html/shop/libraries/cms/component/helper.php:372 6 require&#95;once() /home/gi000337/public&#95;html/shop/libraries/cms/component/helper.php:392 7 hikashopController-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/hikashop.php:54 8 JControllerLegacy-&gt;execute() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1527 9 hikashopController-&gt;apply() /home/gi000337/public&#95;html/shop/libraries/legacy/controller/legacy.php:728 10 hikashopController-&gt;store() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1299 11 hikashopProductClass-&gt;saveForm() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/helpers/helper.php:1363 12 hikashopProductClass-&gt;backSaveForm() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/classes/product.php:50 13 JDatabase-&gt;query() /home/gi000337/public&#95;html/shop/administrator/components/com&#95;hikashop/classes/product.php:574 14 JDatabaseDriverMysql-&gt;execute() /home/gi000337/public&#95;html/shop/libraries/joomla/database/database.php:33  Hello. I'm trying to load products and get an error 1064:  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 'ELSE ordering END WHERE variant&#95;characteristic&#95;id IN () AND variant&#95;product&#95;id =' at line 1 SQL=UPDATE ts2mf&#95;hikashop&#95;variant SET ordering = CASE variant&#95;characteristic&#95;id ELSE ordering END WHERE variant&#95;characteristic&#95;id IN () AND variant&#95;product&#95;id = 2  This happens so much with a new product, like when I edit an existing product.  Thank you very much in advance for your help.")*

Jerome:

I just downloaded the latest version of Hickashop and reinstall it and it works. Possibly an error has occurred in the original installation.

Thank you very much!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODc4ODIzLWVycm9yLTEwNjQ/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.052 seconds

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