For ages, I’ve had a standard helpers file that I include in my layouts.main.cfm template via includeUDF(‘helpers/helper’). This has always worked fine.
Then I deployed an app on a client’s freshly installed server with Railo 4.1.2.005 and it insists that the function I have inside my helper file isn’t found, even though it’s there.
On my own server, it worked fine (on 4.1.1). So I updated it just now to 4.1.2.005 and now I have the same problem.
The function isn’t set to private or remote or anything. The cfset seems to work fine because if I change the name of the helper file, it complains. It just can’t seem to find the function.
So you are expecting the variables scope in the view to be shared with the variable’s scope in the surrounding layout? I’m not sure that’s a very safe assumption. I know Railo recently put in some fixes to how the variables scope is handled with closures which might have affected this.
Have you tried setting up your helper in the ColdBox config as a global helper with the UDFLibraryFile setting? I think that setting just uses a cfm file. That will include it in every view and handler.
I have a problem of the same sort. I have an existing Coldbox application on CB 3.7, that is running fine. When I update Coldbox to 3.8, the applicationHelper (a cfc, configured globally in the coldbox.cfc), is no longer being found in any handlers, models or views.
Did something change here from 3.7 to 3.8 that I am missing? I am also running on Railo 4.1.