RE: [coldbox:12633] Re: Issues running a CB 3.1 app in a subdir of main site

Well actually, app mapping is now deprecated as the framework tries to figure it out for you. In general that works unless you try to reinit the framework on a call to a file other than something in the app root (like a proxy) There’s a COLDBOX_APP_MAPPING variable in Application.cfc if you’re having issues bootstrapping, but I don’t want to send you off on a wild goose chase since I don’t actually have any reason to believe that is related to your issue. It’s just the first thing I thought of when you said it works in the web root, but not in a sub folder.

Are you getting any errors at all, or are your preHandler() methods just silently being ignored.

Another thing to check is if your mappings are correct. i.e., do you have a mapping for “coldbox” or is it just in the web root?

Thanks!

~Brad

The preHanders are totally ignored. I threw aborts in there and they
were ignored. So an error does get thrown because I'm initializing a
variable in the preHandler.

And I do map /coldbox to the appropriate dir. I have quite a few CB
3.1 apps on this machine in various states of development. :slight_smile:

Rob

that doesn’t seem right, something else is amiss there of why a preHandler() would be ignored.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

I’ve seen similar strange behavior where dumps/aborts get ignored when using implicit structs within arguments for a function.

http://stackoverflow.com/questions/6948541/odd-coldfusion-behavior-abort-not-honored