VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Courtland on May 30, 2012, 20:55:22 PM

Title: image path problems
Post by: Courtland on May 30, 2012, 20:55:22 PM
Hello I am running VM 2.0.6 on joomla 1.5.23 and I am running into an error I have seen on some other posts but no solution yet. When I click on my only published category (in the frontend) I get an error"vmError: Couldnt create thumb, file not found /home4/xxxxxxx/public_html/60/qb/images/stories/virtuemart/product/images/stories/virtuemart/category/fc2f001413876a374484df36ed9cf775.jpg" site is not live so I cant provide link but my issue is clear to me the path is wrong...

"images/stories/virtuemart/category/fc2f001413876a374484df36ed9cf775.jpg" <--- this part is all good. This is where my image is but why is.......

"images/stories/virtuemart/product/"  ...... in front of it?

These are two seperate paths... "images/stories/virtuemart/product/" does not have "images/stories/virtuemart/category/fc2f001413876a374484df36ed9cf775.jpg" in it.

This was not an issue last night when I went home so needless to say I am completely lost.  :o

Solved this, but maybe someone can still explain why this worked.... I turned off "Dynamic tuhmbnail resizing"...I saw this as a possible fix on another post but couldn't find the option in virtuemart backend till now (its in the templates tab of the VM configuation if your looking)
Title: Re: image path problems
Post by: Milbo on May 30, 2012, 22:54:45 PM
an unsolved problem. Intersting in your case is that it tried to use the wrong path, the product instead of category. Other people had cutted paths.
Title: Re: image path problems
Post by: srajca on June 06, 2012, 23:06:14 PM
So how would I go about and use "cutted paths".
I am trying to add a link to the product_image.php but then the path to the image is all messed up. What am I doing wrong. Please look at the code bellow from templates/mytemplate/html/com_virtuemart/productdetails/product_images.php
<a href='<?php echo $this->product->images[0]->displayMediaFull?>' class = 'cloud-zoom' id='zoom1'
            rel="adjustX: 10, adjustY:-4">
        <img src="<?php echo $this->product->images[0]->file_url_thumb?>" alt='' title="<?php echo $this->product->product_name ?>" />
        </a>

Thank you,
Davor