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

#   Error when importing from virtuemart

##

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

Less More

- Posts: 21
- Thank you received: 3
-
-

12 years 4 months ago [\#166319](#166319) by [ssbuchan](/forum/user/33637-ssbuchan "View ssbuchan's Profile")  *[Error when importing from virtuemart](/forum/37-import-export-csv-xls/870154-error-when-importing-from-virtuemart#166319 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3  I'm getting the following error when trying to import from virtuemart:  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 '' at line 1 SQL=INSERT IGNORE INTO &#96;dmqzj&#95;hikashop&#95;category&#96; (&#96;category&#95;id&#96;,&#96;category&#95;parent&#95;id&#96;,&#96;category&#95;type&#96;,&#96;category&#95;name&#96;,&#96;category&#95;description&#96;,&#96;category&#95;published&#96;,&#96;category&#95;ordering&#96;,&#96;category&#95;namekey&#96;,&#96;category&#95;created&#96;,&#96;category&#95;modified&#96;,&#96;category&#95;access&#96;,&#96;category&#95;menu&#96;) VALUES ;  What can I do to fix this?")* was created by *[ssbuchan](/forum/user/33637-ssbuchan "View ssbuchan's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3

I'm getting the following error when trying to import from virtuemart:

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 '' at line 1 SQL=INSERT IGNORE INTO &#96;dmqzj_hikashop_category&#96; (&#96;category_id&#96;,&#96;category_parent_id&#96;,&#96;category_type&#96;,&#96;category_name&#96;,&#96;category_description&#96;,&#96;category_published&#96;,&#96;category_ordering&#96;,&#96;category_namekey&#96;,&#96;category_created&#96;,&#96;category_modified&#96;,&#96;category_access&#96;,&#96;category_menu&#96;) VALUES ;

What can I do to fix this?

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

12 years 4 months ago [\#166376](#166376) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when importing from virtuemart](/forum/37-import-export-csv-xls/870154-error-when-importing-from-virtuemart#166376 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3  I'm getting the following error when trying to import from virtuemart:  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 '' at line 1 SQL=INSERT IGNORE INTO &#96;dmqzj&#95;hikashop&#95;category&#96; (&#96;category&#95;id&#96;,&#96;category&#95;parent&#95;id&#96;,&#96;category&#95;type&#96;,&#96;category&#95;name&#96;,&#96;category&#95;description&#96;,&#96;category&#95;published&#96;,&#96;category&#95;ordering&#96;,&#96;category&#95;namekey&#96;,&#96;category&#95;created&#96;,&#96;category&#95;modified&#96;,&#96;category&#95;access&#96;,&#96;category&#95;menu&#96;) VALUES ;  What can I do to fix this?")*

Hi,

Replace the file "administrator/components/com_hikashop/helpers/importvm.php with the one in the archive enclosed and try again. That should avoid the problem.

*This attachment is hidden for guests.
Please log in or register to see it.*

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

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

Less More

- Posts: 21
- Thank you received: 3
-
-

12 years 4 months ago [\#166391](#166391) by [ssbuchan](/forum/user/33637-ssbuchan "View ssbuchan's Profile")  Replied by *[ssbuchan](/forum/user/33637-ssbuchan "View ssbuchan's Profile")* on topic *[Error when importing from virtuemart](/forum/37-import-export-csv-xls/870154-error-when-importing-from-virtuemart#166391 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3  I'm getting the following error when trying to import from virtuemart:  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 '' at line 1 SQL=INSERT IGNORE INTO &#96;dmqzj&#95;hikashop&#95;category&#96; (&#96;category&#95;id&#96;,&#96;category&#95;parent&#95;id&#96;,&#96;category&#95;type&#96;,&#96;category&#95;name&#96;,&#96;category&#95;description&#96;,&#96;category&#95;published&#96;,&#96;category&#95;ordering&#96;,&#96;category&#95;namekey&#96;,&#96;category&#95;created&#96;,&#96;category&#95;modified&#96;,&#96;category&#95;access&#96;,&#96;category&#95;menu&#96;) VALUES ;  What can I do to fix this?")*

That worked. Thanks!

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

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