Plone 4.3 - image_view 突然要我登录

Plone 4.3 - image_view suddenly wants me to login

每当我将图像(DAV 或 HTML)上传到我的 Plone 站点时,图像就会被上传并创建。我可以参考图片,它显示在文件夹 "gallery" 视图中。

但是,当我访问该图像进行查看时,Plone 说我没有上下文的权限(作为管理员)。

我从自定义模板中的错误中了解到这种行为,但我根本没有触及 image_view。

此实例(在调试模式下)的 error_log 没有显示任何痕迹。

我重建了目录但没有成功。

一个视图and/or在哪里可以设置image_view的权限?

更新

好的,一定是主题相关的?!当我卸载我的主题时,一切正常。

更新二

是主题。具体来说 theme_base。每当我在 Plone 中安装主题时,我都会看到 plonetheme.mythemetheme_base。当我将它切换到 Sunburst Theme 时,image_view 再次工作,但其他一切都没有。

不过我的 skins.xml 应该没问题:

<object name="mytheme_custom"
    meta_type="Filesystem Directory View"
    directory="plonetheme.mytheme:skins/mytheme_custom"/>
<skin-path name="plonetheme.mytheme" based-on="Sunburst Theme">
<layer name="mytheme_custom"
    insert-after="custom"/>
</skin-path>

主题是在this tutorial

之后完成的

更新三

从 ZMI 的 error_log 中删除 Unauthorized 后(感谢@mathias),我能够追踪并修复我的 main_template.pt 中有问题的行。现在可以了。非常感谢!

由于我的评论是这个问题的答案,所以我也将其添加为答案。

For better debug infos, please remove Unauthrorized (Exception) from the ignored exceptions in the error_log (ZMI).

Also make sure, debug mode and verbose security is on.

Security implementation should be python.

If you now trigger the error, you should see what's wrong.