site-wide error page doesn't have "error" variable like ACF

Description

When using a custom error handler as defined in Settings > Error > General Error Template of the Lucee server admin, ACF provides an error variable in order to handle the error. It appears as though Lucee does not provide this same error variable, and instead makes the exception available via a cfcatch structure.

This is a compatibility issue with ACF and this bug report was requested by Brad Wood.

Attachments

1
  • 15 Oct 2021, 06:05 pm

Activity

Show:

Zac Spitzer 10 June 2024 at 23:37

dub357@gmail.com 10 June 2024 at 20:36

2.5 years and multiple versions since this was reported and verified. Has there been any progress on getting this fixed?

Pothys - MitrahSoft 3 November 2021 at 10:44
Edited

Related discussion from mailing list https://dev.lucee.org/t/error-variable-structure/1673
cfcatch doesn't have error details like error variable. Some keys (listed below) are not available in cfcatch.

  • browser

  • datetime

  • diagnostics

  • GeneratedContent

  • HTTPReferer

  • mailto

  • QueryString

  • RemoteAddress

  • RootCause

  • Template

Pothys - MitrahSoft 18 October 2021 at 10:26

I've checked this ticket and confirmed the issue happened on lucee latest version 5.3.9.13-SNAPSHOT too. When using the custom error template defined in admin, the error details are not passed in the error variable instead it was available in the cfcatch block. In ACF, it was passed in error variable. Using the cferror tag, lucee passes the details in the error variable.

https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/PageContextImpl.java#L2037-L2038
https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/PageContextImpl.java#L2086-L2087

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 15 October 2021 at 18:06
Updated 10 June 2024 at 23:37

Flag notifications