Occasional Page /lucee/lucee/templates/error/error.cfm not found

Hi,

We seem to be getting an yellow error screen very occasionally:

Page /lucee/lucee/templates/error/error.cfm [#webroot#/WEB-INF/lucee/context/lucee/templates/error/error.cfm] not found

Extremly odd because its not happening enough for us to replicate it but our clients have been reporting it is intermittent.

We also noticed that the path doesn’t actually exist:

/WEB-INF/lucee/context/lucee/templates/error/error.cfm

Instead it should be:

/WEB-INF/lucee/context/templates/error/error.cfm

We don’t believe this issue was present in Lucee 5.4.3.16 but it could be it just wasn’t reported before.

OS: Ubuntu 22.04.3 LTS
Java Version: 11.0.7 (AdoptOpenJDK) 64bit
Tomcat Version: Apache Tomcat/9.0.35
Lucee Version: Lucee 5.4.4.38

For now I’ve tried to copy the folder templates to the referenced location, will feedback if that works.

Many thanks!

Chris

1 Like

Hi,

We’re now taking this one step further looking to remove the yellow error screen altogether by handling it somehow. Is there a way to cause the yellow error screen for testing purposes you’re aware of? I’ve managed to force an error but its always the blue CF error.

Thanks,

Chris

You can force the yellow error like this:

<cfinclude template="thisfiledoesnotexist.cfm">

Do you by any chance have a web context that’s actually been assigned the label “lucee”?

You can view your web contexts and their labels at the bottom of the Lucee Admin Overview page.

Maybe try moving your web contexts outside of the webroot? That’s best for security also.