VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: mark R on October 27, 2011, 21:54:58 PM

Title: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 27, 2011, 21:54:58 PM
Hi all,
I have successfully migrated my data products/categories etc.. but i appear to have found a snag with my migrated categories....
On the categories i have transferred i cannot add category pictures?????? It uploads but doesn't show on my browse pages.
If i create a new category with an image it works ok?
Any ideas??
Many thanks
Mark
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: PRO on October 27, 2011, 23:02:11 PM
is there something in the database for the field?
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 27, 2011, 23:24:43 PM
Hi BanquetTables Pro,

as far as i can see all is ok??

virtuemart_categories :- looks ok
virtuemart_category_medias :- looks ok
virtuemart_medias :- looks ok

but my images are still not showing??

many thanks for your help
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: PRO on October 28, 2011, 13:39:28 PM
dyanamic thumbnails turned on?
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 28, 2011, 15:52:47 PM
yes... i have dynamic thumbnails turned on...
I have clicked create thumbnail which creates the thumbnail in the category/resized directory

It also displays the image in the media library, but it does not have anything in the Role column?? (although is says category in the actual table (phpmyadmin))

Thanks again.
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: PRO on October 28, 2011, 16:11:32 PM
is there a vendor /ownership difference?

Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 28, 2011, 16:27:31 PM
???
I have multivendor turned off, is there something else i should check?
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: PRO on October 28, 2011, 17:36:42 PM
so is the image url in the database for the old category?
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 28, 2011, 17:58:46 PM
I have just uploaded a image to an old category.
The url has been inserted into the virtuemart_medias table.
and also the thumb has been created in images/stories/virtuemart/category/resized/

which i can view if i enter its address directly into the address bar.

thanks again
mark
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: PRO on October 28, 2011, 18:13:36 PM
do you have the "file published" checked?

AND what version are you using?

and have you tried synchorize media?
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 28, 2011, 23:18:38 PM
I have synchronised several times... and i have just updated to k and still have the issue

Sent from my Transformer TF101 using Tapatalk
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: Milbo on October 29, 2011, 00:48:45 AM
Quote from: mark R on October 27, 2011, 21:54:58 PM
On the categories i have transferred i cannot add category pictures?????? It uploads but doesn't show on my browse pages.
If i create a new category with an image it works ok?
So the migrated categories behave different than the fresh created ones. okey

But what do you mean with, "cannot add category pictures? It uploads but doesnt show on my browse pages".

How do you know that it uploads? Does the image appear then as attached image in the category edit view (BE). Because when you want to test your images, you shouldnt look on the browse page, you must be sure that the image is attached to the category.
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 29, 2011, 10:02:31 AM
Hi all,

When i am in edit category i select an image vie choose, click on the ulpoad and click save.
The image then appears in the edit category images tab, but i dont see an option to attache image ?
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: Milbo on October 29, 2011, 11:45:57 AM
Use a space in the search. Be aware you attach images. The uploading option is a kind of "finetuning". I would mainly use the media synchroniser.
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 29, 2011, 17:00:52 PM
nope still no joy.
I have clicked edit category searched for image, clicked on image and then clicked save.
Image displays on the category edit page but not on the shop browse/view pages?
image and thumb exists in the image directories.

thanks again

Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 30, 2011, 16:51:17 PM
it appears i have the same problem with new categories.

If I create a category with an image it is ok.
If I them delete that image from the new category (click save) I am then unable to add an image to the new categorie?

any help would be much appreciated
Thanks again
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on October 31, 2011, 19:07:00 PM
It appears to be a problem with mootools and jquery...any ideas how to solve?
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: Milbo on November 01, 2011, 11:37:32 AM
hmm disable mootools :-), sorry I dont know.
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on November 01, 2011, 16:26:31 PM
Hi Milbo,

I have had a play with the view page template (category/tmpl/default.php)

and if i change the line which calls the category image (taking code from the product line(which works))

echo $category->images[0]->displayMediaThumb("",false);
to
echo $category->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');

although this breaks the link to the category the image displays ok?

Any help or pointing in the right direction would be much appreciated.

Thanks again
mark
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: PRO on November 01, 2011, 18:52:32 PM
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
               <?php echo $category->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="none"');?>
               </a>
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on November 01, 2011, 22:25:54 PM
Many thanks for your reply BanquetTable .pro but unfortunately the <a href is not working on the category image.
my original problem if that for some reason the category images are not displaying in the frontend?, but if i make the above tweaks the images would appear but the links to the actual category does not work from the picture although it works from the category name.

thanks again
Title: Re: Migration from vm1 -> vm2. Problem with category images
Post by: mark R on November 04, 2011, 08:23:01 AM
Resolved.

Sent from my Transformer TF101 using Tapatalk