Show PHP Error Log

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Show PHP Error Log are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 14.0
TNG 13.0
TNG 12.0


Show PHP Error Log
Summary Adds a menu option to view and optionally clear, the PHP error log within the Admin screen.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 2 Feb 2024
Download link For
TNG 14.0
TNG 13.0
show_php_error_log_v13.0.0.9.zip
For
TNG 12.0
show_php_error_log_v12.0.0.7.zip
For
TNG 11.0
TNG 10.0.3
show_php_error_log_v10.0.3.5.zip
Download stats Download stats for Show PHP Error Log
stats for Show System Errors Log
Author(s) Ken Roy
Roger Mitchell original mod author
Homepage Show PHP Error Log (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 13.0.0.9 for TNG V13+
12.0.0.7 for TNG V12+
10.0.3.5 for TNG V10.0.3+
Min TNG V 9.0.0+ (Not tested on versions earlier than TNG 10.0.3 but will probably work)
Max TNG V 14+
Files modified
adminlib.php in TNG v13
admin_rightbanner.php in TNG v12 and earlier
creates admin_showerrorlog.php in TNG v12
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/Swedish/cust_text.php
languages/German-UTF8/cust_text.php
languages/Czech-UTF8/cust_text.php
Related Mods
Notes
None

Purpose

If you've ever had site system errors, this mod gives access to the PHP error log without the need to exit your site or download the error log.

The Show PHP Error Log mod also sorts the log entries to show the most recent errors first.

The Show PHP Error Log mod can be used on sites that do not normally provide access to the PHP error log by adding overrides to your php.ini or by creating a .user.ini file (PHP 5.3 and later) as documented in PHP error log

Introduction

Adds a menu option to view and optionally clear, the system error log within the Admin screen. The link to display this report is added to the top (horizontal) menu bar in the admin section of your site. The log is sorted in reverse chronological order to the way it is written, thus displaying the latest errors at the top.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary in the upper right corner of the page)
  • An installed current version of the Mod Manager.

Revision History

Mod Version Date Contents
13.0.0.9 2 Feb 2024 Updated to fix anchor location so it installs for TNG 13 + 14
13.0.0.8a 04 Oct 2020 Updated to fix typo in the mod cfg file %note to show Applies to TNG 13+
13.0.0.8 23 Aug 2020 Updated by Ken Roy for TNG v13 new Admin layout
12.0.0.7 20 Mar 2020 Updated by Ken Roy to eliminate notices and warnings in PHP 7
12.0.0.6 17 Apr 2019 Updated by Ken Roy for TNG v12 cust_text.php insertion guidelines.
Updated Edit Option screen and mod description to make it easier to understand the installation and PHP error log access requirements
10.0.3.5 22 Jan 2018 Updated by Ken Roy to fix overlay of Mod Manager clearlog text in languages other than English
Added cust_text.php for French-UTF8
Added cust_text.php for Czech-UTF8, German-UTF8, and Spanish-UTF8 provided by Ron Krzmarzick
Added cust_text.php for Swedish-UTF8 provided by Erik Hoppe
10.0.3.4 23 May 2015 Added facility to select which log to view. Set from Mod Options page in Mod Manager
10.0.3.3 21 May 2015 Bug relating to sort order discovered by Del Groves has now been fixed.
Limits on number of items displayed has been removed to allow whole log to be viewed.
10.0.3.0 20 Nov 2014 Initial release

Conflicts and Issues

No known conflicts.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and all its tables, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Notes

  • Version 10.0.3.5 renames the mod to Show PHP Error Log and fixes the overlay of the Mod Manager clear log text in languages other than English.
Adds custom text for French-UTF8,and Czech-UTF8, German-UTF8, and Spanish-UTF8 provided by Ron Krzmarzick, and Swedish-UTF8 provided by Erik Hoppe
  • Version 10.0.3.4 includes the option to select the error log path and name.
  • This mod only includes English language variables. To add support for other languages, open and edit the .cfg file to add your language translations.
Version 10.0.3.5 added cust_text.php variables for Czech, French, German, Spanish, and Swedish languages
  • Mod has not been tested on TNG versions below 10.0.3 but it is likely to work on all TNG versions.
  • The error log is not limited to display a set number of entries. The entire log will be displayed with the latest entries appearing first.
  • This mod will work "out of the box" on most installations but I have identified a couple of sites where this isn't the case. Some hosts archive the error log at the end of each month and start a new log. If this is the case, then there is probably less to be gained from my mod.
  • If you don't understand the entries in the error log, please, DON'T ask me what they mean. You will have to seek advice from elsewhere (Mr. Google, for example!). Again, perhaps this mod isn't for you.

Visualisation

This is how the report looks. You can see the additional menu in the header.
Show PHP error log display.png

Note that v10.0.3.5 renamed Roger Mitchell's and changed the System Errors Log to PHP Error Log in the above screen capture

Mod Manager Edit Options

In Mod Manager >> Edit Options, enter the path and name of the log you wish to view. The default is ../../logs/php_error.log.

Edit Options

PHP error log location

See PHP error log location for information on where you can find the PHP error log on your hosting service site or your local computer web server environment.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
Mitchell Families Online Roger Mitchell Mod developer 10.0.3.4 10.1.1 EN
Treichel-Familie.de Andreas Treichel Public & Private 13​.0​.0​.8a 14.0.1 DE, UK, FR, ES, PL
Chamberlain & Eidenbenz Genealogy Graham Chamberlain 10.0.3.0 10.0.3 EN,DE,ES,FR,NL
Robison & Blythe Genealogy Jeff Robison Public Site 10.0.3.4 10.1.1 EN
Brady Family Tree in Western Australia Darryl Brady Public site 10.0.3.4 10.1.1 EN, DE
Our Roy and Boucher Family Ken Roy Use to view PHP error log on site where logs are not normally accessible.
See PHP error log
13.0.0.9 14.0.4 EN, FR
Quigley Doyle Family Tree Don Quigley Public Site 10.0.3.4 10.1.1 EN
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL
Our Family Histories Bryan S. Larson Public See Here See Here EN
Jegersberg.com C. Jegersberg Public & Private 12.0.0.6 12.1 NO,EN,SE
Solem Genealogy Jan-Thore Solem Private 13​.0​.0​.8a 14.0.2 EN, NO
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 13.0.0.8a 13.1.2 NL, EN, ES
R G Strong Family Genealogy Russ Strong Public / Private 13.0.0.9 14.0.4 EN, DE, FR, NL
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 13.0.0.8a 13.1.2 NL
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Carver Family Tree Bob Carver Public / Private 13.0.0.9 14.0.4 EN