View Full Version : application fatal error: "undefined function detectlanguage()"

08-24-2009, 08:29 PM
Hello everyone,

I am using a php calendar application called Izeit (http://www.izeit.nu/). I have installed the calendar on my server and it seems to work fine. However, there is a "mini" version (http://wiki.lime49.com/index.php?title=Blog_Integration_/_iZeit_Mini) of the calendar which I have integrated into pages on two websites I’ve developed (http://tstcareertech.org/calendar.php) (http://cterc.org/calendar.php) where I get the following fatal error: “Fatal error: Call to undefined function detectlanguage() in /home/message/public_html/izeit/includes/vars.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 105”. Can someone help me resolve this issue? I do not have access to the vars.php file where it says the function is. Is there something I need to set in the php.ini file to fix this?

08-24-2009, 09:33 PM
That is a custom function, not a PHP function, so without access to the code, you'll have to ask the author of the script this question.

08-24-2009, 09:43 PM
Since the application seems to work when I refresh the page and I do not have access to the file where the function is, is there anyway I can make it so it doesn't display the error or so it ignores the function?

08-24-2009, 09:46 PM
Not without access to the file its being called from. I guess you could turn off error reporting but you would need access to the php.ini file.

display_errors = Off
display_startup_errors = Off

08-24-2009, 09:55 PM
I have access to the php file starts the session of the "mini" calendar application. Can I just turn error reporting off in that file?

08-24-2009, 10:03 PM
You wouldn't happen to be attempting to bypass copyright and/or licensing issues would you? As in, you didn't pay for the use of this script but you still want to use it?

08-24-2009, 10:52 PM
Nope, it's a free application and you can see in the link below that I asked the author for permission to use it on my site: