Products additional images migration from Virtuemart 1 to Virtuemart 2 -solution

Started by werian, November 01, 2012, 22:51:43 PM

Previous topic - Next topic


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?


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?


A little more info from error log
Sat Jan 05 02:42:09 2013] [warn] [client] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/ on line 106, referer:

which refers to code
$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  :-\


New version of plugin - I found SQL bug. Now plugin should be fine.
Thanks for @FrankA.


Version 1.3 allows you rename ".JPG" images to ".jpg".
".JPG" don't works with Virtuemart 2!


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:

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:



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.


..followed the install plugin - started the script.

1300 thumbnails generated

But no additional images in products added.. :-[
Joomla 3.x | VirtueMart 4.0.12 107771 | HORME3 PRO 1.9.6 / 2.0
VirtueMart 4.2.4 | Joomla 4.4.1 | PHP 8.1 | Vp_neoteric 1.3


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


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?


Quote from: werian on November 01, 2012, 22:51:43 PM
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:
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

You can support Community by voting for Project on the JED
Join us at