VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Stannite on September 29, 2011, 13:13:38 PM

Title: Problem adding categories in vm 1.9.8.RC2G
Post by: Stannite on September 29, 2011, 13:13:38 PM
Hi all,

I just installed Virtuemart 1.9.8.RC2G in joomla 1.7.1 and tried to add a category ( this is the first time i use virtuemart )

When i click on new category i get the following error:
Fatal error: Call to undefined function imagetypes() in /var/www/shop/administrator/components/com_virtuemart/helpers/mediahandler.php on line 324

I checked to see if the folders where created and checked the configuration of virtuemart but couldn't find anything wrong there.

I checked the mediahandler.php and indeed there is no function imagetypes(). instead, there is a function displaySupportedImageTypes()

-edit- I also get this when adding products

is this a bug or am i doing something stupid?

thanks in advance for any help
Title: Re: Problem adding categories in vm 1.9.8.RC2G
Post by: Milbo on September 30, 2011, 10:04:32 AM
Please try the attached file.

I think it is connected to your server config, which does not support the function I use to recognize the thumbnailing possibilites of the used server.

and of course, when it does not work for category, then also not for products.

[attachment cleanup by admin]
Title: Re: Problem adding categories in vm 1.9.8.RC2G
Post by: Stannite on September 30, 2011, 17:53:07 PM
Thanks Milbo,

I will try this as soon as my next problem is fixed, can't login to the administration pages of joomla. i just get a page refresh. at the moment i am searching the joomla forums for a fix....

As soon as i get things working again i will let you know.

Thanks again
Title: Re: Problem adding categories in vm 1.9.8.RC2G
Post by: Stannite on October 01, 2011, 10:33:44 AM
Hi Milbo,

I tried the file and it works. Could you explain what function my server doesn't recognize? i have configured my own server for this so i can test the site locally.

Thank you for your help.
Title: Re: Problem adding categories in vm 1.9.8.RC2G
Post by: Milbo on October 02, 2011, 12:01:38 PM
It should stand at the end of the page, where the supported images types and the paths are displayed. The error message above shows it also:

Fatal error: Call to undefined function imagetypes() in /var/www/shop/administrator/components/com_virtuemart/helpers/mediahandler.php on line 324

The fatal error is that the function imagetypes() is not defined. So just google imageypes(). You will find: http://www.php.net/manual/en/function.imagetypes.php (and dont use only this link, try it yourself!). Then you will notice that your server lacks the whole image stuff, you need to install or just activate it in your server config. Good luck!