Troubles wiht PHP Upgrade
  • Hello, I justa updates php 5.2.17 to 5.3.8 and when I attempt to login to the admin http://deportes.elperiodico.com.gt/admin it appears this error:



    Campsite has encountered a problem.Please take a minute to send us an email.Simply copy and paste the error report below and send it to: newscoop-bug@sourcefabric.org. Thank you. Error Report Error ID: 2:Campsite:3.5.0:LoginAttempts.php:21 Error String: mktime() [function.mktime]: 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 Time: Wed, 16 Nov 2011 16:30:53 -0600 Backtrace: camp_report_bug() called at [:]mktime() called at [/var/www/html/deportes.elperiodico.com.gt/htdocs/newscoop/classes/LoginAttempts.php:21]LoginAttempts::DeleteOldLoginAttempts() called at [/var/www/html/deportes.elperiodico.com.gt/htdocs/newscoop/admin-files/login.php:36]require_once() called at [/var/www/html/deportes.elperiodico.com.gt/htdocs/newscoop/admin.php:206I am not able to login, so I can´t do anything actually, what should I do?? Thank you!Best Regards,Rodrigo SamayoaelPeriódico Guatemala 
  • 6 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    define date.timezone in php.ini
  • Thank you very much for the reply Andrey, I already define the time zone in php.ini: date.timezone = "America/Guatemala" is that ok?? Because it is not working. What else should I do?? Thank you very much for your help.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    you need to restart apache
  • actually, I had restarted apache after changing the file. And I don`t know what`s the problem now, do you have any idea??
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    try date.timezone = America/Guatemala   (w/o ")
  • It works! Thanks Andrey :-)