Re: [WebDNA] Error: template...

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102270
interpreted = N
texte = --Apple-Mail-54-9779614 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit This comes from the ErrorMessages.db in the /CGI-Executables/ WebCatalogEngine folder, from the line... TemplateNotFoundError: template '[param1]' not found You can customise this. In ours we have... TemplateNotFound[showif [fileinfo error.txt][exists][/fileinfo]=F] [text]line_ending=%0D%0A[/text][ReturnRaw]HTTP/1.0 404 Not Found[unurl] %0D%0A[/unurl][/ReturnRaw][/showif][showif [fileinfo error.txt][exists] [/fileinfo]=T][include file=error.txt][/showif] Which looks for a custom error.txt file in the website folder first. Paul On 27 Mar 2009, at 13:41, Psi Prime, Matthew A Perosi wrote: > Anyone know how to get rid of the default error message created when > a page is not found? > > When the WebCatalogEngine is running I always get > "Error: template '/www/docs/xxxx.html' not found" > or > "Error: template '/www/docs/xxxx.tpl' not found" > which of course returns a HTTP 200 status, > but I need a 404 status instead. > > What's also strange is that I do set the 404 on all my sites to > redirect to an error.html page, but most of the time that Apache > directive is ignored. > > Linux > Apache 2.0.52 > WebDNA 6 > > Matthew A Perosi JewelerWebsites.com > ------------------------------by Psi Prime------- > Senior Web Developer 323 Union Blvd. > Totowa, NJ 07512 > Pre-Sales: 888.872.0274 > Service: 973.413.8213 > Training: 973.413.8214 > Fax: 973.413.8217 > > http://www.jewelerwebsites.com > http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc > http://www.psiprime.com > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ --Apple-Mail-54-9779614 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable This comes from the = ErrorMessages.db in the /CGI-Executables/WebCatalogEngine folder, from = the line...

TemplateNotFoundError: = template '[param1]' not found

You can = customise this. In ours we = have...

TemplateNotFound[showif = [fileinfo = error.txt][exists][/fileinfo]=3DF][text]line_ending=3D%0D%0A[/text][Return= Raw]HTTP/1.0 404 Not = Found[unurl]%0D%0A[/unurl][/ReturnRaw][/showif][showif [fileinfo = error.txt][exists][/fileinfo]=3DT][include = file=3Derror.txt][/showif]

Which looks for a = custom error.txt file in the website folder = first.

Paul

On 27 Mar = 2009, at 13:41, Psi Prime, Matthew A Perosi wrote:

Anyone = know how to get rid of the default error message created when a page is = not found?

When the WebCatalogEngine is running I always = get
"Error: template '/www/docs/xxxx.html' not = found"
or
"Error: template '/www/docs/xxxx.tpl' not = found"
which of course returns a HTTP 200 status,
but I need a 404 = status instead.

What's also strange is that I do set the 404 on = all my sites to redirect to an error.html page, but most of the time = that Apache directive is ignored.

Linux
Apache = 2.0.52
WebDNA 6

Matthew A Perosi =            JewelerW= ebsites.com
------------------------------by Psi = Prime-------
Senior Web Developer =             32= 3 Union Blvd.
=             &n= bsp;           &nbs= p;      Totowa, NJ 07512
Pre-Sales: = 888.872.0274
Service:   973.413.8213
Training: =  973.413.8214
Fax: =       973.413.8217

http://www.jewelerwebsites.com=
http://en.wikipedia= .org/wiki/Psi_Prime%2C_Inc
http://www.psiprime.com



-= --------------------------------------------------------
This message = is sent to you because you are subscribed to
the mailing list = <talk@webdna.us>.
To unsubscribe, E-mail to: = <talk-leave@webdna.us>
archives: = http://mail.webdna.us/list/talk@webdna.us
old archives: = http://dev.webdna.us/TalkListArchive/

= --Apple-Mail-54-9779614-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Error: template... (Donovan Brooke 2009)
  2. Re: [WebDNA] Error: template... (Donovan Brooke 2009)
  3. Re: [WebDNA] Error: template... (Toby Cox 2009)
  4. Re: [WebDNA] Error: template... (Paul Willis 2009)
  5. Re: [WebDNA] Error: template... (christophe.billiottet@webdna.us 2009)
  6. [WebDNA] Error: template... ("Psi Prime, Matthew A Perosi " 2009)
--Apple-Mail-54-9779614 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit This comes from the ErrorMessages.db in the /CGI-Executables/ WebCatalogEngine folder, from the line... TemplateNotFoundError: template '[param1]' not found You can customise this. In ours we have... TemplateNotFound[showif [fileinfo error.txt][exists][/fileinfo]=F] [text]line_ending=%0D%0A[/text][returnraw]HTTP/1.0 404 Not Found[unurl] %0D%0A[/unurl][/ReturnRaw][/showif][showif [fileinfo error.txt][exists] [/fileinfo]=T][include file=error.txt][/showif] Which looks for a custom error.txt file in the website folder first. Paul On 27 Mar 2009, at 13:41, Psi Prime, Matthew A Perosi wrote: > Anyone know how to get rid of the default error message created when > a page is not found? > > When the WebCatalogEngine is running I always get > "Error: template '/www/docs/xxxx.html' not found" > or > "Error: template '/www/docs/xxxx.tpl' not found" > which of course returns a HTTP 200 status, > but I need a 404 status instead. > > What's also strange is that I do set the 404 on all my sites to > redirect to an error.html page, but most of the time that Apache > directive is ignored. > > Linux > Apache 2.0.52 > WebDNA 6 > > Matthew A Perosi JewelerWebsites.com > ------------------------------by Psi Prime------- > Senior Web Developer 323 Union Blvd. > Totowa, NJ 07512 > Pre-Sales: 888.872.0274 > Service: 973.413.8213 > Training: 973.413.8214 > Fax: 973.413.8217 > > http://www.jewelerwebsites.com > http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc > http://www.psiprime.com > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ --Apple-Mail-54-9779614 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable This comes from the = ErrorMessages.db in the /CGI-Executables/WebCatalogEngine folder, from = the line...

TemplateNotFoundError: = template '[param1]' not found

You can = customise this. In ours we = have...

TemplateNotFound[showif = [fileinfo = error.txt][exists][/fileinfo]=3DF][text]line_ending=3D%0D%0A[/text][Return= Raw]HTTP/1.0 404 Not = Found[unurl]%0D%0A[/unurl][/ReturnRaw][/showif][showif [fileinfo = error.txt][exists][/fileinfo]=3DT][include = file=3Derror.txt][/showif]

Which looks for a = custom error.txt file in the website folder = first.

Paul

On 27 Mar = 2009, at 13:41, Psi Prime, Matthew A Perosi wrote:

Anyone = know how to get rid of the default error message created when a page is = not found?

When the WebCatalogEngine is running I always = get
"Error: template '/www/docs/xxxx.html' not = found"
or
"Error: template '/www/docs/xxxx.tpl' not = found"
which of course returns a HTTP 200 status,
but I need a 404 = status instead.

What's also strange is that I do set the 404 on = all my sites to redirect to an error.html page, but most of the time = that Apache directive is ignored.

Linux
Apache = 2.0.52
WebDNA 6

Matthew A Perosi =            JewelerW= ebsites.com
------------------------------by Psi = Prime-------
Senior Web Developer =             32= 3 Union Blvd.
=             &n= bsp;           &nbs= p;      Totowa, NJ 07512
Pre-Sales: = 888.872.0274
Service:   973.413.8213
Training: =  973.413.8214
Fax: =       973.413.8217

http://www.jewelerwebsites.com=
http://en.wikipedia= .org/wiki/Psi_Prime%2C_Inc
http://www.psiprime.com



-= --------------------------------------------------------
This message = is sent to you because you are subscribed to
the mailing list = <talk@webdna.us>.
To unsubscribe, E-mail to: = <talk-leave@webdna.us>
archives: = http://mail.webdna.us/list/talk@webdna.us
old archives: = http://dev.webdna.us/TalkListArchive/

= --Apple-Mail-54-9779614-- Paul Willis

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:

Pay by Mail (CC, Check, Money Order) (2001) Location of Browser Info.txt file (1997) PCS Frames (1997) [OT] Forums - check it out (2005) problems with 2 tags shakur (1997) Formatting time output (2000) summ=T (2003) Reversed words (1997) Setting up shop (1997) WebCat2 - [format thousands] (1997) Problems with [Search] param - Mac Plugin b15 (1997) Searchable WebCat (etc.) Docs ? (1997) Copyright ? (1997) Hiding HTML and page breaks (1997) StoreBuilder ADD 2 CART redirects to default.tpl - PLEASE STOPTHIS! (2002) Setting up the server (1997) Emailer (WebCat2) (1997) Search Debugging (2004) suffix mapping for NT? (1997) Separate SSL Server (1997)