Work:PHPBB-3.0.3 Bug
From Zoelife4U Wiki
There has been a bug identified in PhpBB that causes the forum administrator unable to log in to the Administrator backend. The bug appears to only be relevant to version 3.0.3. Please note, this bug has not been fixed as of Nov 28th, 2008 but a test installation of PHPBB3 on my own server functioned fine.
The Errors
The customer is getting errors like:
[phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2405: array_fill() [function.array-fill]: Number of elements must be positive [phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2405: array_merge() [function.array-merge]: Argument #2 is not an array [phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2408: vsprintf() [function.vsprintf]: Too few arguments [phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153) [phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153) [phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153) [phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153)
When trying to login to the Administrator Panel:
The Fix
Open: includes/functions_admin.php
Find (Approx line 2403):
if (substr_count($log[$i]['action'], '%') - sizeof($log_data_ary))
Replace with:
if ((substr_count($log[$i]['action'], '%') - sizeof($log_data_ary)) > 0)