You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During my efforts to familiarize with bda.plone.org, I noticed that the "Shop" portlet doesn't work when e.g. the @@shop_controlpanel (and all others I tried) is called in the site root: below the Cart viewlet (which links to /@@cart) I get an error (msgid "text_error_rendering_portlet"), and two identical tracebacks in the error log:
Traceback (innermost last):
Module Products.PloneFormGen.patches, line 21, in safe_render
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 132, in pt_render
Module zope.pagetemplate.pagetemplate, line 240, in __call__
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 819, in do_loop_tal
Module zope.tales.tales, line 685, in setRepeat
Module zope.tales.tales, line 110, in __init__
Module bda.plone.shop.browser.navigation, line 199, in links
Module bda.plone.shop.browser.navigation, line 106, in lookup_navigation_items
Module bda.plone.shop.browser.navigation, line 104, in unsorted_items
Module zope.component.registry, line 250, in getAdapters
Module bda.plone.shop.browser.navigation, line 659, in __init__
Module bda.plone.shop.browser.navigation, line 165, in context_is_default_page
Module Products.LinguaPlone.browser.defaultpage, line 23, in getDefaultPage
Module Products.CMFCore.utils, line 10, in check_getToolByName
Module Products.CMFCore.utils, line 120, in getToolByName
AttributeError: portal_languages
Having a look in the ZMI, the portal_languages tool is clearly present. In other contexts down the tree, the portlet seems to work.
Is there perhaps some Plone 4.3.15 compatibility issue?
The text was updated successfully, but these errors were encountered:
IMO, the problem is unrelated to LinguaPlone; rather, the aq_parent call in line 162 should be dropped. With this line present, the portal_languages tool is seeked in the Zope root instead in the Plone site (which fails, of course). See #105.
tobiasherp
added a commit
to visaplan/bda.plone.shop
that referenced
this issue
Feb 12, 2018
During my efforts to familiarize with
bda.plone.org
, I noticed that the "Shop" portlet doesn't work when e.g. the@@shop_controlpanel
(and all others I tried) is called in the site root: below theCart
viewlet (which links to/@@cart
) I get an error (msgid"text_error_rendering_portlet"
), and two identical tracebacks in the error log:Having a look in the ZMI, the
portal_languages
tool is clearly present. In other contexts down the tree, the portlet seems to work.Is there perhaps some Plone 4.3.15 compatibility issue?
The text was updated successfully, but these errors were encountered: