Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'imaging_properties' configuring carousel tile #781

Closed
Estevangomez opened this issue May 3, 2018 · 4 comments · Fixed by #794
Closed

KeyError: 'imaging_properties' configuring carousel tile #781

Estevangomez opened this issue May 3, 2018 · 4 comments · Fixed by #794

Comments

@Estevangomez
Copy link

Hi, I'm using plone 5.1 and installed collective.cover but when inserting images in the Carousel the image gets blurred
the images loses resolution independent of size, how can I fix it ???
and also clicking on the carousel settings icon appears only one blank line nothing more like the image below:
capturar

@idgserpro
Copy link
Member

It's a good practice to put a traceback of the error you got in the reported issue.

For example, creating a Plone 5.1.1 instance with collective.cover (1.7b2), when clicking on settings of the carousel tile you get:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module collective.cover.tiles.configuration_view, line 248, in __call__
  Module plone.z3cform.layout, line 63, in __call__
  Module plone.z3cform.layout, line 57, in update
  Module plone.app.tiles.browser.base, line 78, in render
  Module z3c.form.form, line 162, in render
  Module zope.browserpage.viewpagetemplatefile, line 49, in __call__
  Module zope.pagetemplate.pagetemplate, line 137, in pt_render
  Module five.pt.engine, line 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 171, in render
  Module 9e5666d4c34c6c276f55e7af5d46be1e.py, line 91, in render
  Module 1dd5318f14c13196daa438a4edf3d2e9.py, line 1826, in render_titlelessform
  Module 1dd5318f14c13196daa438a4edf3d2e9.py, line 451, in render_fields
  Module 1dd5318f14c13196daa438a4edf3d2e9.py, line 126, in render_widget_rendering
  Module 1dd5318f14c13196daa438a4edf3d2e9.py, line 1069, in render_field
  Module five.pt.expressions, line 161, in __call__
  Module Products.Five.browser.metaconfigure, line 485, in __call__
  Module zope.browserpage.viewpagetemplatefile, line 81, in __call__
  Module zope.browserpage.viewpagetemplatefile, line 49, in __call__
  Module zope.pagetemplate.pagetemplate, line 137, in pt_render
  Module five.pt.engine, line 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 171, in render
  Module 8ee38e90e6747b8d63576dc3d249fb59.py, line 610, in render
  Module 8ee38e90e6747b8d63576dc3d249fb59.py, line 481, in render_widget_wrapper
  Module five.pt.expressions, line 161, in __call__
  Module z3c.form.widget, line 154, in render
  Module zope.browserpage.viewpagetemplatefile, line 49, in __call__
  Module zope.pagetemplate.pagetemplate, line 137, in pt_render
  Module five.pt.engine, line 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 191, in render
  Module chameleon.template, line 171, in render
  Module 3a52d5325bb641df4bbf35f18e1b8885.py, line 126, in render
  Module five.pt.expressions, line 154, in __call__
  Module five.pt.expressions, line 123, in traverse
  Module OFS.Traversable, line 300, in unrestrictedTraverse
   - __traceback_info__: ([], 'imaging_properties')
KeyError: 'imaging_properties'

 - Expression: "widget/@@ploneform-render-widget"
 - Filename:   ... rm-3.0.4-py2.7.egg/plone/app/z3cform/templates/macros.pt
 - Location:   (line 100: col 81)
 - Source:     ... place="structure widget/@@ploneform-render-widget"/>
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "properties/imaging_properties"
 - Filename:   ... llective/cover/tiles/configuration_widgets/namedimage.pt
 - Location:   (line 12: col 46)
 - Source:     imaging_properties properties/imaging_properties;
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               context: {...} (11)
               views: <ViewMapper - at 0x7fcb235e9650>
               modules: <TraversableModuleImporter - at 0x7fcb34759f50>
               args: <tuple - at 0x7fcb3f880050>
               nothing: <NoneType - at 0x7a7030>
               properties: <ImplicitAcquisitionWrapper portal_properties at 0x7fcb2c480fa0>
               target_language: <NoneType - at 0x7a7030>
               default: <object - at 0x7fcb3f856a80>
               request: <instance - at 0x7fcb23f000e0>
               wrapped_repeat: {...} (0)
               stored_data: {...} (4)
               loop: {...} (0)
               template: <ViewPageTemplateFile - at 0x7fcb2a9a6690>
               translate: <function translate at 0x7fcb28c085f0>
               options: {...} (0)
               view: <NamedImageWidget image at 0x7fcb28c34850>

The same error happens in Plone 5.0.x. Isn't it related to https://docs.plone.org/manage/upgrading/version_specific_migration/p4x_to_p5x_upgrade.html#deprecation-of-portal-properties-xml? In Plone 5 we don't have portal_properties being used for this configuration. The functionality problem here is the same as #667 ("Can't configure tile in Plone 5") but with another fix.

For the "blurred" image, if possible, give us a print of the before/after or even attach the image here.

@hvelarde hvelarde mentioned this issue May 3, 2018
17 tasks
@idgserpro
Copy link
Member

@Estevangomez we have more Plone 5 issues in #642. Are you familiar with Plone development? We can really get a hand for fixing these issues.

@idgserpro idgserpro added the bug label May 3, 2018
@hvelarde
Copy link
Member

hvelarde commented May 3, 2018

thanks for reporting the issue; this package is NOT compatible with Plone 5, that's pretty clear in the documentation.

@rodfersou
Copy link
Member

IIRC there is a vocabulary to get the image sizes, what can make this template work in both versions of plone.

@hvelarde hvelarde changed the title Carousel KeyError: 'imaging_properties' configuring carousel tile Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants