Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 04:20 am EST

Geeklog Forums

when templates not found, white page and no error.log


Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
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?
Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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.

One of the Geeklog Core Developers.
 Quote

Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
2) siteconfig.php is better than 1) functions.php

If theme directory is not found, error log or error message display.


Geeklog Japan https://www.geeklog.jp
 Quote

All times are EST. The time is now 04:20 am.

  • 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