News:

Looking for documentation? Take a look on our wiki

Main Menu

com_virtuemart_media_no_path_type

Started by dergy, August 13, 2011, 10:41:07 AM

Previous topic - Next topic

dergy


jjk

Without any further information about where you see this line, it looks like a missing string in the backend language file:
yoursitename\administrator\language\en-GB\en-GB.com_virtuemart.ini

Approximately around line 791 (In my VM2 version from the SVN trunk) there should be this line:
COM_VIRTUEMART_MEDIA_NO_PATH_TYPE="Media of type %1$s has no relative URL set, Please <span style='text-decoration:underline'><a href='%2$s' title='go to configuration'>configure it first</a></span> and come back here."

The part before the "=" sign is displayed if the text right of the "=" sign is missing.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

dergy

yes, but this display me as error message - where is defined path for media?

jjk

Configuration - Shopfront - Media Files Settings
The paths should be set like this:

components/com_virtuemart/assets/
images/stories/virtuemart/category/
images/stories/virtuemart/product/
images/stories/virtuemart/manufacturer/
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

dergy

jjk true ;) thank you

(missed slash at end)

lamvt

#5
Sugeesion:
for this files: mediahandler.php
** EDIT: link removed **
Line 41 like that:
if($type == 'product' || $type == 'products'){
$relUrl = VmConfig::get('media_product_path');
$choosed = true;
}

Replace with:
if($type == 'product' || $type == 'products'){
$relUrl = trim(VmConfig::get('media_product_path'));
if($relUrl==""){
$relUrl = "images/stories/virtuemart/product/";
}
$choosed = true;
}


Do the same way for line 59 to 71
sory for my bad english
** EDIT: Please respect the forum and community and do not advertise in posts **
joomquery - Make website like loving Kids: http://joomquery.com

Milbo

yeah your solution is a nice quick dirty hack, but that should do the VmConfig object. try the version in svn, which works correct.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/