SMF Support > SMF 2.0.x Support

Forum Down: Urgent help - "Strict Standards" error

(1/2) > >>

toastmasters:
Below is the error message that has been coming up on the forum since mid-afternoon today:

Strict Standards: main() [function.main]: 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/Chicago' for 'CDT/-5.0/DST' instead in /home/ryan/public_html/rcottawa.com/forum/index.php on line 46

Notice: Undefined variable: boarddir in /home/ryan/public_html/rcottawa.com/forum/index.php on line 46

Strict Standards: main() [function.main]: 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/Chicago' for 'CDT/-5.0/DST' instead in /home/ryan/public_html/rcottawa.com/forum/index.php on line 50

Notice: Undefined variable: sourcedir in /home/ryan/public_html/rcottawa.com/forum/index.php on line 50

Strict Standards: require_once() [function.require-once]: 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/Chicago' for 'CDT/-5.0/DST' instead in /home/ryan/public_html/rcottawa.com/forum/index.php on line 50

Warning: require_once(/QueryString.php) [function.require-once]: failed to open stream: No such file or directory in /home/ryan/public_html/rcottawa.com/forum/index.php on line 50

Strict Standards: require_once() [function.require-once]: 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/Chicago' for 'CDT/-5.0/DST' instead in /home/ryan/public_html/rcottawa.com/forum/index.php on line 50

Fatal error: require_once() [function.require]: Failed opening required '/QueryString.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ryan/public_html/rcottawa.com/forum/index.php on line 50

No one was working on the admin side of the forum at all today so we're really not sure whats going on.  Its a very active forum and we'd like to get it up and running ASAP.  Any help would be much appreciated.

If it helps to see the error yourself the URL is: hxxp:www.rcottawa.com/forum/ [nonactive]

Arantor:
Ask your host to set a timezone in PHP.

MrPhil:
Timezone problems: in php.ini file set date.timezone="America/New_York" or whatever your proper timezone is (see http://us3.php.net/manual/en/timezones.php).

$boarddir and $sourcedir undefined: that sounds like you're having database problems which have resulted in Settings.php being emptied out (due to a massive bug in SMF). If Settings.php is 0 bytes in size, copy Settings_bak.php (unless it's also 0 sized) over the empty Settings.php. Make the restored Settings.php "read only" (444 permissions). If Settings_bak.php is also munged, see if you have a recent backup of Settings.php you can use.

toastmasters:

--- Quote from: MrPhil on June 13, 2012, 09:15:36 PM ---Timezone problems: in php.ini file set date.timezone="America/New_York" or whatever your proper timezone is (see hxxp:us3.php.net/manual/en/timezones.php [nonactive]).

$boarddir and $sourcedir undefined: that sounds like you're having database problems which have resulted in Settings.php being emptied out (due to a massive bug in SMF). If Settings.php is 0 bytes in size, copy Settings_bak.php (unless it's also 0 sized) over the empty Settings.php. Make the restored Settings.php "read only" (444 permissions). If Settings_bak.php is also munged, see if you have a recent backup of Settings.php you can use.

--- End quote ---

Ok It would appear that you are correct, settings.php AND the backup are 0 bytes.. I don't have a backup.  Is there a way to get a generic one that will allow things to function?

K@:

--- Quote from: toastmasters on June 13, 2012, 09:38:54 PM ---I don't have a backup.
--- End quote ---

If you ask your host, you might be lucky...

Navigation

[0] Message Index

[#] Next page

Go to full version