FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » tz variable generates php warning
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
tz variable generates php warning [message #950] Wed, 13 March 2002 14:41 Go to next message
basse is currently offline  basse   Finland
Messages: 164
Registered: March 2002
Location: Åbo, Finland
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
More safe_mode troubles for you. This warning gets spit out every time someone visits the forum:

PHP Warning: Safe Mode: Cannot set environment variable 'TZ' - it's not in the allowed list in /some/path/forum_data/include/time.inc on line 24

This seems to lead to the time always beeing displayed as GMT instead of local time zone.

[Updated on: Wed, 13 March 2002 14:42]

Report message to a moderator

Re: tz variable generates php warning [message #951 is a reply to message #950] Wed, 13 March 2002 15:59 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
djupsjob wrote on Wed, 13 March 2002 2:41 PM

More safe_mode troubles for you. This warning gets spit out every time someone visits the forum:

PHP Warning: Safe Mode: Cannot set environment variable 'TZ' - it's not in the allowed list in /some/path/forum_data/include/time.inc on line 24

This seems to lead to the time always beeing displayed as GMT instead of local time zone.



Well I will eliminate the warning, however for the timezone you'll be stuck with GMT because of the rather Nazi php settings. 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.


FUDforum Core Developer
Re: tz variable generates php warning [message #955 is a reply to message #950] Wed, 13 March 2002 23:34 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
To solve the warning problem, simply put @ before the putenv() call inside time.inc

FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: cant change avatars byte size!!
Next Topic: Tried to add a new user and I can't Login (new or otherwise) or post messages. Why?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 13 06:24:17 EDT 2024

Total time taken to generate the page: 0.07419 seconds