• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

The specified CFC could not be found

New Here ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied


We had our own server working with an app. We started hosting with a different provider and now we are getting the above-mentioned error.


On the same page, this works:


<cfset compTest = createObject("component", "components.search")>
<cfset result = compTest.search(1,10,1,"desc","")>
<cfdump var="#result#">

But this one does not

<cfform name="searchResultGridForm">
<cfgrid
name="searchResultGrid"
bindOnLoad="true"
bind="cfc:components.search.search({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{searchedWord@keyup})"
format="html"
selectMode="Row"
selectOnLoad="false"
width="790"
height="290"
colHeaderAlign="Center"
stripeRows="true"
pagesize="10">
<cfgridcolumn name="fileColor" header="Priority" width="50">
<cfgridcolumn name="idFile" header="ID" width="40">
<cfgridcolumn name="firstName" header="First Name" width="80">
<cfgridcolumn name="lastName" header="Last Name" width="80">
<cfgridcolumn name="email" header="Email" width="100">
<cfgridcolumn name="nextImportantDate" header="Next Important Date" width="70">
<cfgridcolumn name="statusName" header="Status" width="100">
<cfgridcolumn name="historyLastInsert" header="Last Note" width="100">
<cfgridcolumn name="fileAssignedTo" header="Assigned to" width="90">
<cfgridcolumn name="edit" header="Actions" width="60" dataAlign="Center">
</cfgrid>
</cfform>


We can't figure out why could that be. We keep getting the error mentioned on the title. Your help would be greatly appreciated

Views

392

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied

The error message might be misleading. First, the code is slightly incorrect. The field searchedWord is undefined.

As a first test, include the text field searchedWord in the form, and set bindOnload="false". Any joy?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied

The searchedWord is defined before on a pice of code that I did not copy, but it arrives correctly. The object being manually created works fine and also when we hardcode the parameters. I am convinced now that the code is fine.

We tried with a test function too that has no parameters in the same object and in different objects and none of the bindings work. When created manually they do work.

The bindOnload=false made no difference

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied

LATEST

I have tested by creating a directory and CFC path identical to yours. I have been unable to reproduce the issue on Coldfusion 10 and 11. What is your version?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied

I just found out that if I move the components from the components folder into the root of the application, it works. WHY? no idea

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied

OK. Curious. What if you, just for laughs, temporarily change the name of the CFC from search to, say, searchCFC?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation