Author Topic: Products additional images migration from Virtuemart 1 to Virtuemart 2 -solution  (Read 30576 times)

FrankA

  • Full Member
  • ***
  • Posts: 225
Hmm, not worked for me at all?

I have these files with right prefix from vm1.5
 Structure j25_vm_category
Structure j25_vm_category_xref
Structure j25_vm_manufacturer
Structure j25_vm_manufacturer_category
Structure j25_vm_product
Structure j25_vm_product_category_xref
Structure j25_vm_product_mf_xref
Structure j25_vm_product_price
Structure j25_vm_product_relations

Looked at source of php and do not see need for others... so what might be missing?

FrankA

  • Full Member
  • ***
  • Posts: 225
Backed up... reinstalled VM and ran again with same results.  Tried the thumbnail creation and that threw up an internal server error... but have memory set to 128M.

This site has 800 items and about 3,000 images so not the end of the world if I have to add pics back in manually but this seems such a simple task I cannot understand why it fails. Also the next site to be migrated has 5,000 items and 20 or 30k images... so need to solve for that.

Is this going to be integrated into a future VM migration as it seems odd that if everytime a new VM version we have to manually rebuild so much of the site?

FrankA

  • Full Member
  • ***
  • Posts: 225
A little more info from error log
Code: [Select]
Sat Jan 05 02:42:09 2013] [warn] [client 92.152.xx.xxx] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/XXXXX.info/httpdocs/jupgrade/plugins/system/vm1_additional_images_migrator/vm1_additional_images_migrator.php on line 106, referer: http://XXZZZZZ.info/jupgrade/index.php?convertVm1Images
which refers to code
Code: [Select]
$product_images = $db->loadObjectList();
foreach($product_images as $product_image)

So I presume it looks in the old table  for each product to retrieve the file name and add a record to the new version table. I did notice that in vm_product_files it includes path in file name! But I guess that is supposed to be...

Anyway I am lost on how to resolve this one  :-\

werian

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 34
New version of plugin - I found SQL bug. Now plugin should be fine.
Thanks for @FrankA.

werian

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 34
Version 1.3 allows you rename ".JPG" images to ".jpg".
".JPG" don't works with Virtuemart 2!

traintracts

  • Beginner
  • *
  • Posts: 6
I tired to do this.  I downloaded the plug in and installed it in my joomla 2.5 backend and I put the link in the browser, like you said:  http://www.your_vm2_site.com/index.php?convertVm1Images

And I got a big pop up screen that says:  "server not found."   I am sad.  How can I make it work?

My e-mail is:  susan.mulford@gmail.com

werian

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 34
Did you enabled pluign in Joomla backend?

FrankA

  • Full Member
  • ***
  • Posts: 225
I presume that this is intended to run on joomla 2.5?

Migrations from VM1 to VM2 were being done after upgrading joomla to 2.05... but currently advice 'seems' to have been quietly changed to migrating VM1 to VM2 on jommla 1.5.25 (or 1.5.26 depending which solution you read). Is there any impact on this plug-in werian, will it work on joomla 1.5?

I still have one major site to upgrade 1.5 to 2.5 and vm 1.1.9 to 2.

Also I just used this script again on a fairly restricted shared server vm migration. Took several attempts as the server gave up on it most attempts but it did complete the job in the end, but server never let script get back to display result.... I think some images never got reset... will have to do a manual check on each product... but certainly the bulk went through OK.

lostmail

  • Jr. Member
  • **
  • Posts: 199
..followed the install plugin - started the script.

1300 thumbnails generated

But no additional images in products added.. :-[
Joomla 3.x + VM 3.0.16

FrankA

  • Full Member
  • ***
  • Posts: 225
Thumbnail generation is a separate function in the tool. You need to use button left to add the additional images. Note also you need the vm1 tables renamed with j25 prefix... same prefix as your joomla install

shikar1860

  • Beginner
  • *
  • Posts: 14
Migrating additional images with this plugin doesn't work for me.
I get an error message:

Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/mysite/plugins/system/vm1_additional_images_migrator/vm1_additional_images_migrator.php on line 132

This line is: foreach($product_images as $product_image)

Does anyone have an idea how to fix this?

Spule

  • Beginner
  • *
  • Posts: 3
Hello there!

Few days ago I just develop & release simple plugin, which helps you with migration process of additional images from Virtuemart 1 to Virtuemart 2.
Here is download: http://joomstuff.com/free/plg_vm1_additional_images_migrator.php
Use this plugin after VM 1 => VM 2 migration process, when your old VM 1 tables still exists into target, new database.
Plugin migrates only product additional images, not the first one, which is migrated with standard VM 1 => VM 2 migration process.


The Link to the addtional images migrator is unfortunately broken. Is there annother option were you can download it?

Maxim Pishnyak

  • Virtuemart 2 is quite bugfree now
  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
  • Virtuemart 2 is quite bugfree now
    • Virtuemart Ukraine division
Yes.

[attachment cleanup by admin]
Virtuemart 2 is quite bugfree now. You can support Community by voting for Project on the JED
http://extensions.joomla.org/extensions/e-commerce/shopping-cart/129/review
Join us in
https://www.facebook.com/virtuemart
https://twitter.com/virtuemart

Spule

  • Beginner
  • *
  • Posts: 3
Thank you very much!  :)

Maxim Pishnyak

  • Virtuemart 2 is quite bugfree now
  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
  • Virtuemart 2 is quite bugfree now
    • Virtuemart Ukraine division
You're welcome!
Virtuemart 2 is quite bugfree now. You can support Community by voting for Project on the JED
http://extensions.joomla.org/extensions/e-commerce/shopping-cart/129/review
Join us in
https://www.facebook.com/virtuemart
https://twitter.com/virtuemart