Anyone have tips for when mappings don't seem to b...
# cfml-general
p
Anyone have tips for when mappings don't seem to be working? I have an
Application.cfc
this.mappings
that doesn't seem to be taking effect, but when I add it globally in CF Admin it works.
I've restarted the CF server to ensure the app instance was reset, cleared template/component caches, other random code changes. Nothing...
e
For fun, try adding your variables to the application scope, restarting, and then dump the scope. You can also check to see if you have any other applications.cfcs on your host. Additionally, you can temporarily uncheck security protections and restart your CF engine.
r
Is it safe to assume you have done a dump of the values to check?
I had a similar issue w/ a contentbox site where I was running 2 instances of contentbox on 1 CF instance. They had different names but the mapping values were still wrong. I setup 2nd instance of CF to run the other contentbox site in and that sandboxed the setting sufficiently. It might have been overkill but it made sure things were isolated
p
So I think the issue was that the project had an
Application.cfc
and was using
<cfapplication>
elsewhere too, creating conflicts. We have a couple people here who like to use the fusebox methodology yet... Thanks for all the suggestions!