Re: [Zope] Can't have custom 404 (NameNotFound) Errors?
That is incorrect. It happens anytime there is a NameNotFound error, try it for yourself before. The standard error show just fine for everything else. Chris --- Jo Meder <jo@meder.de> wrote:
Am 17.02.2002, 01:58 Uhr schrieb Chris Bruce <chrisabruce@yahoo.com>:
It appears (Zope 2.4) that one can't catch the NameNotFound Error? Is this true? Whenever I point to a non-existent page, the error message is not the standard_error_html, in fact it appears to be a message that is hard coded in the python code. Is there any way to have a custom 404 message?
This has been answered earlier this week: The hard coded message appears iff your standard_error_html contains errors.
Jo.
-- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
__________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
Chris Bruce <chrisabruce@yahoo.com> wrote:
That is incorrect. It happens anytime there is a NameNotFound error, try it for yourself before. The standard error show just fine for everything else.
--- Jo Meder <jo@meder.de> wrote:
The hard coded message appears iff your standard_error_html contains errors.
I did try it after stumbling over the very same problem and correcting standard_error_html did solve the problem for me, believe me. If you only get the hard coded message for 404 errors the bug in your standard_error_html is very probably inside your specialized handling of this case. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
Maybe my problem is that I am using "standard_error_message" instead of "standard_error_html"? --- Jo Meder <jo@meder.de> wrote:
Chris Bruce <chrisabruce@yahoo.com> wrote:
That is incorrect. It happens anytime there is a NameNotFound error, try it for yourself before. The standard error show just fine for everything else.
--- Jo Meder <jo@meder.de> wrote:
The hard coded message appears iff your standard_error_html contains errors.
I did try it after stumbling over the very same problem and correcting standard_error_html did solve the problem for me, believe me.
If you only get the hard coded message for 404 errors the bug in your standard_error_html is very probably inside your specialized handling of this case.
Jo.
-- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
__________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
Am 17.02.2002, 10:36 Uhr schrieb Chris Bruce <chrisabruce@yahoo.com>:
Maybe my problem is that I am using "standard_error_message" instead of "standard_error_html"?
Ahhh, sorry about that. You're right of course, the correct name is "standard_error_message". Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
Looks like your right, after all. I put a simple non-dtml page and it did show using "standard_error_message" Sorry to doubt you! Chris --- Jo Meder <jo@meder.de> wrote:
Chris Bruce <chrisabruce@yahoo.com> wrote:
That is incorrect. It happens anytime there is a NameNotFound error, try it for yourself before. The standard error show just fine for everything else.
--- Jo Meder <jo@meder.de> wrote:
The hard coded message appears iff your standard_error_html contains errors.
I did try it after stumbling over the very same problem and correcting standard_error_html did solve the problem for me, believe me.
If you only get the hard coded message for 404 errors the bug in your standard_error_html is very probably inside your specialized handling of this case.
Jo.
-- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
__________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
participants (2)
-
Chris Bruce -
Jo Meder