Wednesday, February 27, 2008

Virtuemart Image Update Problem

There seems to be a problem with the product images of Virtuemart 1.0.13a. When you try to upload or update the image of a product, the image does not appear or it will have an unlink problem. This "Virtuemart product image is not showing" problem is quite elusive and appears in some servers only.

Since I had the same problem with one of my client's website, I had to solved it. So here's my solution that works for me:

Go to /administrator/components/com_virtuemart/classes/ps_main.php.

Add this line of code directly after line 269.
chmod( $exec['param2'], 0644 );
Yup! That's it. The problem is due to the permission setting of the uploaded files.
Hope this helps!