VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Kathycr on January 17, 2012, 03:21:15 AM

Title: vmError: Couldnt resolve mime
Post by: Kathycr on January 17, 2012, 03:21:15 AM
Help please.
I have installed joomla 1.7.2 and Virtuemart 2.0.0 version.
I think a product and upload an image. In pictures of the product -> change the title of the image, when saving, I get the following error.

vmError: Couldnt resolve mime images/stories/virtuemart/product/3-17.jpg

How I can fix it?
Title: Re: vmError: Couldnt resolve mime
Post by: PRO on January 20, 2012, 18:24:26 PM
but it still uploads right?
Title: Re: vmError: Couldnt resolve mime
Post by: Henrik Holm Nielsen on January 22, 2012, 12:43:05 PM
I have this error/message as well...

Image uploads correct, and there is no errormessage when product is saved first time after choosing image for upload. But on every subsequent save of the product, the message appears, even though the image is still there and seems to be handled correct by VM.

I use J1.7.3 and VM 2.0
Title: Re: vmError: Couldnt resolve mime
Post by: imclaudia on January 22, 2012, 22:54:44 PM
I too have this issue.
Nothing changed on server side.
image folders are set to 777.
I cannot edit titles or info on any image the 'Attach a New Image" link does not display all images. It contains some text and garbled info.
I tied deleting the product and starting from scratch, same issue.


My version s 1.9.8H
Title: Re: vmError: Couldnt resolve mime
Post by: moonclimber on February 15, 2012, 18:38:23 PM
Hi everybody,

I get crazy too  :'( - I have worked several days to solve this problem. I hope one of the Administrators read this post !


The moonclimber
Title: Re: vmError: Couldnt resolve mime
Post by: Henrik Holm Nielsen on February 15, 2012, 19:00:02 PM
It probably wont help saying this, but I actually got the problem disappear by moving the entire site to different server/host - without changing anything else, than server URL in the configuration... So there's definately a serverside of this issue, that could also be the reason!
Title: Re: vmError: Couldnt resolve mime
Post by: moonclimber on February 21, 2012, 00:34:59 AM
Hi Hendrik,

this sounds very strange .... but if this will help I will try it too on a subdomain.

the -moonclimber-
Title: Re: vmError: Couldnt resolve mime
Post by: bhajohn on March 03, 2012, 21:41:56 PM
I have the same situation and it's very frustrating.  I have tried all the suggestions, even reinstalling on a new domain, yet still:

vmError: Couldnt resolve mime images/stories/virtuemart/...

For every image uploaded.  Resolving a mime should be a non-issue in my experience, yet, here it is.

I have all my images uploaded for each product, a very time consuming thing, but then, in the category and product display page, the default NO IMAGE image is there.  When I try to sync media, a long series of "vmError: Couldnt resolve mime images/stories/virtuemart/..." is displayed.

It's not permissions, it's not server related (two different servers for me and same result, even in Standalone JSAS).

I am hopeful that someone who has seen and solved this mystery can share their solution?
Title: Re: vmError: Couldnt resolve mime
Post by: teobgeno on March 29, 2012, 05:27:00 AM
I had the same issue and after some research i found at  administrator/components/com_virtuemart/tables/medias.php this call
$this->file_mimetype = mime_content_type(JPATH_ROOT.DS.$rel_path);

and some lines below the vmError('Couldnt resolve mime '.$rel_path);

php.net mention that
"This function has been deprecated as the PECL extension Fileinfo provides the same functionality (and more) in a much cleaner way. "
http://php.net/manual/en/function.mime-content-type.php (http://php.net/manual/en/function.mime-content-type.php)

I replace the mime_content_type() function call  with a custom function i found on the url above and seems to work properly now.
Title: Re: vmError: Couldnt resolve mime
Post by: berghoff on March 29, 2012, 10:42:03 AM
Thanks teobgeno for your clue
I've just added ! like not on function recognition because all algorithms are already described in medias.php line 186
"if(!function_exists('mime_content_type') ){"
Title: Re: vmError: Couldnt resolve mime
Post by: ronrazib on June 20, 2012, 00:07:47 AM
so, what is the solution?
i found $this->file_mimetype = mime_content_type(JPATH_ROOT.DS.$rel_path);
what to do with it?
Title: Re: vmError: Couldnt resolve mime
Post by: bornakke on September 25, 2012, 13:22:34 PM
In 2.0.10 somebody seems to have tried to fix the problem. However still not working here. What worked for me is:

1) Uncomment from line 185 to line 222 in medias.php (both lines inclusive)
2) Uncomment } in line 302.

Enjoy.