VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: binary on November 14, 2011, 16:43:08 PM

Title: Images did not migrate
Post by: binary on November 14, 2011, 16:43:08 PM
Hello:

When migrating our virtuemart 1.1.9 DB to VM 2.0 RC2, the image locations did not migrate to the new RC2 DB.  I copied the images to the proper images directory however when I go to edit the product and look at the product image tab, there is no URL or file name listed for all our product images.

How can I go about migrating the product images to our database short of reinstall and remigrating the data again?

Thanks.. we have 3000+ products so this is very important that we do it automatically.  I am great with SQL so if there is a way to cleanly do it through SQL queries please let me know.

Title: Re: Images did not migrate
Post by: PRO on November 14, 2011, 16:47:04 PM
you have to click migrate many times.
especially with 3000 products.

I have 350 products and know I had to do it atleast 4 times

Title: Re: Images did not migrate
Post by: binary on November 14, 2011, 16:57:57 PM
Thank you for your reply.  Migrating a second time won't harm anything?
Title: Re: Images did not migrate
Post by: PRO on November 14, 2011, 17:00:59 PM
no, you should read the messages that occur after.

Normally, it tells you to migrate again
Title: Re: Images did not migrate
Post by: binary on November 14, 2011, 17:53:10 PM
I have tried to migrate multiple times, and about 20% of the images finally appeared.  But after about 10 times trying to migrate, I'm not getting any more images appearing.  Any other suggestions?

Thank you for your help so far..
Title: Re: Images did not migrate
Post by: PRO on November 14, 2011, 18:12:34 PM
any special characters in the filenames etc? what language?
Title: Re: Images did not migrate
Post by: binary on November 14, 2011, 20:33:56 PM
Thank your for your reply.

No special characters in filenames.  Filenames are hexidecimal numbers followed by .jpg

Language is English.

Title: Re: Images did not migrate
Post by: binary on November 14, 2011, 20:38:34 PM
I am receiving some warnings in the migration though:

slug was not unique in table #__virtuemart_products, added random number: product-one1189641421
slug was not unique in table #__virtuemart_products, added random number: product-two1025202362
slug was not unique in table #__virtuemart_products, added random number: product-three1350490027
slug was not unique in table #__virtuemart_products, added random number: product-four783368690
..
etc..
..


I renamed the original product names to product-one, product-two, etc for demostration purposes in the forum..
Title: Re: Images did not migrate
Post by: PRO on November 14, 2011, 20:38:48 PM
is dynamic thumbnails turned on?

both small and large images are not there?
Title: Re: Images did not migrate
Post by: binary on November 14, 2011, 21:30:34 PM
Yes, dynamic thumbnails are turned on, and small and large images not there for 75% of the products. It just gives me this for the image "http://ourdomain.com/components/com_virtuemart/assets/images/vmgeneral/noimage.gif"

What is the best way to dump all the products and try again?  Maybe something is messed.

Title: Re: Images did not migrate
Post by: PRO on November 15, 2011, 14:16:00 PM
backup the site.

THEN, emty all the virtuemart tables

NOT vm_  then go again.

OLD vmart tables start with   _vm
NEW, vmart tables start with _virtuemart


Title: Re: Images did not migrate
Post by: binary on November 15, 2011, 17:07:34 PM
Thanks.  And where should the images be?  Should the images be copied to the new images directory where VM2 wants them, or will the migration transfer them from the old shop_images directory where VM1 wanted them?

If the migration tool does not find the physical image file, does it still migrate the image name/path for the products in the database?

Title: Re: Images did not migrate
Post by: PRO on November 15, 2011, 17:12:50 PM
MOVE them to new standard joomla images folder

virtuemart. Just like it says in the configuration. Dont use old folders.


Quote from: binary on November 14, 2011, 20:38:34 PM
I am receiving some warnings in the migration though:

slug was not unique in table #__virtuemart_products, added random number: product-one1189641421
slug was not unique in table #__virtuemart_products, added random number: product-two1025202362
slug was not unique in table #__virtuemart_products, added random number: product-three1350490027
slug was not unique in table #__virtuemart_products, added random number: product-four783368690
..
etc..
..
I renamed the original product names to product-one, product-two, etc for demostration purposes in the forum..


'slug" is the alias for the SEF url. They have to be unique