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

#   Import issue on Virtumart 2

##

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

Less More

- Posts: 93
- Thank you received: 3
-
-

12 years 6 months ago -  12 years 6 months ago [\#156369](#156369) by [bettston](/forum/user/30280-bettston "View bettston's Profile")  *[Import issue on Virtumart 2](/forum/37-import-export-csv-xls/868291-import-issue-on-virtumart-2#156369 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 MySQL is localhost 5.5.2 Hi Just tried to run an import from VM and all goes well until it gets to category then it generates: ----- An error has occurred.  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 '34),(,35),(,36)' at line 1 SQL=INSERT IGNORE INTO &#96;izkd4&#95;hikashop&#95;vm&#95;cat&#96; (&#96;vm&#95;id&#96;,&#96;hk&#95;id&#96;) VALUES (5,14),(10,15),(11,16),(12,17),(18,18),(6,19),(7,20),(8,21),(9,22),(20,23),(13,24),(14,25),(15,26),(16,27),(17,28),(21,29),(22,30),(23,31),(24,32),(25,33),(,34),(,35),(,36);  Can you explain and let me know what I need to do to fix and get this loaded in, (do I need to empty any tables?)  Many THanks  Tony  update : I have checed the vm category table and the last 3 entries are their 27.28,29 but the routine is not picking them up.")* was created by *[bettston](/forum/user/30280-bettston "View bettston's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3
MySQL is localhost 5.5.2
Hi Just tried to run an import from VM and all goes well until it gets to category then it generates:

---

An error has occurred.

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 '34),(,35),(,36)' at line 1 SQL=INSERT IGNORE INTO &#96;izkd4_hikashop_vm_cat&#96; (&#96;vm_id&#96;,&#96;hk_id&#96;) VALUES (5,14),(10,15),(11,16),(12,17),(18,18),(6,19),(7,20),(8,21),(9,22),(20,23),(13,24),(14,25),(15,26),(16,27),(17,28),(21,29),(22,30),(23,31),(24,32),(25,33),(,34),(,35),(,36);

Can you explain and let me know what I need to do to fix and get this loaded in, (do I need to empty any tables?)

Many THanks

Tony

update : I have checed the vm category table and the last 3 entries are their 27.28,29 but the routine is not picking them up.

Last edit: 12 years 6 months ago by [bettston](/forum/user/30280-bettston "View bettston's Profile").

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

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

Less More

- Posts: 93
- Thank you received: 3
-
-

12 years 6 months ago [\#156477](#156477) by [bettston](/forum/user/30280-bettston "View bettston's Profile")  Replied by *[bettston](/forum/user/30280-bettston "View bettston's Profile")* on topic *[Import issue on Virtumart 2](/forum/37-import-export-csv-xls/868291-import-issue-on-virtumart-2#156477 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 MySQL is localhost 5.5.2 Hi Just tried to run an import from VM and all goes well until it gets to category then it generates: ----- An error has occurred.  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 '34),(,35),(,36)' at line 1 SQL=INSERT IGNORE INTO &#96;izkd4&#95;hikashop&#95;vm&#95;cat&#96; (&#96;vm&#95;id&#96;,&#96;hk&#95;id&#96;) VALUES (5,14),(10,15),(11,16),(12,17),(18,18),(6,19),(7,20),(8,21),(9,22),(20,23),(13,24),(14,25),(15,26),(16,27),(17,28),(21,29),(22,30),(23,31),(24,32),(25,33),(,34),(,35),(,36);  Can you explain and let me know what I need to do to fix and get this loaded in, (do I need to empty any tables?)  Many THanks  Tony  update : I have checed the vm category table and the last 3 entries are their 27.28,29 but the routine is not picking them up.")*

Hi,
I really need some answers, on this, i have a 3 day deadline to convert the entire customers site or i will likely not bet paid, and not being able to import his vm records is stopping any progress.

Please help
Thanks

Tony

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NjgyOTEtaW1wb3J0LWlzc3VlLW9uLXZpcnR1bWFydC0yP3RtcGw9bWFya2Rvd24=) 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 6 months ago [\#156660](#156660) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import issue on Virtumart 2](/forum/37-import-export-csv-xls/868291-import-issue-on-virtumart-2#156660 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 MySQL is localhost 5.5.2 Hi Just tried to run an import from VM and all goes well until it gets to category then it generates: ----- An error has occurred.  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 '34),(,35),(,36)' at line 1 SQL=INSERT IGNORE INTO &#96;izkd4&#95;hikashop&#95;vm&#95;cat&#96; (&#96;vm&#95;id&#96;,&#96;hk&#95;id&#96;) VALUES (5,14),(10,15),(11,16),(12,17),(18,18),(6,19),(7,20),(8,21),(9,22),(20,23),(13,24),(14,25),(15,26),(16,27),(17,28),(21,29),(22,30),(23,31),(24,32),(25,33),(,34),(,35),(,36);  Can you explain and let me know what I need to do to fix and get this loaded in, (do I need to empty any tables?)  Many THanks  Tony  update : I have checed the vm category table and the last 3 entries are their 27.28,29 but the routine is not picking them up.")*

Hi,

Please understand that such issues are not simple to solve. It require time to properly test the problem and find the issue and correct it.

Please replace the file administrator/components/com_hikashop/helpers/importvm.php with the one in this archive:
*This attachment is hidden for guests.
Please log in or register to see it.*

Then try again. You should not get the error anymore.
If you do, please try on the debug mode option of the Joomla configuration and try again and provide all the debug information available on the page at the moment the problem occurs.

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

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

Less More

- Posts: 93
- Thank you received: 3
-
-

12 years 6 months ago -  12 years 6 months ago [\#156702](#156702) by [bettston](/forum/user/30280-bettston "View bettston's Profile")  Replied by *[bettston](/forum/user/30280-bettston "View bettston's Profile")* on topic *[Import issue on Virtumart 2](/forum/37-import-export-csv-xls/868291-import-issue-on-virtumart-2#156702 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 MySQL is localhost 5.5.2 Hi Just tried to run an import from VM and all goes well until it gets to category then it generates: ----- An error has occurred.  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 '34),(,35),(,36)' at line 1 SQL=INSERT IGNORE INTO &#96;izkd4&#95;hikashop&#95;vm&#95;cat&#96; (&#96;vm&#95;id&#96;,&#96;hk&#95;id&#96;) VALUES (5,14),(10,15),(11,16),(12,17),(18,18),(6,19),(7,20),(8,21),(9,22),(20,23),(13,24),(14,25),(15,26),(16,27),(17,28),(21,29),(22,30),(23,31),(24,32),(25,33),(,34),(,35),(,36);  Can you explain and let me know what I need to do to fix and get this loaded in, (do I need to empty any tables?)  Many THanks  Tony  update : I have checed the vm category table and the last 3 entries are their 27.28,29 but the routine is not picking them up.")*

Hi Nicolas,
yes it ran through now without those errors, however as it was going through I did see a few errors saying image already exists which I quess is fine but it still not worked:

1. All categories except for 1 are in twice and only one has a category image
2. virtually no products are showing and the 4 it did import are in the completely wrong category.
3. THe products must exist as I can see them on a customer order with their images.

What do I need to do?

Thanks

Tony

update:
Vat was imported at 2000 not 20 but I have fixed that.
Also I have looked in phymyadmin and all the categories and products are there and the prod/cat refence table looks ok.

I have looked in more detail at the category table and can see the issue, Each category is actual in it 3 times but the last time the category does not point to root it loops in itself, ie category 66 has parent 77 but category 77 has parent 66 .
Is there a way to recreate this table easily?

Thanks

Tony

Last edit: 12 years 6 months ago by [bettston](/forum/user/30280-bettston "View bettston's Profile"). Reason: can see issur

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

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

Less More

- Posts: 93
- Thank you received: 3
-
-

12 years 6 months ago [\#156733](#156733) by [bettston](/forum/user/30280-bettston "View bettston's Profile")  Replied by *[bettston](/forum/user/30280-bettston "View bettston's Profile")* on topic *[Import issue on Virtumart 2](/forum/37-import-export-csv-xls/868291-import-issue-on-virtumart-2#156733 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 MySQL is localhost 5.5.2 Hi Just tried to run an import from VM and all goes well until it gets to category then it generates: ----- An error has occurred.  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 '34),(,35),(,36)' at line 1 SQL=INSERT IGNORE INTO &#96;izkd4&#95;hikashop&#95;vm&#95;cat&#96; (&#96;vm&#95;id&#96;,&#96;hk&#95;id&#96;) VALUES (5,14),(10,15),(11,16),(12,17),(18,18),(6,19),(7,20),(8,21),(9,22),(20,23),(13,24),(14,25),(15,26),(16,27),(17,28),(21,29),(22,30),(23,31),(24,32),(25,33),(,34),(,35),(,36);  Can you explain and let me know what I need to do to fix and get this loaded in, (do I need to empty any tables?)  Many THanks  Tony  update : I have checed the vm category table and the last 3 entries are their 27.28,29 but the routine is not picking them up.")*

Hi Nicolas,
As this project was urgent I have managed to correct all the product category issues by directly amending the product/category cross reference table and the vm category cross reference table and now everything looks pretty good. The only thing that I could not find is which database table contains the links to the category images.

If you could tell me this I think that I may be sorted for now and can at least show my customer some progress.

Thanks

Tony

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 6 months ago [\#156763](#156763) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Import issue on Virtumart 2](/forum/37-import-export-csv-xls/868291-import-issue-on-virtumart-2#156763 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 MySQL is localhost 5.5.2 Hi Just tried to run an import from VM and all goes well until it gets to category then it generates: ----- An error has occurred.  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 '34),(,35),(,36)' at line 1 SQL=INSERT IGNORE INTO &#96;izkd4&#95;hikashop&#95;vm&#95;cat&#96; (&#96;vm&#95;id&#96;,&#96;hk&#95;id&#96;) VALUES (5,14),(10,15),(11,16),(12,17),(18,18),(6,19),(7,20),(8,21),(9,22),(20,23),(13,24),(14,25),(15,26),(16,27),(17,28),(21,29),(22,30),(23,31),(24,32),(25,33),(,34),(,35),(,36);  Can you explain and let me know what I need to do to fix and get this loaded in, (do I need to empty any tables?)  Many THanks  Tony  update : I have checed the vm category table and the last 3 entries are their 27.28,29 but the routine is not picking them up.")*

Hi,

The table in question is "#__hikashop_file", in the column "file_type" you can find the "category" type.

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

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