Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums How To I have the following error at the top of the page how to fix it
HamzaDesign
Posted on 08 May 2012, 20:39:21

Access: Member
Total Posts: 7
Joined: 2011-12-31

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

#3852
Last edited by HamzaDesign at 2012-05-16 15:29:41 Reason: adding images
Chris
Posted on 09 May 2012, 00:25:30

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

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.

#3853
HamzaDesign
Posted on 10 May 2012, 21:21:20

Access: Member
Total Posts: 7
Joined: 2011-12-31

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

#3856
Chris
Posted on 11 May 2012, 09:40:14

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

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.

#3857
Rayc
Posted on 16 May 2012, 15:29:41

Access: Member
Total Posts: 74
Joined: 2010-06-13

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

#3859
Last edited by Rayc at 2012-05-16 15:34:42 Reason: Fixing formatting
Network-13.com © 2013