Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Site error (cferror)

Guest
May 19, 2006 May 19, 2006
Hi,
I'm using the two lines of code (below) in my application.cfc file:

As you have noticed, the first cferror has the template referenced with a relative path. This was the only way to get it to to allow any page to load, the second line throws an error " error resolving template". Although the application.cfc and both of those templates are on the root! I have all my files inside folders, so I can understand the need of the relative path, but I thought one should not use a relative path in this case and this was the whole idea behind having the error templates in the same place as the application.cfc.

But when I generate an error, it could not find the template again, meaning the ../../errorrequest.cfm could not be found when an actual error occurs!
Any suggestions?
TOPICS
Getting started
346
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 20, 2006 May 20, 2006
LATEST
I think you should either use request-type (which fires upon any error) or exception-type (which fires upon a specific or general exception), but not both. I would suggest you use

<cferror type="exception" exception="any" template="oops.cfm" mailto="me@myDomain.com">

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources