Author: Highway of Life
Modification description: Logs phpBB Errors and Warnings in a Custom Error Log, so you can turn off the DEBUG/DEBUG EXTRA for your users and find all errors in the error log.
This makes continues debugging possible after you go live. It is also a great tool for MOD and Style Authors when developing and testing MODs for ease of debugging.
Includes the ability to log possible Template errors and warnings.
The Error Log is created automatically inside the /store/ directory, and will be called php_error.log
Modification version: 1.0.RC1
Tested on phpBB version:
- phpBB 3.0.RC5
- phpBB 3.0.RC6-dev (CVS from August 30)
Associated Topics:
Download file: phpbb3 error logging tool.zip
Credits: Thanks to Exreaction for the idea.
Demo: Sample text from generated error log:
- Code: Select all
[08-Oct-2007 02:27:37] [phpBB Debug] [client 127.0.0.1] [File preview.php] PHP Notice: in file /Applications/MAMP/htdocs/phpBB/mods/highwayoflife/stats_mod/preview.php on line 37 : Undefined variable: sql
[08-Oct-2007 02:27:37] [phpBB Debug] [client 127.0.0.1] [File preview.php] PHP Notice: in file /Applications/MAMP/htdocs/phpBB/mods/highwayoflife/stats_mod/includes/db/mysqli.php on line 213 : mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, integer given
[08-Oct-2007 02:27:37] [phpBB Debug] [client 127.0.0.1] [File preview.php] PHP Notice: in file /Applications/MAMP/htdocs/phpBB/mods/highwayoflife/stats_mod/includes/functions.php on line 4221 : Cannot modify header information - headers already sent by (output started at /includes/functions.php:3728)
[08-Oct-2007 02:27:37] [phpBB Debug] [client 127.0.0.1] [File preview.php] PHP Notice: in file /Applications/MAMP/htdocs/phpBB/mods/highwayoflife/stats_mod/includes/functions.php on line 4223 : Cannot modify header information - headers already sent by (output started at /includes/functions.php:3728)
[08-Oct-2007 02:27:37] [phpBB Debug] [client 127.0.0.1] [File preview.php] PHP Notice: in file /Applications/MAMP/htdocs/phpBB/mods/highwayoflife/stats_mod/includes/functions.php on line 4224 : Cannot modify header information - headers already sent by (output started at /includes/functions.php:3728)
[08-Oct-2007 02:27:37] [phpBB Debug] [client 127.0.0.1] [File preview.php] PHP Notice: in file /Applications/MAMP/htdocs/phpBB/mods/highwayoflife/stats_mod/includes/functions.php on line 4225 : Cannot modify header information - headers already sent by (output started at /includes/functions.php:3728)
-------------[ Begin General Error]-------------
[08-Oct-2007 20:25:27] [phpBB Error] [client 127.0.0.1] [file preview.php] /Applications/MAMP/htdocs/phpBB/mods/highwayoflife/stats_mod/includes/db/dbal.php:581
SQL ERROR [ mysqli ]
Unknown column 'user_admin' in 'field list' [1054]
SQL
SELECT user_admin FROM phpbb_users
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()
FILE: preview.php
LINE: 37
CALL: dbal_mysqli->sql_query()
-------------[ End of General Error]-------------










