Testing Custom Error Pages

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Sat Nov 11, 2006 11:34 pm    Post subject: Testing Custom Error Pages Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Nov 12, 2006 1:02 pm    Post subject: Re: Testing Custom Error Pages Reply with quote

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 View user's profile Send private message Send e-mail
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Sun Nov 12, 2006 3:58 pm    Post subject: Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Nov 12, 2006 4:14 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Sun Nov 12, 2006 7:22 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Nov 13, 2006 3:36 pm    Post subject: Reply with quote

RTAdams89,

We suggest trying with another browser.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group