简体   繁体   English

Sitecore > 默认店面 (pbCS) 安装 > 产品详细信息页面返回空引用异常

[英]Sitecore > Default Storefront(pbCS) installation > Product detail page returns a Null Refference Exception

I was trying to install the default Storefront site (powered by Commerce Server).我试图安装默认的 Storefront 站点(由 Commerce Server 提供支持)。 It looks good at the moment, I managed to rebuild all indexes and publish the content.目前看起来不错,我设法重建了所有索引并发布了内容。 However, I can't reach product detail page - I receive an exception.但是,我无法访问产品详细信息页面 - 我收到一个异常。 Example here .示例在这里

I had faced with the similar issue when I tried to click on any catalog category.当我尝试单击任何目录类别时,我遇到了类似的问题。 The log-file contains the same error message without any details.日志文件包含相同的错误消息,但没有任何详细信息。 Could you please suggest something to fix this issue?你能提出一些建议来解决这个问题吗?

PS After the finishing the installation I didn't have any products on the site. PS 安装完成后,网站上没有任何产品。 I fixed that issue:我解决了这个问题:

  1. selected the default Adventure Works catalog in the Sitecore tree( using content manager ).在 Sitecore 树中选择了默认的 Adventure Works 目录(使用内容管理器)。
  2. Filled in field CategoryDatasource (with the path to categories)填写字段CategoryDatasource (带有类别路径)

I think it might cause the error which I described above.我认为这可能会导致我上面描述的错误。

Thank you in advance for the help.预先感谢您的帮助。

You have to set the catalog for the site via a home node property.您必须通过主节点属性设置站点的目录。

在此处输入图片说明

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

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