LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-22-2010, 12:21 PM   #1
Rocktron
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Rep: Reputation: 1
Squirrelmail Warning


Hi again, i have installed Squirrelmail 1.4.19 on my RHEL 5.1, it's working fine (at least all the test i have made) but there are warnings messages that i want to fix. This messages are like this:

Code:
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are
*required* to use the date.timezone setting or the date_default_timezone_set() function. In case you
used any of those methods and you are still getting this warning, you most likely misspelled the 
timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in 
/var/www/html/squirrelmail/src/left_main.php on line 388

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In 
case you used any of those methods and you are still getting this warning, you most likely 
misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in 
/var/www/html/squirrelmail/functions/date.php on line 428

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are 
*required* to use the date.timezone setting or the date_default_timezone_set() function. In case you
used any of those methods and you are still getting this warning, you most likely misspelled the 
timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in 
/var/www/html/squirrelmail/functions/date.php on line 95
How do i fix this? Can someone help?

Also the "function.date" and "function.strtotime" are missed. Could be this the reason?. HOw do i create them?

Last edited by Rocktron; 01-22-2010 at 12:55 PM.
 
Old 01-22-2010, 12:54 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
It doesn't like the identifier you used for timezone.

The quick dirty fix is change to

date_default_timezone_set("America/Chicago");

in the mentioned scripts. The correct method would be correct date/timezone in your php.ini and squirrelmail configuration.
 
Old 01-22-2010, 01:06 PM   #3
Rocktron
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Original Poster
Rep: Reputation: 1
But the scripts are not there. How do I create them? What should i write on them?
 
Old 01-22-2010, 01:43 PM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
You're saying:
/var/www/html/squirrelmail/functions/date.php
doesn't exist?

try this: updatedb && locate date.php

The easier and more correct method is to fix the config or php.ini file.
 
Old 01-23-2010, 10:38 AM   #5
Rocktron
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Original Poster
Rep: Reputation: 1
/var/www/html/squirrelmail/functions/date.php does exist, what doesn't exist are [function.date] and [function.strtotime] that i thing, should exist because each one of them are links to a file that is not there in the scr location.

In the php.ini file i modified the "date.timezone" part and this is how i set it:

;http://www.php.net/manual/en/datetim....date.timezone
date.timezone = "America/Mexico_City"

Is this OK?, or do i have to modify more things and create function.date and function.strtotime
 
Old 01-23-2010, 10:55 AM   #6
Rocktron
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Original Poster
Rep: Reputation: 1
OK, thanks to all of you for your help

To solve it i just had to insert the line

date_default_timezone_set('America/Mexico_City');

in the date.php file, i hope this helps some other people

Last edited by Rocktron; 01-23-2010 at 11:02 AM.
 
1 members found this post helpful.
  


Reply

Tags
phpini, squirrelmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
squirrelmail help pawan_lal Linux - Server 1 07-04-2009 04:12 AM
Help With squirrelmail scrupul0us Ubuntu 1 12-03-2006 08:55 PM
Squirrelmail help Child of Wonder Linux - Networking 8 01-11-2006 08:14 PM
Squirrelmail gallet Linux - Software 14 08-06-2003 08:31 PM
Squirrelmail 1.2.11 mail55127 Linux - Software 0 03-13-2003 01:44 PM


All times are GMT -5. The time now is 09:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration