Welcome to Geeklog, Anonymous Saturday, June 21 2025 @ 12:53 pm EDT
Geeklog Forums
when templates not found, white page and no error.log
Status: offline
Forum User
Full Member
Registered: 11/25/04
Posts: 315
When templates not found, no error message and no error.log.
http://project.geeklog.net/tracking/view.php?id=1814
It's hard to find template missing error, isn't it?
http://project.geeklog.net/tracking/view.php?id=1814
It's hard to find template missing error, isn't it?
19
27
Quote
Status: offline
Site Admin
Admin
Registered: 09/27/05
Posts: 1475
If a template file is missing the site will continue to display what it can. If it is a major template file (or a bunch of files) then the whole site may be unrecognizable or a blank page.
An error message could be added to the log file when a template file could not be found.
Geeklog looks in a number of spots for the file so we may only be able to report the last location check.
I am not sure how far we want to go in reporting this though... If a large number of template files are missing the error log will fill up quickly...
Here are a few ideas on how to handle this:
1) Maybe we should add a debug mode for a theme (set in the functions.php file) that if set to true will report any files missing.
2) Maybe like the proposed demo mode which would be set in the siteconfig.php we have a developer mode as will which can be set to display more advanced reporting.
An error message could be added to the log file when a template file could not be found.
Geeklog looks in a number of spots for the file so we may only be able to report the last location check.
I am not sure how far we want to go in reporting this though... If a large number of template files are missing the error log will fill up quickly...
Here are a few ideas on how to handle this:
1) Maybe we should add a debug mode for a theme (set in the functions.php file) that if set to true will report any files missing.
2) Maybe like the proposed demo mode which would be set in the siteconfig.php we have a developer mode as will which can be set to display more advanced reporting.
30
29
Quote
Status: offline
Forum User
Full Member
Registered: 11/25/04
Posts: 315
2) siteconfig.php is better than 1) functions.php
If theme directory is not found, error log or error message display.
If theme directory is not found, error log or error message display.
20
22
Quote
All times are EDT. The time is now 12:53 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content