Wrong path for noimage.gif (vmgeneral) in VM 4.6.8 11258

Started by patbe60, April 21, 2026, 12:35:57 PM

Previous topic - Next topic

patbe60

The link to noimage.gif is broken because the link to the assets folder is wrong. In BE in the VM configuration I get the following message:

vmError: File not found /www.mydomaine.com/assets/images/vmgeneral/noimage.gif

The path to the component (com_virtuemart/) is missing.

J 5.4.5
VM 4.6.8.11258

sandomatyas

Same here.

On 4.6.8 the image path is img src="/assets/images/vmgeneral/noimage.gif", while on 4.6.6 it was "/components/com_virtuemart/assets/images/vmgeneral/noimage.gif".

patbe60

Yes of course. But this makes  no sense. Why should I all of a sudden create my own VM asset folder in the root directory after 16 years using VM?

sandomatyas

No, you shouldn't :) It must be a VM bug, I just confirmed

patbe60

The problem is in the file

/administrator/components/com_virtuemart/helpers/mediahandler.php

The following code no longer exists:

if(!isset(self::$theme_url)){
self::$theme_url = VmConfig::get('vm_themeurl',0);
if(empty(self::$theme_url)){
self::$theme_url = 'components/com_virtuemart/';
}
}

When I paste it again into line 104, between line 103 and 105, the path to noimage.gif is correct again.

EDIT: this seems to be happened by intention. I read the article about beta VM 5 (4.9.3).
"removed old vm_themeurl which was not correctly implemented anylonger."
As I told in an other post: this version can't be installed on any system! I'm testing instead with version 4.6.8.11258 which works with J 6.1.0.

Perhaps there is something else in VM 4.9.3 that is not yet implemented in 4.6.8?