-rafael- 1 Denunciar post Postado Abril 18, 2010 ola a todos! sou novo no cakephp e instalei ele conforme este post: http://forum.imasters.com.br/index.php?/topic/366132-tutorial-iniciando-no-cakephp/ mas estou recebendo a seguinte msg de erro: Warning: 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 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs\cakephp\cake\libs\cache.php on line 429 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 'America/Sao_Paulo' for '-3.0/no DST' instead [CORE\cake\libs\cache.php, line 429] Code | Context $settings = array( "engine" => "File", "path" => "C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs\cakephp\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 429 FileEngine::init() - CORE\cake\libs\cache\file.php, line 83 Cache::set() - CORE\cake\libs\cache.php, line 194 Cache::config() - CORE\cake\libs\cache.php, line 130 Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 666 Configure::getInstance() - CORE\cake\libs\configure.php, line 136 include - CORE\cake\bootstrap.php, line 46 require - APP\webroot\index.php, line 80 [main] - CORE\index.php, line 60 Warning: date() [http://php.net/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/Sao_Paulo' for '-3.0/no DST' instead in C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs\cakephp\cake\libs\cake_log.php on line 93 e não estou conseguindo fazer nada com ele. gostaria de saber como tirar essas msgs de erro e fazer o cake funcionar. obrigado Compartilhar este post Link para o post Compartilhar em outros sites
lucaswxp 22 Denunciar post Postado Abril 18, 2010 Hmm... Abre o arquivo "app/config/core.php" Encontre a linha e descomente: date_default_timezone_set('UTC'); // algo assimDepois troque para: date_default_timezone_set('America/Sao_Paulo'); // ou oque quiser Compartilhar este post Link para o post Compartilhar em outros sites
Kleber.w 0 Denunciar post Postado Setembro 22, 2010 Hmm... Abre o arquivo "app/config/core.php" Encontre a linha e descomente: date_default_timezone_set('UTC'); // algo assimDepois troque para: date_default_timezone_set('America/Sao_Paulo'); // ou oque quiser Tentei o procedimento descrito acima, mas não deu certo pra mim. Ainda aparece a mensagem: 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 'America/Sao_Paulo' for '-3.0/no DST' instead [CORE\cake\libs\cache.php, line 570] Code | Context $settings = array( "engine" => "File", "path" => "C:\Webserver\Apache 2.2\htdocs\cake\cake\console\myapp\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 570 FileEngine::init() - CORE\cake\libs\cache\file.php, line 81 Cache::_buildEngine() - CORE\cake\libs\cache.php, line 151 Cache::config() - CORE\cake\libs\cache.php, line 126 Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 420 Configure::getInstance() - CORE\cake\libs\configure.php, line 52 include - CORE\cake\bootstrap.php, line 38 require - APP\webroot\index.php, line 76 [main] - APP\index.php, line 18 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 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\Webserver\Apache 2.2\htdocs\cake\cake\libs\cache\file.php on line 248 Notice: Trying to get property of non-object in C:\Webserver\Apache 2.2\htdocs\cake\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 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\Webserver\Apache 2.2\htdocs\cake\cake\libs\cache\file.php on line 248 Fatal error: Call to a member function cd() on a non-object in C:\Webserver\Apache 2.2\htdocs\cake\cake\libs\cache\file.php on line 248 Obrigado desde já! Compartilhar este post Link para o post Compartilhar em outros sites
fbrasan 0 Denunciar post Postado Fevereiro 21, 2011 Caso esteja utilizando o PHP 5.3 basta descomentar a linha 177 do arquivo app/config/core.php: date_default_timezone_set('UTC'); Hmm... Abre o arquivo "app/config/core.php" Encontre a linha e descomente: date_default_timezone_set('UTC'); // algo assim Depois troque para: date_default_timezone_set('America/Sao_Paulo'); // ou oque quiser Tentei o procedimento descrito acima, mas não deu certo pra mim. Ainda aparece a mensagem: 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 'America/Sao_Paulo' for '-3.0/no DST' instead [CORE\cake\libs\cache.php, line 570] Code | Context $settings = array( "engine" => "File", "path" => "C:\Webserver\Apache 2.2\htdocs\cake\cake\console\myapp\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 570 FileEngine::init() - CORE\cake\libs\cache\file.php, line 81 Cache::_buildEngine() - CORE\cake\libs\cache.php, line 151 Cache::config() - CORE\cake\libs\cache.php, line 126 Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 420 Configure::getInstance() - CORE\cake\libs\configure.php, line 52 include - CORE\cake\bootstrap.php, line 38 require - APP\webroot\index.php, line 76 [main] - APP\index.php, line 18 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 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\Webserver\Apache 2.2\htdocs\cake\cake\libs\cache\file.php on line 248 Notice: Trying to get property of non-object in C:\Webserver\Apache 2.2\htdocs\cake\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 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\Webserver\Apache 2.2\htdocs\cake\cake\libs\cache\file.php on line 248 Fatal error: Call to a member function cd() on a non-object in C:\Webserver\Apache 2.2\htdocs\cake\cake\libs\cache\file.php on line 248 Obrigado desde já! Compartilhar este post Link para o post Compartilhar em outros sites