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

#   Import from VM2.6 does not import actual data

##

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

Less More

- Posts: 30
- Thank you received: 1
-
-

11 years 9 months ago [\#192794](#192794) by [hackwar](/forum/user/35377-hackwar "View hackwar's Profile")  *[Import from VM2.6 does not import actual data](/forum/37-import-export-csv-xls/875349-import-from-vm2-6-does-not-import-actual-data#192794 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0  Hi, I've been trying to migrate a website from 2.5 to 3.4 and from VM2.0/2.6 to Hikashop. Unfortunately, the import process from VM to HK does not work. I've tried with the VM 2.0 version and I tried updating first to VM 2.6 and the importing. I also tried to import the data in J2.5 and 3.4.  It sometimes failed with SQL errors and other times the imported data was mostly empty, meaning that no filepaths have been migrated and that all category data is empty. I don't really know where to start. it seems as if the data is not properly retrieved from the database...  Please help. :)  Regards, Hannes")* was created by *[hackwar](/forum/user/35377-hackwar "View hackwar's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4.0

Hi,
I've been trying to migrate a website from 2.5 to 3.4 and from VM2.0/2.6 to Hikashop. Unfortunately, the import process from VM to HK does not work. I've tried with the VM 2.0 version and I tried updating first to VM 2.6 and the importing. I also tried to import the data in J2.5 and 3.4.

It sometimes failed with SQL errors and other times the imported data was mostly empty, meaning that no filepaths have been migrated and that all category data is empty. I don't really know where to start. it seems as if the data is not properly retrieved from the database...

Please help. ![:)](/media/kunena/emoticons/3.png ":)")

Regards,
Hannes

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUzNDktaW1wb3J0LWZyb20tdm0yLTYtZG9lcy1ub3QtaW1wb3J0LWFjdHVhbC1kYXRhP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#192936](#192936) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Import from VM2.6 does not import actual data](/forum/37-import-export-csv-xls/875349-import-from-vm2-6-does-not-import-actual-data#192936 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0  Hi, I've been trying to migrate a website from 2.5 to 3.4 and from VM2.0/2.6 to Hikashop. Unfortunately, the import process from VM to HK does not work. I've tried with the VM 2.0 version and I tried updating first to VM 2.6 and the importing. I also tried to import the data in J2.5 and 3.4.  It sometimes failed with SQL errors and other times the imported data was mostly empty, meaning that no filepaths have been migrated and that all category data is empty. I don't really know where to start. it seems as if the data is not properly retrieved from the database...  Please help. :)  Regards, Hannes")*

Hi,

It will be helpful to know what data is imported or not.

We did not modify the VM import after the 2.3.5 and we do not have special report of VM import failure since then.
The VM2 import has been created few years ago ; with the different VM release, they changed several things in the database structure ; so it's highly possible that there are some differences in the database (structure/content) which give trouble to the import. It is not the first time that we have to modify the import to handle new VM versions.
But we will need more details in order to know what and why.

Regards,

---

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

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

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

Less More

- Posts: 30
- Thank you received: 1
-
-

11 years 9 months ago [\#192941](#192941) by [hackwar](/forum/user/35377-hackwar "View hackwar's Profile")  Replied by *[hackwar](/forum/user/35377-hackwar "View hackwar's Profile")* on topic *[Import from VM2.6 does not import actual data](/forum/37-import-export-csv-xls/875349-import-from-vm2-6-does-not-import-actual-data#192941 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0  Hi, I've been trying to migrate a website from 2.5 to 3.4 and from VM2.0/2.6 to Hikashop. Unfortunately, the import process from VM to HK does not work. I've tried with the VM 2.0 version and I tried updating first to VM 2.6 and the importing. I also tried to import the data in J2.5 and 3.4.  It sometimes failed with SQL errors and other times the imported data was mostly empty, meaning that no filepaths have been migrated and that all category data is empty. I don't really know where to start. it seems as if the data is not properly retrieved from the database...  Please help. :)  Regards, Hannes")*

I looked into this a bit further and noticed a "little" mistake by me: VM was set up to have both english and german content (even though the english content wasn't filled) and the site itself did not have a german content language. After adding that one and selecting german content to be imported, the products and categories were correctly imported. However, the images were not, so I had to write the following query to get those imported, too:
INSERT INTO #__hikashop_file (file_ref_id, file_path, file_type, file_ordering) SELECT hkvmprod.hk_id, REPLACE(vmm.file_url, 'images/stories/virtuemart/product', ''), 'product', vmpm.ordering
FROM #__virtuemart_medias as vmm
LEFT JOIN #__virtuemart_product_medias as vmpm ON vmpm.virtuemart_media_id = vmm.virtuemart_media_id
LEFT JOIN #__hikashop_vm_prod as hkvmprod ON vmpm.virtuemart_product_id = hkvmprod.vm_id
WHERE file_type = 'product'

I also had to copy the files themselfs by hand.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUzNDktaW1wb3J0LWZyb20tdm0yLTYtZG9lcy1ub3QtaW1wb3J0LWFjdHVhbC1kYXRhP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#192944](#192944) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Import from VM2.6 does not import actual data](/forum/37-import-export-csv-xls/875349-import-from-vm2-6-does-not-import-actual-data#192944 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4.0  Hi, I've been trying to migrate a website from 2.5 to 3.4 and from VM2.0/2.6 to Hikashop. Unfortunately, the import process from VM to HK does not work. I've tried with the VM 2.0 version and I tried updating first to VM 2.6 and the importing. I also tried to import the data in J2.5 and 3.4.  It sometimes failed with SQL errors and other times the imported data was mostly empty, meaning that no filepaths have been migrated and that all category data is empty. I don't really know where to start. it seems as if the data is not properly retrieved from the database...  Please help. :)  Regards, Hannes")*

Hi,

Thanks for the report.
Depending the VM version, the images are not stored in the same way so the import have to handle different situations.
The algorithm first try to extract the file name from the "file_meta" and then from "file_url".
I'll add some modifications in order to handle the value of the "media_product_path" from the VM configuration in the "file_url" content ; so the SQL request you made (and the copy of the files) won't be required anymore.

Regards,

---

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

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

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