shiftregister-vg / Mura-Plugin--External-URL-Mappings

A Mura CMS plugin that allows you to map URLs from other systems to content within Mura CMS. Particularly useful when migrating sites from other systems to Mura CMS and URL patterns don't match.
Other
0 stars 0 forks source link

CF9 issue #3

Closed CatherineMortali closed 13 years ago

CatherineMortali commented 13 years ago

On install:

Element 5C3AE765F6CE1159D471BF76F0C884EC is undefined in a Java object of type class coldfusion.runtime.LocalScope.

C:\inetpub\wwwroot\siteroot\plugins\extURLMappings_30\eventHandlers\MainEventHandler.cfc

Windows 2008 server running CF9. Anything I can do to help troubleshoot? This would be so useful!

Thanks, Catherine

shiftregister-vg commented 13 years ago

Catherine, which version of CF9 are you running? Also, which version of Mura? I'll try and setup a duplicate environment to troubleshoot this.

CatherineMortali commented 13 years ago

9.0.1 Enterprise

Let me know when you want some help!

shiftregister-vg commented 13 years ago

It looks like it might just be a scoping issue. Try changing line 26 in /plugin/plugin.cfc to:

<cfset structClear(application[variables.key].urlService) />

It looks like I may have left the variables. off of the reference to key and CF only looked in the local scope rather than traversing the full scope tree. If that works I'll roll it up into an official release.

CatherineMortali commented 13 years ago

No... Same error:

at cfMainEventHandler2ecfc1285579813$funcONAPPLICATIONLOAD.runFunction(C:\inetpub\wwwroot\whs\plugins\extURLMappings_34\eventHandlers\MainEventHandler.cfc:15) TEMPLATE C:\inetpub\wwwroot\whs\plugins\extURLMappings_34\eventHandlers\MainEventHandler.cfc

shiftregister-vg commented 13 years ago

Try updating eventHandlers/MainEventHandler.cfc to match this: https://github.com/stevegood/Mura-Plugin--External-URL-Mappings/blob/master/eventHandlers/MainEventHandler.cfc

I found a spot where I didn't declare the local[key] struct. Obviously Railo and ACF don't handle struct creation on key assignment the same way.

shiftregister-vg commented 13 years ago

Did you make the change then reinstall the plugin or did you make the change to the already installed plugin?

I'm downloading CF9 now to see if I can reproduce the error.

CatherineMortali commented 13 years ago

Install worked great. Previous time, I had made the change and then reinstalled.

Worked like a charm... I'll keep you posted if I find any other CF issues. Thanks, Steve.