[coldbox:23068] [ColdBox 4.0] variable [INSTANCE] doesn't exist

You can also install ColdBox’s bleeding edge via CommandBox.

install coldbox-be

Now THAT might be your easiest ColdBox setup yet :slight_smile:

Ah ha! Thanks for the Github code link.

FYI this is what I downloaded:

  • coldbox-standalone-4.0.0-rc.zip from the ColdBox download page at http://www.coldbox.org/download (stand alone and the bundle both show this instance reference in the \system\web\controller.cfc)

  • Unzipped

  • Crack open D:\Downloads\coldbox-standalone-4.0.0-rc\system\web\Controller.cfc

  • Visit line 94 and see :slight_smile:

I’m going to try CommandBox this morning and see what I get…

It’s still odd that the same code works on my workstation and not the server.

Jim

Closer - I haven’t tried CommandBox yet but simply downloaded the ZIP file from Github.

Dropped it on my local machine - app fires right up.

Dropped it on the server - now I get a different error:

Railo 4.2.1.000 Error (Please define at least one appender)
Message No appenders defined
Detail coldbox.system.logging.config.LogBoxConfig.NoAppendersFound
Stacktrace The Error Occurred in
/coldbox/system/logging/config/LogBoxConfig.cfc: line 66

64: // Are appenders defined?
65: if( NOT structKeyExists( logBoxDSL, “appenders” ) ){
66: throw(“No appenders defined”,“Please define at least one appender”,"#getMetadata(this).name#.NoAppendersFound");
67: }
68: // Register Appenders

When I have more time at lunch today I’ll tinker with CommandBox and see what that gives me…

Thanks guys!
Jim

Ahh, seems our release candidate download doesn’t pull from the bleeding edge build, but a special “rc” build that Luis ran back in October

Luis, can you check on if that’s expected or just needs to be updated?

Jim, you can use the code from GitHub, but there will be some small differences since the build script hasn’t been run on it. Namely, the @versionNumber@ placeholders won’t be populated. You can also get the bleeding edge build off of our integration server:
http://integration.staging.ortussolutions.com/artifacts/ortussolutions/coldbox/4.0.0/

That is where The ColdBox Bleeding Edge entry actually points to:
http://www.coldbox.org/forgebox/view/coldbox-be

And that’s what is actually downloaded when you type the following from CommandBox
install coldbox-be

So, all that aside, the rc build still should have worked. So while the “wrong version” was a fun distraction I’m sure there still has to be something different on your server.

Can you confirm if you’ve been checking the settings in the server admin and the web admin?
Also, do you have any Railo settings overridden in your Application.cfc?

I just did a quick test and ran through the Railo settings on a test app. I am able to create the same “No Appenders Found” error message on ColdBox BE when I switch the “Local Scope Mode” to “Modern”. This is under the “Scope” menu. I can pretty much bet your local scope mode is set to classic on your dev machine and somehow set to modern on your server.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Ahh, seems our release candidate download doesn’t pull from the bleeding edge build, but a special “rc” build that Luis ran back in October

Luis, can you check on if that’s expected or just needs to be updated?

Expected, since we are now working towards the final release.