Ticket #13068 (confirmed Bug)

Opened 4 years ago

Last modified 4 years ago

Update Base field broken on synPropertiesForm

Reported by: stevenhayles Owned by: davisagli
Priority: minor Milestone: 4.x
Component: Archetypes Version: 4.2
Keywords: syndication Cc:

Description (last modified by eleddy) (diff)

On a fresh Plone 4.2 site visit /news/synPropertiesForm

Clicking the calendar icon gives JavaScript error

Uncaught ReferenceError: Calendar is not defined

Setting drop downs and submitting form gives

Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
  Module Products.CMFFormController.ControllerBase, line 231, in getNext
  Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 10, in editSynProperties
   - <FSControllerPythonScript at /Plone/editSynProperties used for /Plone/news>
   - Line 10
  Module Products.CMFDefault.SyndicationTool, line 184, in editSyInformationProperties
  Module DateTime.DateTime, line 350, in __init__
  Module DateTime.DateTime, line 588, in _parse_args
SyntaxError

Change History

comment:1 Changed 4 years ago by eleddy

  • Owner set to davisagli
  • Keywords syndication added
  • Component changed from Unknown to Archetypes
  • Description modified (diff)

can you post the actual syntax error? something smells wrong here.

comment:2 Changed 4 years ago by kleist

Reproducable with 4.3 coredev buildout.

The "ReferenceError: Calendar is not defined" occurs here:

 https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/skins/plone_ecmascript/calendar_formfield.js#L64

The "SyntaxError" is raised by DateTime:

 http://zope3.pov.lt/trac/browser/DateTime/trunk/src/DateTime/DateTime.py#L647

  • Just a packaging error? Since "Calendar" should really not be missing in JavaScript...

comment:3 Changed 4 years ago by kleist

  • Status changed from new to confirmed
Note: See TracTickets for help on using tickets.