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:

math on date? (1997) Protect vs Authenicate (1997) [WebDNA] [ot-security] Heartbleed bug (2014) shipcost (1997) Exclamation point (1997) WebCat Contest (1998) RE: includes and cart numbers (1997) Searching multiple fields from one form field (1997) upgrading (1997) Old $ commands and migration (2004) searchable list archive (1997) AUTONUMBER (2004) [taxRate] [TaxTotal] ? (1997) Updating fields from different platforms (1998) [WebDNA] why is the webdna.us site slow? (sometimes?) (2011) [WAY OFF TOPIC] anybody live in Kansas? (2003) Exposure Opportunity....! (1999) Re[3]: 2nd WebCatalog2 Feature Request (1996) problem with WebDNA Command (2004) WebCatalog vs WebDNA (2002)