Page 1 of 1

fresh install works great except PEAR error

PostPosted: 23. October 2010 03:24
by snowonweb
When I go to localhost/xampp and choose PEARinfo() I get the following errors

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/New_York' for '-4.0/DST' instead in C:\xampp\php\PEAR\PEAR\Info.php on line 911

PS. I am trying to run OSdate on localhost. It works fine except that during INSTALL I get an error

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wymarzonypartner.pl\libs\Pear\DB.php on line 311
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wymarzonypartner.pl\libs\Pear\DB.php on line 384
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wymarzonypartner.pl\libs\Pear\DB.php on line 889
Warning: strftime() [function.strftime]: 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/New_York' for '-4.0/DST' instead in C:\xampp\htdocs\wymarzonypartner.pl\libs\Smarty\Smarty_Compiler.class.php on line 400

Both seem to be related. I wonder where did I go wrong during installation.

Any Advice.
Thank You

Re: fresh install works great except PEAR error

PostPosted: 23. October 2010 09:45
by Altrea
After xampp was unzipped do you run the command line tool setup_xampp.bat?
If not, you should do, because this script sets a default timezone in your php.ini.

Your problem with OSdate is different. The Version of OSdate you use does not support PHP 5.3

Re: fresh install works great except PEAR error

PostPosted: 23. October 2010 18:47
by snowonweb
I did that and at the end it even tells you it changed the time zone to 'newyork..." Still the same error, so I ran setup_xampp with Admin privilages but still same error.

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/New_York' for '-4.0/DST' instead in C:\xampp\php\PEAR\PEAR\Info.php on line 911

i am such a noob. How can I fix it by editing the file?

Windows 7 x64
XAMPP 1.7.3
C:/xampp/

Re: fresh install works great except PEAR error

PostPosted: 22. December 2010 01:43
by meows
I have the same problem with the Date, wish there was a fix. I was using 1.7.2 and did the update to 1.7.3 in hopes it would be fixed.

It did not work. I hope someone knows how to edit the line. :?:
Code: Select all
       $packages .= str_replace('{lastmodified}',
the line that is the error >>>  date('Y-m-d', $installed['lastmodified']),
                        $ptpl);

                }

                $packages .= '