Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
Tom KingTom KingPriority
NewLabels
Fix versions
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
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Tom King
Tom KingPriority
Labels
Fix versions
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
Created 4 July 2015 at 10:14
Updated 5 October 2015 at 14:47
Resolved 5 October 2015 at 14:46
<NINJA EDIT>
---------------
So this looks like if you include a file from Application.cfc, onApplicationStart() won't fire;
Simple test:
//Application.cfc <cfcomponent> <cfset this.name="BEFORE"> <cfinclude template="Test.cfm"> </cfcomponent> //test.cfm <cffunction name="onApplicationStart"> <cfset this.foo="Bar"> <cfset this.name2="AFTER"> </cffunction> //index.cfm <cfdump var="#application#">
(gives application.name="BEFORE", and "foo" is not in the application struct.)
----------------
</NINJA EDIT>
Attempting to run cfWheels 1.4.1 on Lucee Express 5.x (any version).
The key [WHEELS] does not exist, only the following keys are available: [applicationname].
Stack Trace:
https://gist.github.com/neokoenig/4263d2682990c700afd9
It's as though onApplicationStart() never gets called. Wheels is fine in 4.5.x, so this is a 5.x specific thing.
Steps to reproduce:
Download Express 5.x, unzip https://github.com/cfwheels/cfwheels/archive/master.zip into webroot, startup.
If it helps, the wheels startup/include process is something like this:
https://gist.github.com/neokoenig/b8a32f48c7e3288686ab