Strict Standards: require() error

Status
Not open for further replies.

nick19kvm19

New Member
Messages
5
Reaction score
0
Points
0
i get the following error frequently!! (on my SMF)


Strict Standards: require() [function.require]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/New_York' for 'EDT/-4.0/DST' instead in /home/freeforu/public_html/Sources/Load.php on line 2788

Warning: require(/home/freeforu/public_html/cache/data_734b3f20f8d1e7dcecc3028a465f95e9-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /home/freeforu/public_html/Sources/Load.php on line 2788

Strict Standards: require() [function.require]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/New_York' for 'EDT/-4.0/DST' instead in /home/freeforu/public_html/Sources/Load.php on line 2788

Fatal error: require() [function.require]: Failed opening required '/home/freeforu/public_html/cache/data_734b3f20f8d1e7dcecc3028a465f95e9-SMF-modSettings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/freeforu/public_html/Sources/Load.php on line 2788

that is while making changes in the forum.. while adding content to the forum... and when user on my site try to register...

I CONSULTED THE EXPERTS THERE ABOUT THE PROBLEM,
THIS IS THE SOLUTION THEY GAVE...

Fix the timezone issue first, by putting a date.timezone entry in your php.ini file (that's the easiest fix). Report back if that fixes both issues or just the timezone warning. Were you originally installed on a PHP 4 system? If so, when it was upgraded to PHP 5.3, it was lacking a database settings entry for the default timezone string.

Hey developers -- how about something to detect that you're at PHP 5.3+ but have no default timezone name, and to prompt the administrator to fix it? SMF already gets the timezone name on each page, and should know the PHP major and minor version.



AS I DO NOT HAVE ACCESS TO php.ini file.. i request u to fix the problem according to the solution given by one of the staff members at SMF...thank you!
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
Hello,

I have forwarded this message onto the admins. In the meantime, however, you may wish to use the date_default_timezeone_set() function
Also, x10 is still on PHP 5.2 for the time being.
 
Last edited:

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
in your SMF index.php file, add the following as the first thing in the file (under the <?php):
date_default_timezone_set( 'America/Chicago' );
 
Status
Not open for further replies.
Top