variables.framework = {
action = 'p',
defaultSection = 'main',
defaultItem = 'default',
home = ' main.default',
error = 'main.error',
generateSES = false,
SESOmitIndex = false,
unhandledExtensions = 'cfc',
unhandledErrorCaught = false,
preserveKeyURLKey = 'fw1pk',
maxNumContextsPreserved = 10,
cacheFileExists = false,
diEngine = 'di1',
diLocations = 'services,controllers'
};
variables.framework.environments = {
dev = { reloadApplicationOnEveryRequest = true , baseURL = 'useCgiScriptName', trace = true },
test = { reloadApplicationOnEveryRequest = false, baseURL = '/' },
prod = { reloadApplicationOnEveryRequest = false, baseURL = 'useCgiScriptName', base='/easycal/' }
};
// variables.framework.subsystems = {
// help = { baseURL = 'useCgiScriptName' }
// }
Attempts to resolve: 1) ensured file permissions on the Centos file system for the subsystems directory are correctly set
2) reviewed docs - it seems all subsystems settings available relate to 1.0 version of subsystems
3) updated fw/1 to latest release, checked the release notes for related bug fixes
4) ran a Google search. Found one other instance of someone getting a stack overflow error, using the 1.0 version it seems, because the home: subsystem was not specified for the default error handler.
5) That put me in the direction of considering this might be a path issue. Maybe the path to the subsystem isn't being found on the Centos box.
6) read most of the code related to subsystems in one.cfc. Didn't understand most of it, but I found that the subsystems depend on the baseURL setting.
7) experimented with the variables.framework.subsystems setting to attempt to set a correct baseURL
8) changed configuration settings, using adding a setting for base in prod, to ensure dumps of framework in both the dev environment and prod environment had matching baseURL settings
views/apt/list.cfm has a view() call to views/inc/helpmodal.cfm
views/inc/helpmodal.cfm has a view() call to the subsystem view that would show the user a help screen. As I wrote, this works fine on my Mac.
Here's the code for helpmodal.cfm
<cfscript>
sectionItemPath = replace( getSectionAndItem(), '.', '/' );
</cfscript>
<cfoutput>
<div class="modal fade" id="helpModal" tabindex="-1" role="dialog" aria-labelledby="info" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="info">EasyCal info</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
#view( 'help:' & sectionItemPath )#
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</cfoutput>
I've torn this apart every which way to ensure, for instance, that the issue wasn't in the dynamic path declaration in the view() call, hard coding the path, moving this view call out of helpmodal.cfm so I don't have an include within an include.
Again, any help would be appreciated.
Nando