I’m currently migrating an existing application from ACF to Lucee. It uses a script based UDF, residing in an cfinclude which is also used to set various REQUEST vars like DSN etc. This is included via onRequestStart in Application.cfc. Both Application.cfc and the cfinclude file reside in the webroot.
In a dump of REQUEST I can see all the vars are set OK but the UDF is not available and any calls to it fail with No matching function found errr.
I have tried relocation of the UDF into its own file in /WEB-INF/lucee/library/function and refactoring into a tag based function but neither works. I’ve also located the UDF directly in the onRequestStart in Application.cfc file
I have been through the Lucee admins looking for a setting I maybe missing. As both files are within the root I don’t see that I need a mapping.
So I’m stuck - I have scanned the Lucee docs looking for recommendstions/best practices on location of UDFs but I can’t find anything as yet.
Am I missing something really obvious / stupid?
Thanks for reading - any help or advice gratefully received.