FS

[Erro] Gesior

Por fsg, 26 de jun. de 2010 em Archived

8
3.6k
fsgF
26 de junho de 2010 às 14:12

Oi, então eu vi a Video Aula do Doidin e deu certo, quando eu vou em My Account no site aparece este erro:

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 381

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 381

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 381

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 381

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\accountmanagement.php on line 52

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\accountmanagement.php on line 52

 

 

Espero Resposta!

 

Abraços.

HimmlerH
28 de junho de 2010 às 02:38

Vai na pasta HTDOCS, abre o INDEX.PHP, e adiciona embaixo de [ <?PHP ] isso aqui, "date_default_timezone_set('Europe/Berlin');" (Sem aspas é claro)

 

flw

fsgF
28 de junho de 2010 às 14:25

Cara, muito obrigado me ajudou e consegui arrumar todos os bugs!

 

Abraços - Rep+.

Editado Junho 28 por FezZinN

afffffffffA
28 de junho de 2010 às 20:39

Vai na pasta HTDOCS, abre o INDEX.PHP, e adiciona embaixo de [ <?PHP ] isso aqui, "date_default_timezone_set('Europe/Berlin');" (Sem aspas é claro)

 

flw

 

 

@Heinrich isso apenas irá resolver o problema com time_zone do script atual dele, mais se algum dia ele se deparar com outro script e der o mesmo erro ele terá que alterar todo seu code adicionando esse code? ou apenas fazer essa certa alteração no seu webserver:

 

abra a pasta do xampp e o arquivo php.ini " /xampp/php/php.ini " abra o arquivo e use a ferramenta pesquisar " ctrl+f " procure por: date.timezone

 

Altere a linha por esta:

 

date.timezone =America/Sao_Paulo 

 

Salve, reinicie o apache.

Editado Junho 28 por afffffffff

1 mês depois...
29 de julho de 2010 às 21:22

@affff

 

 

eu fiz isso e continuo o erro

 

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/Sao_Paulo' for '-3.0/no DST' instead in C:\xampp\htdocs\latestnews.php on line 20

8 meses depois...
vinny160600V
31 de março de 2011 às 01:44

REP+ Heinrich

BRIGAÃO ARRUMEI MEU SERVER GRAÇAS A VOCÊ BRIGADOOOOOOOOO!

9 meses depois...
rodrygososR
14 de dezembro de 2011 às 15:14

Vlw amigo ajudo muito ^^ continui assim @Heinrich

1 mês depois...
mageraM
08 de janeiro de 2012 às 14:51

ajuda eu tbm

 

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'z_forum.icon_id' in 'field list'' in C:\xampp\htdocs\latestnews.php:277 Stack trace: #0 C:\xampp\htdocs\latestnews.php(277): PDO->query('SELECT `z_forum...') #1 C:\xampp\htdocs\index.php(64): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\latestnews.php on line 277