View previous topic :: View next topic |
Author |
Message |
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Sat Nov 11, 2006 11:34 pm Post subject: Testing Custom Error Pages |
|
|
Is there a way to test the custom error pages I have setup? Obviously, testing 404 is easy, but how about ones such as 408 or the 5xx? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Nov 12, 2006 1:02 pm Post subject: Re: Testing Custom Error Pages |
|
|
RTAdams89 wrote: | Is there a way to test the custom error pages I have setup? Obviously, testing 404 is easy, but how about ones such as 408 or the 5xx? |
You could provoke the error by a simple scipt:
Code: | <?php
header('Status: ' . $_GET['code']);
?>
|
Name that script err.php for example and invoke it with an URL of the form http://site/err.php?code=500 . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Sun Nov 12, 2006 3:58 pm Post subject: |
|
|
For some reason when I do that I get standard error pages (in fact not even the default abyss ones, but rather the ones built into Internet explorer) what is that all about?
Oh, and if i disable "friendly error messages" in IE, I just get a blank page... |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Nov 12, 2006 4:14 pm Post subject: |
|
|
You need to disable friendly pages, but if you've done that and its not working, suspect you have made an error in one of your error pages and its preventing the page from showing at all (parse error etc). _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Sun Nov 12, 2006 7:22 pm Post subject: |
|
|
Well if i navigate to a page that doesn't exist, i see my custom 404 page. If Use the script you provided to try and view a 404, i just get the standard IE 404 page.
And yes, friendly error messages are disabled. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Nov 13, 2006 3:36 pm Post subject: |
|
|
RTAdams89,
We suggest trying with another browser. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|