安装collective.documentviewer后,我将文件上传到plone站点,没有任何问题。我可以使用文档查看器正确预览文件一段时间,但是当我重新启动服务器并尝试访问包含 pdf 和 doc 文件的文件夹后,它会抛出一些回溯,如下所示:
URL: /abc/demo/ofs.interfaces.ifolder-dvpdf-group-view Line 24, Column 0 Expression: <PythonExpr view.results(portal_type=file_types)> Names: {'container': <ATFolder at /abc/demo>, 'context': <ATFolder at /abc/demo>, 'default': <object object at 0xb75ec7e0>, 'here': <ATFolder at /abc/demo>, 'loop': {}, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xcb2eaf4>, 'request': <HTTPRequest, URL=http://88.198.104.37:8081/abc/demo/dvpdf-group-view>, 'root': <Application at >, 'template': <TTWViewTemplate at /abc/demo/ofs.interfaces.ifolder-dvpdf-group-view>, 'user': <PloneUser 'xyz'>, 'view': <five.customerize.zpt.TTWView object at 0xc80df8c>} Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__ __traceback_info__: view.results(portal_type=file_types) Module PythonExpr, line 1, in <expression> Module collective.documentviewer.views, line 613, in results Module collective.documentviewer.views, line 604, in getContents Module collective.documentviewer.views, line 630, in b_size AttributeError: 'TTWView' object has no attribute 'global_settings'
我无法查看文件夹内容。不用说,我无法使用查看器查看文件。我已经尝试停用和重新激活文档查看器,还创建了一个新的 plone 实例。但一段时间后面临同样的问题。有人可以指导吗?