Re: Custom error files

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18752
interpreted = N
texte = >>Someone please remind me how you get rid of the template xxx not found >>message and replace it with a custom template. >> >>I changed my errormessages.db file to: >>TemplateNotFound [IncludeFile /error.tmpl] >> >>then at the root of each vhost I am setting up a error.tmpl file. Now when >>I try to access a bad url, it just shows: [IncludeFile /error.tmpl], it is >>not actually including the file. >> >>What am I doing wrong? > >I think the [include] files you reference inside the errormessages.db file are a special case -- they must be referenced relative to the errormessages.db file. Try that instead, I think it will work ... :)Sorry, I may have been wrong about this. One thing I didn't notice earlier is that you're using the wrong syntax -- it's include not includeFile -- so maybe if you make this change it will work properly.Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. RE: Custom error files (Britt T. 1998)
  2. Re: Custom error files (Kenneth Grome 1998)
  3. Re: Custom error files (Kenneth Grome 1998)
  4. Custom error files (Britt T. 1998)
>>Someone please remind me how you get rid of the template xxx not found >>message and replace it with a custom template. >> >>I changed my errormessages.db file to: >>TemplateNotFound [IncludeFile /error.tmpl] >> >>then at the root of each vhost I am setting up a error.tmpl file. Now when >>I try to access a bad url, it just shows: [IncludeFile /error.tmpl], it is >>not actually including the file. >> >>What am I doing wrong? > >I think the [include] files you reference inside the errormessages.db file are a special case -- they must be referenced relative to the errormessages.db file. Try that instead, I think it will work ... :)Sorry, I may have been wrong about this. One thing I didn't notice earlier is that you're using the wrong syntax -- it's include not includeFile -- so maybe if you make this change it will work properly.Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

To do multiple appends with single submit (2002) Bug Report, maybe (1997) WebCatalog security on NT (2000) Softball questions (2003) WebCat2 - Getting to the browser's username/password data (1997) [OT] Quick Java Help (2004) [WebDNA] [BULK] WebDNA 7 & Amazon Cloud (2011) RE: type 2 errors with ssl server (1997) Store Builder, technical infos (1998) time and welcome (1999) Navigator 4.01 (1997) Lost Field (1998) [OT] Kerio Mailserver (2003) Image download problem (2001) can WC render sites out? (1997) Sun doesn't have an emailer app? (2000) Problems getting parameters passed into email. (1997) [OT] HTML render (2003) Is the Finder required? (1998) [ShowNext] (1997)