Bug Fix-Adminlib Folder

From TNG_Wiki
Jump to: navigation, search
Bug Fix-Adminlib Folder
Summary Fixes an error in function tng_adminheader in adminlib.php that occasionally logs the user out of TNG.
Mod Updated {{{mod_last_update}}}
Download link bug_fix-adminlib_folder_v9.2.0.1.zip
TNG 11.0
TNG 10.0
TNG 9.0
Download stats
Author(s) Robin Richmond
Homepage Robin Richmond's Genealogy Database
Mod Support My Mod Support form or TNG Community Forums
Contact Developer My Mod Support form
Latest Mod
Min TNG V 9.2.0
Max TNG V 11.0.1
Files modified
Related Mods

Purpose of the Mod

Fixes an error in function tng_adminheader in adminlib.php where a <script> element does not use $cms['tngpath'] and therefore does not resolve properly if the program calling it is not in the main TNG folder.

TNG Admin programs that are not in the main TNG folder (which are a rare breed) will thus fail at runtime if they try to invoke TNG's LITBox feature.

Also, under rare circumstances that I do not understand, that incorrect <script> element in adminlib.php can cause TNG admin programs that are not in the main TNG folder to restart the current user session, thus logging the user out of TNG.

The situation exists in TNGv9.2* (and perhaps earlier) through TNGv11.0.1.

Compatibility With Other Mods

Gedcom Import Purge implements the same patch to adminlib.php as this mod, so this mod is unnecessary if you have already installed that mod.


  • A working TNG installation.
  • An installed current version of the Mod Manager.

Automated Installation

  1. Remove and delete previous version of this mod.
  2. Backup adminlib.php, the only file updated by this mod.
  3. Download the .zip file, Extract its .cfg file to the mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.

In the event of a problem

  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support form.

No visualization

Mod Change History

Mod Version TNG Version Date Note 9.2.0 - 11.0.1 24 May 2016 Initial release.

Sites using this mod

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

URL User Note Mod-Version TNG-Version User-language
Robin Richmond's Genealogy Database Robin Richmond Mod developer TNGv11.0 English