Suggestions: 1. Create the datasource in Lucee's A...
# cfml-general
b
Suggestions: 1. Create the datasource in Lucee's Admin (see attached example), not in a CFM or CFC page. 2. Define application-scoped variables in
onApplicationStart
, not in
onRequest
.
f
@BK BK I have already implemented these two solutions. But unfortunately, this does not help
b
Missing datasource: It is highly unlikely for your application not to be aware of a datasource defined in the Server Administrator. Such settings apply server-wide. Missing application variables: In the case of a struct, you should define in onApplicationStart, not only the application-scoped variable (the struct), but also its keys. For example, you should define in onApplicationStart, not only
application.CampaignStepsNames
, but also its keys,
EMAIL_TESTIMONIAL_REQUEST
,
EMAIL_OFFER
,
SEND_POSTCARD
, and so on. To increase chances of success, make sure that onApplicationStart returns true (that is, application starts up successfully) and that onRequestStart returns true (that is, not to stand in the way of ColdFusion processing the request). Remember to restart Lucee after making any changes.