[ColdBox 4.0.0-BE] ..symbol you provided _targetAction is not the name of a function

As an FYI. I installed ColdBox 4-BE (coldbox-4.0.0+00002-201501201357) via CommandBox today and started getting the below error when I pass a URL with some URL params. The error does not exist when I use the standalone ColdBox-RC download fron the website. My URL is in the format which causes the error… myapp/index.cfm/Dashboard/dashboard/project/1

Event: Dashboard.dashboard
Routed URL: Dashboard/dashboard/project/1/
Layout: N/A (Module: )
View: N/A
Timestamp: 01/21/2015 03:02:28 PM

can you post the commands you used, so we can replicate. Or send us a recipe of it.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

To get ColdBox w/ CommandBox: box install coldbox-be

My link off of the view is rendered as:

I have a handler called Dashboard.cfc with a function called dashboard which sets some values then renders the view: <cfset renderView(“dashboard/dashboard”)> views > dashboard > dashboard.cfm

The link still occurs if the link is

Could it be because my function is the same name as the component or I have dashboard.cfm nested in the same folder name??

Is this what you needed? Sorry I am new to ColdBox and not super familiar with things just yet!

Chad, here are the CommandBox commands I tried and it worked fine:

coldbox create app dashboard --installColdBoxBE
coldbox create handler dashboard dashboard
start --!openbrowser
server open /index.cfm/dashboard/dashboard

Can you show us the code in your dashboard CFC? I’m thinking perhaps you have another variable called “dashboard” that is interfering with the function name.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

My Handler:

<cfset event.setValue(“chkUserLayout”, dashboard.chkUserLayout(“pmses”,membIdForNow,“1”) )>

<cfset renderView(“dashboard/dashboard”)>

Could it be my dashboard property to the Wirebox mapping called dashboard as well: map(“dashboard”).to(“models.dashboard.dashboard”);

Yes, that’s the problem. You have two things called “dashboard” in that CFC. You can’t name a function the same thing as a property. Well, you can obviously, but it breaks stuff. “variables.dashboard” needs to only point to one thing at a time.

Rename your function or your property.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com