Error after Installatiob

If you need support with TeamCal Pro (installation, configuration, usage) post your request here.
Post Reply
Catzenjaeger
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: 2011-01-20, 14:11

Error after Installatiob

Post by Catzenjaeger » 2011-01-20, 09:14

i get the following error after the installation

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/it-buehler.de/httpdocs/dienstplan/includes/functions.tcpro.php on line 1539

what can ido or what can i change?

this is the lines from the functions.tcpro.php
/**
* Time Zone
*/
if (($myTimeZone=$C->readConfig("timeZone"))!="default")
putenv("TZ=".$myTimeZone);
else
putenv("TZ=");
}

/**
User avatar
George
Platinum Boarder
Platinum Boarder
Posts: 415
Joined: 2004-11-29, 21:20
Are you a spam bot?: No
Contact:

Re:Error after Installatiob

Post by George » 2011-01-26, 17:48

You can solve this problem by adding TZ to safe_mode_allowed_env_vars parameter in your php.ini or your virtual host entry inside httpd.conf.
TeamCal Neo is free for private use but requires licensing for use in a commercial environment:
https://georgelewe.atlassian.net/wiki/s ... eo+License
Catzenjaeger
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: 2011-01-20, 14:11

Re:Error after Installatiob

Post by Catzenjaeger » 2011-01-27, 09:29

ok what i have to do?

my php.ini (in TeamCalPro Folder on my webserver root)

Code: Select all

register_globals=off

thanx for your help
User avatar
George
Platinum Boarder
Platinum Boarder
Posts: 415
Joined: 2004-11-29, 21:20
Are you a spam bot?: No
Contact:

Re:Error after Installatiob

Post by George » 2011-01-27, 10:32

Add the line:

safe_mode_allowed_env_vars = PHP_,TZ

If it does not work with adding this to the TeamCal Pro PHP.INI you have to change that setting in your global PHP.INI on your web server.
TeamCal Neo is free for private use but requires licensing for use in a commercial environment:
https://georgelewe.atlassian.net/wiki/s ... eo+License
Catzenjaeger
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: 2011-01-20, 14:11

Re:Error after Installatiob

Post by Catzenjaeger » 2011-01-27, 10:53

no sorry it dosent work

Code: Select all

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/it-buehler.de/httpdocs/dienstplan/includes/functions.tcpro.php on line 1539
problem i cant change the global settings (only my hoster)

what can i do - other reason?

i have change the lines to

Code: Select all

/** * Time Zone */ //if (($myTimeZone=$C->readConfig("timeZone"))!="default") // putenv("TZ=".$myTimeZone); //else // putenv("TZ="); }
the errormessege is hidden now but i have other problemes (look other thread) with my notifications

damn :)

TCP is cool and wonderfull :) and i need this
User avatar
George
Platinum Boarder
Platinum Boarder
Posts: 415
Joined: 2004-11-29, 21:20
Are you a spam bot?: No
Contact:

Re:Error after Installatiob

Post by George » 2011-01-27, 18:07

Thanks for the good words about TCP.

I have replied to the other post.
TeamCal Neo is free for private use but requires licensing for use in a commercial environment:
https://georgelewe.atlassian.net/wiki/s ... eo+License
Post Reply