gpt4 book ai didi

search - "The specified CFC search could not be found"

转载 作者:行者123 更新时间:2023-12-01 05:12:09 27 4
gpt4 key购买 nike

我们有自己的服务器与应用程序一起工作。我们开始使用不同的提供商进行托管,现在我们遇到了上述错误。

关于 页面,这有效:

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

但是这个不
<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>

我们无法弄清楚为什么会这样。您的帮助将不胜感激

我们使用的路径

我们的应用程序托管在这里:
/home/[mycompany]/public_html/[appname]/

我们的组件在这里:
/home/[mycompany]/public_html/[appname]/components

我们的 Application.cfg 看起来像:
<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]">

最佳答案

components映射目录?根据这个note about "bind" :

In ColdFusion 9 (and ColdFusion 9 only, this note does not apply to ColdFusion 10!), the component path cannot use a mapping. The componentPath value must be a dot-delimited path from the web root or the directory that contains the current page.

关于search - "The specified CFC search could not be found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23933678/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com