简体   繁体   English

托管转移后的ColdFusion错误

[英]ColdFusion error after hosting transfer

I recently moved a ColdFusion site from one domain to the other with no issue (practically) besides one which I am having some trouble figuring out. 我最近将ColdFusion站点从一个域移到了另一个域(实际上)没有问题,除了我很难解决的一个问题。 I am a LAMP developer / designer and CF is a bit foreign to me so pardon my ignorance. 我是LAMP开发人员/设计师,CF对我来说有点陌生,请原谅我的无知。

The site is working properly except for the store component, I am getting the following error "The .cart.models.store name is not a valid component or interface name.Component and interface names cannot be empty and cannot start or end with a period.". 除商店组件外,该站点正常运行,出现以下错误“ .cart.models.store名称不是有效的组件或接口名称。组件和接口名称不能为空,并且不能以句点开头或结尾”。 The only piece of code that I have changed throughout this process has been the config.ini, I changed the vmap=SitenameDev to vmap= as the notes in this file recommneded to do if the directory housing the site was the webroot directory. 在此过程中,我唯一更改过的代码就是config.ini,我将vmap=SitenameDev更改为vmap=因为建议将该文件中的注释设置为容纳站点的目录是webroot目录。

Any insight on this error or common issues when transferring will be greatly appreciated, as always. 与往常一样,在转移时对此错误或常见问题的任何见解将不胜感激。

JN JN

FYI, the config.ini is something specific to the app you're dealing not a ColdFusion convention of any sort. 仅供参考,config.ini是您正在处理的应用程序的特定内容,而不是任何形式的ColdFusion约定。 Most likely the "vmap" entry therein means "virtual mapping". 其中的“ vmap”条目最有可能表示“虚拟映射”。 Its value is probably being used to resolve a path to an object (ie [value of vmap] + ".cart.models.store". With it empty, you're getting an error because ColdFusion wants its paths to not start with a period, and is unable to resolve the location of the file its looking for to create an object. 它的值可能被用来解析到对象的路径(即[vmap的值] +“ .cart.models.store”。如果将其为空,则会收到错误消息,因为ColdFusion希望其路径不以a开头期间,并且无法解析其在寻找要创建对象的文件的位置。

So previously this path was "SitenameDev.cart.models.store". 因此,以前该路径为“ SitenameDev.cart.models.store”。 What you need to do is figure out what directory houses the "cart\\models\\store" hierarchy. 您需要做的是找出存放“ cart \\ models \\ store”层次结构的目录。 Then in the ColdFusion administrator setup a mapping to its parent directory - that is an alias to a physical directory that ColdFusion recognizes. 然后,在ColdFusion管理员中,设置到其父目录的映射-这是ColdFusion可以识别的物理目录的别名。 Then whatever alias you choose should be set as the "vmap" value in the config.ini file. 然后,您选择的任何别名都应在config.ini文件中设置为“ vmap”值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM