我正在運行一個幾乎未修改的Plone 5.0實例。由文件夾名稱導致的Plone錯誤
我今天創建了很多文件夾,其中一個在父文件夾「Design」中命名爲「Layout」,它位於根文件夾中。
該版式文件夾中的文件夾設計的觀點導致了錯誤。我看到的是一個錯誤頁面
We’re sorry, but there seems to be an error…
The error has been logged as entry number 1470387402.080.1605824509.
If you need to report this to the Site Administration, please include this entry number in your message.
Plone中的錯誤日誌中有如下條目:
Exception Type
RuntimeError
Exception Value
maximum recursion depth exceeded
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.BaseRequest, line 444, in traverse
Module Products.CMFCore.DynamicType, line 147, in __before_publishing_traverse__
Module Products.CMFDynamicViewFTI.fti, line 236, in queryMethodID
Module Products.CMFDynamicViewFTI.fti, line 197, in defaultView
Module Products.CMFPlone.PloneTool, line 771, in browserDefault
Module Products.CMFDynamicViewFTI.browserdefault, line 99, in getLayout
Module Products.CMFDynamicViewFTI.fti, line 136, in getViewMethod
Module Products.CMFDynamicViewFTI.browserdefault, line 72, in __call__
Module Products.CMFDynamicViewFTI.browserdefault, line 72, in __call__
Module Products.CMFDynamicViewFTI.browserdefault, line 72, in __call__
Module Products.CMFDynamicViewFTI.browserdefault, line 72, in __call__
Module Products.CMFDynamicViewFTI.browserdefault, line 72, in __call__
,並繼續進行幾十個相同的ca LLS。
這隻發生在這個特定的文件夾。我刪除它並再次創建它:同樣的錯誤。所有其他文件夾工作正常,甚至更深的文件夾結構工作正常。
任何想法有什麼不對這個特定的文件夾名稱?
這是需要修復的Plone 4的迴歸。雖然「危險」,但是佈局是組織內容的非常常見的名稱,並且很可能會被全球的Plone用戶所使用 - 即使是英語以外的語言(例如pt-br)也是如此。我能夠在5.0.5中重現錯誤,方法是在站點根目錄中添加一個佈局文件夾,並將後者的視圖更改爲標準(並且還打破了文件夾內容的工具欄)。正如你想的那樣,'PloneSite在Plone>上存在'RuntimeError:layout屬性',並且沒有字符串:' –