VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: domifry on April 18, 2014, 16:17:22 PM

Title: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: domifry on April 18, 2014, 16:17:22 PM
On my page:
http://www.my-moebelstueck.de/save/template/component/virtuemart/181-detail.html

is the mistake:
COM_VIRTUEMART_MEDIA_CHOOSE_TYPE

What does this mean? I create my products with SQL. maybe i forgot something.
How i can fix this?
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: jjk on April 18, 2014, 19:58:30 PM
I'm not shure...
Did you try if it goes away when you go to Tools & Migration and klick on 'Sychronize media to VirtueMart'?

The only other thing I noticed is a possible javascript issue. That page is loading two different (external) versions of the jQuery javascript via the googleapis - first version 1.9.1 and then 1.7.2. You probably have the googleapi enabled in VirtueMart configuration and in your template or another extension. jQuery 1.9.1 might not be compatible with the lightbox (fancybox) version used in VM 2.0.26d.
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: antifragile on October 15, 2016, 14:51:46 PM
Hi, I have the same issue. I have done the following things but could not resolve it:


Does anyone please have an idea so that the annoying error message goes away.

Many thanks and regards,

Dan
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: GJC Web Design on October 15, 2016, 15:15:57 PM
seems to mean the path is missing for that type of media

administrator\components\com_virtuemart\helpers\mediahandler.php line 107


} else if(!$choosed and empty($relUrl) ){

vmWarn('COM_VIRTUEMART_MEDIA_CHOOSE_TYPE',$this->file_title );
// vmError('Ignore this message, when it appears while the media synchronisation process, else report to http://forum.virtuemart.net/index.php?board=127.0 : cant create media of unknown type, a programmers error, used type ',$type);
$relUrl = 'images/stories/virtuemart/typeless/';
$this->setRole=true;

}



the file title is supposed to be on the end

if your site works u could always comment the warning
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: antifragile on October 15, 2016, 15:33:45 PM
Quote from: GJC Web Design on October 15, 2016, 15:15:57 PM
seems to mean the path is missing for that type of media

administrator\components\com_virtuemart\helpers\mediahandler.php line 107


} else if(!$choosed and empty($relUrl) ){

vmWarn('COM_VIRTUEMART_MEDIA_CHOOSE_TYPE',$this->file_title );
// vmError('Ignore this message, when it appears while the media synchronisation process, else report to http://forum.virtuemart.net/index.php?board=127.0 : cant create media of unknown type, a programmers error, used type ',$type);
$relUrl = 'images/stories/virtuemart/typeless/';
$this->setRole=true;

}



the file title is supposed to be on the end

if your site works u could always comment the warning


Hi, thanks for the quick reply! I am afraid, that I do not understand your advice. Do I need to edit the mediahandler.php? Would that not be overwritten again after an update (i.e. create an override?)? What do you mean with "if your site works u could always comment the warning"?

By the way, I do not have the folder images/stories/virtuemart/typeless/. Could that be an issue?

Thanks and regards,

Dan
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: GJC Web Design on October 15, 2016, 17:37:36 PM
yes to all...

comment out I mean

//vmWarn('COM_VIRTUEMART_MEDIA_CHOOSE_TYPE',$this->file_title );

QuoteI do not have the folder images/stories/virtuemart/typeless/. Could that be an issue?

could well be
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: antifragile on October 15, 2016, 17:59:59 PM
Done as you said, error is gone. Many thanks!

BTW, I did have the folder typeless after all. So that was not cause of the error message.

If the error reappears after the next update, I'll create an override.

Many thanks again!

Dan
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: GJC Web Design on October 15, 2016, 23:07:01 PM
it will reappear unless there is a bug that is causing this and it gets fixed...
Title: Re: COM_VIRTUEMART_MEDIA_CHOOSE_TYPE
Post by: antifragile on October 16, 2016, 08:59:42 AM
Quote from: GJC Web Design on October 15, 2016, 23:07:01 PM
it will reappear unless there is a bug that is causing this and it gets fixed...

I do wonder what is causing that error ... I have cleaned up the media database. Before that I had missing images (i.e. entries in the database but missing images); here I deleted the entries. And I had non-media entries (.ini-files), which were in the synchronized. These I also deleted. Now I just have jpeg, gif and png. Strange ...