Products.Carousel 停止工作 - 似乎与 plone.app.registry 有关

发布于 2024-10-31 06:05:56 字数 732 浏览 4 评论 0原文

我在我的 Plone 4.0.2 站点中安装了 Products.Carousel 2.1b3。直到一两天前它还工作得很好。

第一个症状是,当单击文件夹的“轮播”选项卡时,它不会显示选项卡(仅显示选项卡上方的消息 - 该消息表示我应该转到“内容”选项卡来编辑现有横幅)。

我在 Plone 控制面板中停用并重新激活了该产品。它似乎已经纠正了选项卡不出现的问题。在那之后,然而,其他一些奇怪的症状:

  • 一些轮播拒绝出现(看起来但我不确定唯一出现的轮播是 Plone 站点的轮播)
  • 宽度和高度配置不被尊重
  • 对于确实出现的轮播,没有过渡,滑块仅显示第一个横幅

最后,在 event.log 中,有一个关于 plone.app.registry 的警告:

2011-04-07T17:45:55 WARNING OFS.Uninstalled Could not import class 'Registry' from module 'plone.app.registry.registry'

但我不知道这是在轮播问题之前还是之后开始显示的。

关于如何修复它有什么想法吗?

编辑——

经过一些实验,它似乎通过删除collective.carousel来修复。

有谁知道 Products.Carousel 和 Collective.carousel 之间存在不兼容性吗?不应在同一站点同时安装两者吗?

I have Products.Carousel 2.1b3 installed in my Plone 4.0.2 site. It worked alright up until a day or two ago.

First symptom was that when clicking on the Carousel tab for a folder, it wouldn't show the tabs (only the message above the tabs - the one which says that I should go to Contents tab to edit existing banners).

I deactivated and then reactivated the product in the Plone Control Panel. It seems to have corrected the tabs not appearing problem. After that, however some other strange symptons:

  • Some Carousels refuse to appear (it seems but I am not sure that the only Carousel appearing is the one for the Plone Site)
  • The width and height configuration are not respected
  • For the Carousel that does appear, there is no transition and the slider shows only the first banner

Finally, in the event.log, there is a Warning about plone.app.registry:

2011-04-07T17:45:55 WARNING OFS.Uninstalled Could not import class 'Registry' from module 'plone.app.registry.registry'

But I have no idea whether this started showing before or after the Carousel problems.

Any ideas on how I can fix it?

EDIT --

After some experimentation, it seems to be fixed by removing collective.carousel.

Does anyone know about any incompatibility between Products.Carousel and collective.carousel? Should one NOT install both at the same time in the same site?

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

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

发布评论

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

评论(1

百变从容 2024-11-07 06:05:56
  1. 运行 bin/instance debug 此处报告的错误在正常日志中看不到,这种情况并不罕见。
  2. “某些轮播拒绝出现”听起来可能是脚本问题 - 尝试使用 Firefox 和 Firebug 查看是否存在 404(文件未找到)错误或 JavaScript 错误。
  3. 虽然 OFS.Uninstalled 只是一个警告,但我见过网站因删除 plone.app.registry 而完全崩溃。然而,这不是常见的症状。我怀疑这是问题所在,但您总是可以将 plone.app.registry 添加到您的构建中,看看您的问题是否消失。
  1. Run bin/instance debug It's not uncommon to see errors reported there that you don't see in your normal log.
  2. "Some Carousels refuse to appear" sounds likely to be a script problem - try using Firefox with Firebug to see if there are either any 404 (file not found) errors or javascript errors.
  3. While OFS.Uninstalled is just a warning, I've seen sites completely broken by removing plone.app.registry. However, this isn't the usual symptom. I doubt it's the issue, but you can always add plone.app.registry to your buildout and see if your problems go away.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文