托管传输后 ColdFusion 错误

发布于 2024-09-29 10:19:13 字数 373 浏览 0 评论 0原文

我最近将 ColdFusion 站点从一个域移动到另一个域,没有任何问题(实际上),除了我遇到一些麻烦之外。我是一名 LAMP 开发者/设计师,CF 对我来说有点陌生,所以请原谅我的无知。

除了商店组件之外,该网站工作正常,我收到以下错误“.cart.models.store 名称不是有效的组件或接口名称。组件和接口名称不能为空,并且不能以句点开头或结尾.”。在整个过程中我更改的唯一代码是 config.ini,我将 vmap=SitenameDev 更改为 vmap=,正如此文件中的注释所建议的那样如果站点所在的目录是 webroot 目录,则执行此操作。

一如既往,我们将不胜感激任何对此错误或转移时常见问题的见解。

江南

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. I am a LAMP developer / designer and CF is a bit foreign to me so pardon my ignorance.

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.". 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.

Any insight on this error or common issues when transferring will be greatly appreciated, as always.

JN

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

假情假意假温柔 2024-10-06 10:19:13

仅供参考,config.ini 是特定于您正在处理的应用程序的内容,而不是任何类型的 ColdFusion 约定。其中的“vmap”条目很可能意味着“虚拟映射”。它的值可能用于解析对象的路径(即 [vmap 的值] +“.cart.models.store”)。如果它为空,您会收到错误,因为 ColdFusion 希望其路径不以期间,无法解析其要创建对象的文件的位置,

因此以前此路径是“SitenameDev.cart.models.store”,您需要做的是找出“cart\”所在的目录。 models\store”层次结构。然后在 ColdFusion 管理员中设置一个到其父目录的映射 - 这是 ColdFusion 识别的物理目录的别名。然后您选择的任何别名都应设置为 config.ini 中的“vmap”值文件。

FYI, the config.ini is something specific to the app you're dealing not a ColdFusion convention of any sort. Most likely the "vmap" entry therein means "virtual mapping". Its value is probably being used to resolve a path to an object (i.e. [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.

So previously this path was "SitenameDev.cart.models.store". What you need to do is figure out what directory houses the "cart\models\store" hierarchy. Then in the ColdFusion administrator setup a mapping to its parent directory - that is an alias to a physical directory that ColdFusion recognizes. Then whatever alias you choose should be set as the "vmap" value in the config.ini file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文