PHPBB Index Problem

Joshua Farrell

FP's Housekeeper
Joined
Nov 9, 2009
Messages
21,131
Reaction score
2,530
FP$
56
So, I am having problems with my index at the other forums, and I don't know how to fix it. I have never edited my index.php file at all, so I shouldn't be getting what it states. I have tried clearing forum cache, and refreshing templates, but to no avail!

It states the following:

[phpBB Debug] PHP Notice: in file /index.php on line 86: date() [function.date]: 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 'UTC' for 'UTC/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /index.php on line 86: getdate() [function.getdate]: 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 'UTC' for 'UTC/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4183: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
 
looks like you have tried to change the timezone settings
 
Looks like my host was updating their version of php, and it caused some minor errors. so I guess it is solved.
 
If anyone else has this problem, here is the fix:
Do the following by downloading the file common.php in your phpBB Forum root through FTP, then opening the file with Notepad , PSPAD, or similar. Then upload the common.php file back to your forum root.
Open: common.php
Find:
PHP:
<span class="syntaxdefault">foreach </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$cache</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">obtain_hooks</span><span class="syntaxkeyword">()</span><span class="syntaxdefault"> as $hook</span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">@include(</span><span class="syntaxdefault">$phpbb_root_path </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> </span><span class="syntaxstring">'includes/hooks/'</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> $hook </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> </span><span class="syntaxstring">'.'</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> $phpEx</span><span class="syntaxkeyword">);<br />}&nbsp;</span><span class="syntaxdefault"></span>
Add After:
PHP:
<span class="syntaxdefault"></span><span class="syntaxcomment">// Timezone Fix.<br /></span><span class="syntaxdefault">date_default_timezone_set</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'Canada/Pacific'</span><span class="syntaxkeyword">);&nbsp;</span><span class="syntaxdefault"></span>
 
what if you don't want to set it to Canada or pacific time?
 
Back
Top Bottom