News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem adding categories in vm 1.9.8.RC2G

Started by Stannite, September 29, 2011, 13:13:38 PM

Previous topic - Next topic

Stannite

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

Milbo

#1
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]
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Stannite

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

Stannite

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.

Milbo

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!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/