please I have the following error at the top of the page how to fix it??
Warning: datedefaulttimezoneget() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefaulttimezoneset() 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/Berlin' for 'CEST/2.0/DST' instead in /home/kazutofr/public_html/news/config.php on line 53
Please check this image : http://www.kazuto.fr/error.png http://www.kazuto.fr/error2.png
Edit your php.ini
file, search for date.timezone
, edit it so that it looks something like this.
date.timezone = Europe/London
And remove any ; characters from the beginning of the line. Save and restart your web server, those error messages should go away.
Thank you for your reply, but I still have an error code that blocks news appear in the original link here is the error code that appears
Fatal error: Call to undefined function bb2html() in /home/kazutofr/public_html/news/functions.php on line 1506
This is odd, I don't know of any reason for that error to be happening. Can you show me the page that's giving the error message either here or via private message?
One thing you could try is on the page that's giving the error message, try adding the following to the top of the page
require_once(/home/username/public_html/news/bbparser.php');
Replacing /home/username/public_html/news
with your own path, save it and see if that makes any difference.
If I can just butt in here... I've bumped into this a couple of times already. Something seems to have changed somewhere along the way requiring this to be explicitly set.
The file to edit is actually config.php
.
There is a section of code like this:
// Check if the default timezone has been set, if not set it to UTC
// For a list of supported timezones see here - http://www.php.net/manual/en/timezones.php
// To set your own timezone comment out this code and use this example
// date_default_timezone_set('Europe/London');
if(function_exists("date_default_timezone_get")){
if(!date_default_timezone_get()){
date_default_timezone_set('UTC');
}
}
Note that the date_default_timezone_set
is commented out. Remove the // comment tag and insert the appropriate time zone. In my case it looks like this:
// Check if the default timezone has been set, if not set it to UTC
// For a list of supported timezones see here - http://www.php.net/manual/en/timezones.php
// To set your own timezone comment out this code and use this example
date_default_timezone_set('America/New_York');
if(function_exists("date_default_timezone_get")){
if(!date_default_timezone_get()){
date_default_timezone_set('UTC');
}
}
I don't know if the following "if" statement becomes redundant at that point, but it doesn't seem to hurt.
HTH