liferealized / cfwheels-trim-params

A cfwheels plugin to trim all params from a request.
http://iamjamesgibson.com/code
3 stars 2 forks source link

invalid call of the function $createParams (plugins/TrimParams/TrimParams.cfc), first Argument (route) is of invalid type, can't cast Object type [Array] to a value of type [string] #1

Closed tdm00 closed 13 years ago

tdm00 commented 13 years ago

I'm running CFWheels 1.1.4 on Railo 3.2.3 Installed the TrimParams plug-in Performed a reload on my application generates an error.

Error Message: invalid call of the function $createParams (/plugins/TrimParams/TrimParams.cfc), first Argument (route) is of invalid type, can't cast Object type [Array] to a value of type [string]

Stack Trace: 189: loc.path = $getPathFromRequest(pathInfo=arguments.pathInfo, scriptName=arguments.scriptName); 190: loc.route = $findMatchingRoute(path=loc.path); 191: return $createParams(path=loc.path, route=loc.route, formScope=arguments.formScope, urlScope=arguments.urlScope); 192: 193:

liferealized commented 13 years ago

Hello,

Thanks for the notice. Most likely wheels core has changed since the plugin was created. If I find some time, I will look into the issue but my time is limited as I am starting another business at the moment. If you figure out the error, please send a pull request.

Thanks, James

tdm00 commented 13 years ago

James,

First, thanks for creating the plugin. Second, I'm new to Wheels and I've never developed a plugin. I'll poke around a little though.

On Aug 1, 2011, at 1:19 PM, liferealized reply@reply.github.com wrote:

Hello,

Thanks for the notice. Most likely wheels core has changed since the plugin was created. If I find some time, I will look into the issue but my time is limited as I am starting another business at the moment. If you figure out the error, please send a pull request.

Thanks, James

Reply to this email directly or view it on GitHub: https://github.com/liferealized/cfwheels-trim-params/issues/1#issuecomment-1702167

tdm00 commented 13 years ago

The last pull request I sent to you resolved this.

liferealized commented 13 years ago

Thanks!