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
Try to add the product Page Template within the ZMI with id and no file
What I expect to happen:
To see the product appears in the ZMI
What actually happened:
I got the following error:
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 Products.PageTemplates.ZopePageTemplate, line 379, in manage_addPageTemplate
AttributeError: 'str' object has no attribute 'filename'
What version of Python and Zope/Addons I am using:
python 3.11.3
Linux python 3.11.3 zope 5.8.2
The text was updated successfully, but these errors were encountered:
This issue fixed by replacing line 377 in ZopePageTemplate.py
if REQUEST and 'file' in REQUEST:
replace with
if REQUEST and 'file' in REQUEST and REQUEST.get('file'):
BUG/PROBLEM REPORT / FEATURE REQUEST
What I did:
Try to add the product Page Template within the ZMI with id and no file
What I expect to happen:
To see the product appears in the ZMI
What actually happened:
I got the following error:
Traceback (innermost last):
AttributeError: 'str' object has no attribute 'filename'
What version of Python and Zope/Addons I am using:
python 3.11.3
Linux python 3.11.3 zope 5.8.2
The text was updated successfully, but these errors were encountered: