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:

PIXO (1997) carriage returns in data (1997) Webstar 4.2 Stops Serving (2000) Shipping costs again (1998) Slightly OT: Regex and Date Modified/Created (2002) OT: Apache Question (2003) WebCommerce: Folder organization ? (1997) WebCatalog/Mac 2.1b2 New Features (1997) DOS variable bug (was SandBox and ImageMagick) (2003) all records returned. (1997) categories (1997) Database of Tax Rates? (1997) test (2000) Banners (1997) converchars in sendmail context.... (2004) TcpConnect get files on ver. 5.x FIXED FIXED FIXED - (2004) If Empty ? (1997) The word TYPE in search contexts and fields (1998) Multiple ShipTo Addresses (2003) WC2.0 Memory Requirements (1997)