Msgstr "Specified CFC search not found"

We had our own server working with the application. We started hosting with a different provider, and now we get the above 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 it is 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 cannot understand why this could be. Your help will be greatly appreciated.

The paths we use

Our application is located here:

/home/[mycompany]/public_html/[appname]/

Our components are here:

/home/[mycompany]/public_html/[appname]/components

Our Application.cfg looks like this:

<cfapplication name="[name goes here]" sessionManagement="yes" sessionTimeout="#createTimeSpan(0,8,0,0)#">


<cfset APPLICATION.db = "[appname]">

<cfset APPLICATION.website_url = "http://[ourURL].com">
<cfset APPLICATION.template_path = "#application.website_url#/template/">
<cfset APPLICATION.localPath = "/home/[mycompany]/public_html/[appname]/">
<cfset APPLICATION.codeAlgorithm = "[specific stuff goes here]">
<cfset APPLICATION.codeEncoding = "[code encoding]">
<cfset APPLICATION.codeKey = "[specific stuff goes here]">
+4
source share
1 answer

Is the componentsmapped folder? According to this note about "bind" :

ColdFusion 9 ( ColdFusion 9 ColdFusion 10!), . componentPath , , - , .

+1

Source: https://habr.com/ru/post/1542481/


All Articles