Open up /app/core.php, search for timezone and follow the instructions.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 27 Jun 2011, at 10:49, castarco wrote:

> Hello, today I've installed CakePHP 1.3.10 into my developing machine,
> it's a Windows 7 + Apache 2.2.19 + PHP 5.3.6 ... I've tried to run the
> default app, but i've received this message in the browser:
> 
> ----------------------------------------------------------------
> ----------------------------------------------------------------
> Warning (2): strtotime() [http://php.net/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 'Europe/Paris' for '2.0/DST' instead [CORE\cake
> \libs\cache.php, line 597]
> Code | Context
> $settings     =       array(
>       "engine" => "File",
>       "path" => "C:\Program Files\Apache Software Foundation
> \Apache2.2\htdocs\Yoda\app\tmp\cache\persistent\",
>       "prefix" => "cake_core_",
>       "lock" => false,
>       "serialize" => true,
>       "isWindows" => true,
>       "duration" => "+10 seconds",
>       "probability" => 100
> )
> strtotime - [internal], line ??
> CacheEngine::init() - CORE\cake\libs\cache.php, line 597
> FileEngine::init() - CORE\cake\libs\cache\file.php, line 81
> Cache::_buildEngine() - CORE\cake\libs\cache.php, line 166
> Cache::config() - CORE\cake\libs\cache.php, line 141
> Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 422
> Configure::getInstance() - CORE\cake\libs\configure.php, line 52
> include - CORE\cake\bootstrap.php, line 38
> require - APP\webroot\index.php, line 76
> [main] - CORE\index.php, line 55
> Warning: FileEngine::_setKey() [http://php.net/fileengine.-setkey]: 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 'Europe/Paris' for
> '2.0/DST' instead in C:\Program Files\Apache Software Foundation
> \Apache2.2\htdocs\Yoda\cake\libs\cache\file.php on line 248 Notice:
> Trying to get property of non-object in C:\Program Files\Apache
> Software Foundation\Apache2.2\htdocs\Yoda\cake\libs\cache\file.php on
> line 248 Warning: FileEngine::_setKey() [http://php.net/fileengine.-
> setkey]: 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 'Europe/Paris' for
> '2.0/DST' instead in C:\Program Files\Apache Software Foundation
> \Apache2.2\htdocs\Yoda\cake\libs\cache\file.php on line 248 Fatal
> error: Call to a member function cd() on a non-object in C:\Program
> Files\Apache Software Foundation\Apache2.2\htdocs\Yoda\cake\libs\cache
> \file.php on line 248
> ----------------------------------------------------------------
> ----------------------------------------------------------------
> 
> It seems that this problem is related with new security "protocol" in
> PHP that is not considered in CakePHP... what can I do?
> 
> Thanks in advance
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to