Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request._fw1.DOACTION is undefined #49

Open
boris-schwarz opened this issue Nov 7, 2017 · 1 comment
Open

request._fw1.DOACTION is undefined #49

boris-schwarz opened this issue Nov 7, 2017 · 1 comment
Assignees

Comments

@boris-schwarz
Copy link

When restructuring an old Plugin to meet the architecture of this new MuraFW1 Plugin, I came across the following error:

request._fw1.DOACTION is undefined when updating the plugin or doing an Appreload.

I did some debugging and the following change in /framework/one.cfc did the trick, since request._fw1 was always an empty struct:

if ( !structKeyExists( request, '_fw1' )) { // not working
to
if ( !structKeyExists( request, '_fw1' ) || structIsEmpty(request._fw1)) { // working

The Error started in /model/handlers/murafw1.cfc at getApplication().setupApplicationWrapper()... Going from there it went to /Application.cfc at setupApplicationWrapper(), which lead directly into /framework/one.cfc at setupApplicationWrapper() where it basically fails at the first line of the function if ( structKeyExists( request._fw1, "appWrapped" ) ) return; because request._fw1 was always empty.

I compared every critical file between a fresh download of MuraFW1 and my restructured Plugin to make sure I didn't leave out a file or configuration. Apart from some View- and Layout-Files, the code seems to be matching (using BeyondCompare).

A point might be, that it's also happening in a manually upgraded Version of Mura CMS (from 6.1 to 7).

Another point also might be, that Mura cannot rename /plugins/[newPluginID]/ (e.g. /plugins/12/) to /plugins/myPluginPackage/ when installing the plugin. I renamed the folder and changed tPlugins.package in the database.

@gpearson
Copy link

The last paragraph I had the same issue. I resolved it by fixing the install function of plugin.cfc. Anytime the plugin had an issue due to my typos the plugin would not rename. Once I figured that out I was up and running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants