plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
252 stars 188 forks source link

Error trying to create a control panel connected to content type #3795

Closed rileydog closed 1 year ago

rileydog commented 1 year ago

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

Traceback: Wayne Glover Docent IMS

[Home](http://184.168.30.89:8080/docentims)
[News](http://184.168.30.89:8080/docentims/news)
[Events](http://184.168.30.89:8080/docentims/events)
[Users](http://184.168.30.89:8080/docentims/Members)
[PMP Breakdown](http://184.168.30.89:8080/docentims/pmp-breakdown)

Search Site Advanced Search…

[Home](http://184.168.30.89:8080/docentims)

We’re sorry, but there seems to be an error…

Here is the full error message:

Traceback (innermost last): Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents Module ZPublisher.WSGIPublisher, line 390, in publish_module Module ZPublisher.WSGIPublisher, line 285, in publish Module ZPublisher.mapply, line 85, in mapply Module ZPublisher.WSGIPublisher, line 68, in call_object Module zope.browserpage.simpleviewclass, line 44, in call Module Products.Five.browser.pagetemplatefile, line 126, in call Module Products.Five.browser.pagetemplatefile, line 58, in call Module zope.pagetemplate.pagetemplate, line 134, in pt_render Module Products.PageTemplates.engine, line 365, in call Module z3c.pt.pagetemplate, line 176, in render Module chameleon.zpt.template, line 298, in render Module chameleon.template, line 214, in render Module chameleon.utils, line 20, in raise_with_traceback Module chameleon.template, line 190, in render Module 163f7c730b9774ad1e638ee38cb39e87, line 303, in render Module 4b33ef6a96f757276913c10b3dd4b720, line 921, in render_master Module 4b33ef6a96f757276913c10b3dd4b720, line 1581, in render_content Module 163f7c730b9774ad1e638ee38cb39e87, line 145, in __fill_main Module zope.tales.expressions, line 250, in call Module Products.PageTemplates.Expressions, line 221, in _eval Module Products.PageTemplates.Expressions, line 152, in render Module plone.app.portlets.browser.manage, line 303, in portal_type_icon AttributeError: 'LayoutPolicy' object has no attribute 'getIcon'

What I Did:

  1. from control panel, select "Content Settings"
  2. Half way down, see "[Manage portlets assigned to this content type]"
  3. select this

What I expect to happen:

  1. I would expect it to take me to the list of portlets

What actually happened:

  1. get the error shown in trace back.
  2. Note: tried for several content types including standard plone CTs and Dexterity types i created

What version of Plone/ Addons I am using: Plone 6.05 basic setup - no activated addons

davisagli commented 1 year ago

@rileydog Thanks for the bug report. I was able to reproduce the problem and submitted a fix in https://github.com/plone/plone.app.portlets/pull/177