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

#   Mysql Error on csv import

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

8 years 6 months ago [\#292497](#292497) by [krisi94](/forum/user/48567-krisi94 "View krisi94's Profile")  *[Mysql Error on csv import](/forum/44-mass-actions/894671-mysql-error-on-csv-import#292497 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.0 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Chrome 66.0.3359.139  Hi,  I created a mass action which imports a csv file from server. However, when I try to execute this mass action, I get a mysql error 1064. What can cause this error? I am enclosing a screenshot about the error.  Thanks, Kristóf")* was created by *[krisi94](/forum/user/48567-krisi94 "View krisi94's Profile")*

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.0
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Chrome 66.0.3359.139

Hi,

I created a mass action which imports a csv file from server. However, when I try to execute this mass action, I get a mysql error 1064. What can cause this error?
I am enclosing a screenshot about the error.

Thanks,
Kristóf

- [ ![screenshot.png](/forum/attachment/43636) ](/forum/attachment/43636 "screenshot.png") [ ](/forum/attachment/43636?download=1 "screenshot.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84OTQ2NzEtbXlzcWwtZXJyb3Itb24tY3N2LWltcG9ydD90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

8 years 6 months ago [\#292500](#292500) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mysql Error on csv import](/forum/44-mass-actions/894671-mysql-error-on-csv-import#292500 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.0 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Chrome 66.0.3359.139  Hi,  I created a mass action which imports a csv file from server. However, when I try to execute this mass action, I get a mysql error 1064. What can cause this error? I am enclosing a screenshot about the error.  Thanks, Kristóf")*

Hi,

It's apparently a problem with the categories of the products in your CSV, but hard to say more.
Try changing the line: Code:

$insert[]='('.$entry.','.$status.','.(int)@$olds[$entry]-&gt;ordering.')';

to:
Code:

$insert[]='('.(int)$entry.','.(int)$status.','.(int)@$olds[$entry]-&gt;ordering.')';

in the file administrator/components/com_hikashop/classes/product.php
That should avoid the problem.
Let us know how it goes so that we can include the patch on our end if it helps.

The following user(s) said Thank You: [krisi94](/forum/user/48567-krisi94 "View krisi94's Profile")

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

8 years 6 months ago [\#292550](#292550) by [krisi94](/forum/user/48567-krisi94 "View krisi94's Profile")  Replied by *[krisi94](/forum/user/48567-krisi94 "View krisi94's Profile")* on topic *[Mysql Error on csv import](/forum/44-mass-actions/894671-mysql-error-on-csv-import#292550 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.8.0 -- PHP version -- : 7.1 -- Browser(s) name and version -- : Chrome 66.0.3359.139  Hi,  I created a mass action which imports a csv file from server. However, when I try to execute this mass action, I get a mysql error 1064. What can cause this error? I am enclosing a screenshot about the error.  Thanks, Kristóf")*

Hi,

Thank you very much. It works

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

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