Uploaded image for project: 'Lucee Development'
  1. LDEV-415

The key [WHEELS] does not exist, only the following keys are available: [applicationname].

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.49
    • Fix Version/s: 5.0.0.66
    • Labels:
    • Environment:

      Lucee 5.x express / Win7

      Description

      <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

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              neokoenig Tom King
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: