The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages - More
> ColdFusion Development
|
Site-Wide Error Page
Discuss Site-Wide Error Page in the ColdFusion Development forum on Dev Shed. Site-Wide Error Page ColdFusion Development forum discussing CFML coding practices, tips on CFML, and other CFML related topics. Find out why ColdFusion is the tool of choice for many e-commerce developers.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 16th, 2011, 07:44 AM
|
|
Registered User
|
|
Join Date: Jun 2011
Posts: 4
Time spent in forums: 1 h 9 m 57 sec
Reputation Power: 0
|
|
Site-Wide Error Page
Hello ...
I set up a site wide error page and stored it in the web root.
I configured the CF admin and put my page (/error_page.cfm)in the "Site-wide Error Handler" field ... but even after a restart of the CF-Service , the page is not displayed when an error occurs ... (ie a not existing page is called).
What else can I do to get the error page used as default error message ?
BR
Dieter
PS I'm using a CFMX7 with an IIS
|

June 16th, 2011, 03:55 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
|
Is the not existing page a CFML page, or an HTML page?
If it is CFML, you need to use the missing template handler, but I can't recall if that option is available in CFMX 7 as that version is over six years old.
If 7 doesn't have that option, or if the page is not a CFM/CFC template, you have to configure the 404 handler at the web server level, since CF will have no knowledge of requests for files that don't exist.
|

June 17th, 2011, 02:51 AM
|
|
Registered User
|
|
Join Date: Jun 2011
Posts: 4
Time spent in forums: 1 h 9 m 57 sec
Reputation Power: 0
|
|
|
I tested both cases ... means once the html and once cfm.
In case of missing html ... the browser gives back the normal 'The page cannot be found' - page. Which would still be ok ... (but would be better to have the 'programmed' one)
In case of cfm ... the browser comes back with a page starting with "The web site you are accessing has experienced an unexpected error...." followed by too much information for the web-user ... means links to knowledgebase, coldfusion documentation, remote address, etc ... this I would like to replace by a more standard page I prepared. (my error_page.cfm)
In the Admin I inserted ... at the Missing Template Handler field my template ... and got no error back (Server has been updated successfully) ... but the server still does not take my template when I call for a non existing template in the url.
What could I do next ?
Thanks for your help !
|

June 17th, 2011, 06:53 AM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
|
Try using a full system path to the template ("c:\my\folder\location\error_page.cfm").
|

June 17th, 2011, 07:54 AM
|
|
Registered User
|
|
Join Date: Jun 2011
Posts: 4
Time spent in forums: 1 h 9 m 57 sec
Reputation Power: 0
|
|
|
I tried ...
C:\Inetpub\wwwroot\ecopelandnew\error_page.cfm (that's where the file is physicaly stored)
but as clicking on "Submit changes" ... the following message appears (at the top) ...
... The file specified as the site wide missing template handler does not exist. The default missing template handler will be used until a replacement is created.
|

June 17th, 2011, 07:36 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
|
hmm, the only things I can think of then is that either there is an error the actual error handler template, or the path is still not correct.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|