VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: awowy on April 10, 2018, 19:17:36 PM

Title: How to change MEDIA URL
Post by: awowy on April 10, 2018, 19:17:36 PM
Hi

I searched the forum but only found posts about old Virtuemart versions, so

I need to change the Media Files URL but changing the "Media Files Settings" in the Configuration Templates tab area did not worked, this is what I changed:

Category Media URL: images/store/category/
Product Media URL: images/store/product/
Manufacturer Media URL: images/store/manufacturer/
Vendor Media URL: images/store/vendor/

And this is the error I get, even with new test product images:

vmError: Couldnt create thumb, file not found /homepages/41/d210098830/htdocs/2018redesign/images/store/product/images/virtuemart/product/cart_logo.jpg

As you can see the error shows that it is searching for this: /images/virtuemart/product/ inside the already changed Media URL   :o


Joomla version, 3.8.6.
VirtueMart 3.2.14
Title: Re: How to change MEDIA URL
Post by: Studio 42 on April 11, 2018, 02:22:26 AM
If you have already virtuemart medias in the DB, you have to update the old link with a mySql query or manually change all media URLs.
Title: Re: How to change MEDIA URL
Post by: awowy on April 12, 2018, 05:11:48 AM
Thanks so much, that did the trick.  8)

Fortunately I only have a couple a products and categories by now so I changed each table manually from phpMyAdmin

if it helps anyone, just edit each "file_url" from the Tables in "yourprefix_virtuemart_medias"   :)