News:

Support the VirtueMart project and become a member

Main Menu

media bug

Started by spoupout, May 13, 2015, 09:41:43 AM

Previous topic - Next topic

spoupout

Hi gus,

first of all, this is my first post on this forum, so please pardon me if I'm doing it wrong ; I didn't find any subject describing a similar problem to mine on this forum, so I hope creating a new topic won't be against forum's rule.

Anyway, here is my configuration :

Joomla! 3.x
PHP 5.5.12
Apache 2.4.9
Virtuemart 2.6.14


My problem is the following : since a few days, I've been working on a website which was reworked a few weeks ago. On the preprod environment, none of the resized pictures are displaying.

I mean, all the thumbs have been created (no idea if it was automatically or uploaded manually), they are at the right path (comparing with the prod environment, where the old version is still working), but on the whole website, all the thumb have the same value of 'src' (while displaying HTML code) : "<server address>/components/com_virtuemart/assets/images/vmgeneral/filetype_jpg.png" instead of something like "/images/stories/virtuemart/product/resized/<some_random_stuff>.jpg"


I tried to figure out why virtuemart struggles so hard to display pictures which are at their right place, and I probably found a clue : each time I go to the "media" panel in VM admin page, I get the same error (one per product, which is a lot).

vmError: Couldnt create thumb, file not found "<server address>/images/stories/virtuemart/vendor/images/stories/virtuemart/product/<random ref>.jpg"


Which is perfectly normal, because this path makes no sense. It looks like the concatenation of the absolute path of the website root + the relative path to the vendor media + relative path to the product media

Both of those relative paths are set in the VM configuration panel, but here is my question :

How the hell am I supposed to figure out where VM goes wrong and to correct it ? I have no idea where, neither in the administration panel nor in the code (I am able to update php code, but editing VM files seems the best way to be in troubles next time VM will be updated on the website).

Maybe a second hint : I have two empty folders on the ftp which may be related to my problem : /www/components/com_virtuemart_magicthumb and /www/components/com_virtuemart_magiczoom

I hope some of you will have time to help me on this... already spent several days on it.

Thanks !