404 Error Mod
Downloads of 404 Error Mod 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 | ||
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 |
404 Error Mod | ||
---|---|---|
Summary | Displays a 404 ERROR page. | |
Validation | Latest mod is XHTML compliant. | |
Mod Updated | 18 Sep 2024 | |
Download link | 404 Error Mod v14.0.0.9
| |
Download stats | Downloads Stats | |
Author(s) | Steven Davis | |
Homepage | 404 Error Mod (This page) | |
Mod Support | TNG Community Forums | |
Contact Developer | Steven Davis | |
Latest Mod | 14.0.0.9 | |
Min TNG V | 14.0 | |
Max TNG V | 14.0.5 | |
Files modified | ahnentafel.php ajx_fampreview.php ajx_perspreview.php browse_dna_tests.php compare_selected_atdna.php compare_selected_dna.php compare_selected_mtdna.php compare_selected_ydna.php familygroup.php fan.php globallib.php img_viewer.php pedigree.php show_dna_test.php showalbum.php showmap.php showmedia.php showmediaxmllib.php showrepo.php showreport.php showsource.php verticalchart.php | |
Related Mods | ||
Notes | Some templates, like 19 and 21, may require changing or commenting out the 404_page.php inline CSS for the go back button. |
Purpose of the mod
This TNG modification was written to give users a TNG error page instead of a blank page which may cause them to abandon your website. Replaces thispagedoesnotexist.html with a modified existing TNG function.
Developer
This mod was developed by Steven Davis.
Advantages
- Sends a 404 status code and displays an error page when a page is not found.
- Creates an optional 404_error_log.txt file so administrators can correct bad links.
- Error pages are shown for DNA, cemeteries, documents, families, histories, media, people, sources etc.
- Uses the active template to display the error page.
- Includes a custom cfg file in the mod folder to add a custom page with messages and links.
- The custom cfg file includes most languages.
Requirements
- A working TNG installation.
- A backup of all affected files (see the list in the summary to the right)
- An installed current version of the Mod Manager.
Revision History
Mod Version | TNG Version | Date | Contents |
---|---|---|---|
14.0.0.9 | 14.0+ | 18 Sep 2024 | Added an optional configuration file to install languages and rewrote the custom page. |
14.0.0.7 | 14.0+ | 15 Sep 2024 | Fixed PHP undefined variable warning |
14.0.0.6 | 14.0+ | 07 May 2024 | Records IP address in the 404 log file |
14.0.0.5a | 14.0+ | 25 Dec 2023 | Changed inline CSS styling so mytngstyle.css can override the default CSS. Added additional instructions for creating a custom 404 page. |
14.0.0.5 | 14.0+ | 22 Dec 2023 | Reworked mod so 404-page.php file is optional. Added changing the default error message without using the 404-page.php file. |
14.0.0.4 | 14.0+ | 20 Dec 2023 | Separated the 404 file from the cfg file. |
14.0.0.3 | 14.0+ | 18 Dec 2023 | Creates a 404 error log text file. This will show any 404 error which includes users adding characters in the URL. |
14.0.0.2 | 14.0+ | 16 Dec 2023 | First version released publically |
Conflicts and Issues
Person Not Found Mod and Source Not Found Mod
If these mods are installed and a person or source is not found, an additional message will be displayed at the top of either the getperson.php or showsource.php page.
Installation
- Uninstall and delete previous version of this mod (if installed)
- Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
- Extract the contents from the downloaded zip file into the mods folder or FTP the extracted contents to your mods folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.
- To use different languages with a custom page, copy the 404_error_custom_page_v14.0.0.9.cfg from the 404_file_v14.0.0.9 folder to the TNG mods folder and install.
Using the 404_error_custom_page_v14.0.0.9.cfg is optional
In the event of a problem
- Try using the Mod Manager Remove capability.
- Copy the backup of the affected files back to your TNG directory.
- Retry installing mod.
- Contact us through the TNG Community Forums.
Uninstalling the mod
If you want to completely Remove (uninstall) this mod you should
- click the Uninstall button to uninstall the mod.
- click the Delete button to delete the config file from the mods folder.
- manually Delete the 404_error_log.txt file from the TNG folder if it exists.
- manually Delete the 404_file folder from the TNG mod folder if Mod Manager does delete the folder.
- manually Delete the 404_page.php file from the TNG folder if it exists.
Upgrade
- Uninstall and eventually Delete the current Mod and associated Mod folder.
- Proceed as for an installation with the new Mod.
- To upgrade to version 14.0.0.8, replace the existing 404_page.php file with the new file.
- if you customized the 404_page.php file, transfer your changes to the new 404_page.php file.
Visualization
Test the mod by displaying an individual then, in the browser url, and type some extra zeros after the person id= and press enter.
The following screens show the page when the 404 error occurs:
404 ERROR PAGE This is the default page and language that appears after the mod is installed
404 ERROR PAGE with alternate error message Message changed after installing the 404_page.php file
404 ERROR PAGE with with default error message and buttons Requires the 404_page.php file
Page URL status with mod installed
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 | |
---|---|---|---|---|---|---|
Family Histories | Steven Davis | Mod developer | 14.0.0.9 |
|
EN | |
MOTYER Family Genealogy | John Mark Motyer | Public site | See here | See here | EN | |
Our Roy and Boucher Family | Ken Roy | Replaces Person Not Found Mod and Source Not Found Mod mods | 14.0.0.9 |
|
EN,FR | |
Chris Korte's New Zealand Genealogy Project | Chris Korte | Public / Private | 14.0.0.9 |
|
DA,EN,FR,DE | |
The Duttons of New England | Darrin Dutton | Public / Private | 14.0.0.9 |
|
EN |
- Mods for TNG v14
- Ahnentafel.php mods
- Ajx fampreview.php mods
- Ajx perspreview.php mods
- Browse dna tests.php mods
- Compare selected atdna.php mods
- Compare selected dna.php mods
- Compare selected mtdna.php mods
- Compare selected ydna.php mods
- Familygroup.php mods
- Fan.php mods
- Globallib.php mods
- Img viewer.php mods
- Pedigree.php mods
- Show dna test.php mods
- Showalbum.php mods
- Showmap.php mods
- Showmedia.php mods
- Showmediaxmllib.php mods
- Showrepo.php mods
- Showreport.php mods
- Showsource.php mods
- Verticalchart.php mods