bluedynamics / bda.plone.ticketshop

Sell tickets for events
Other
1 stars 1 forks source link

fehler beim checkout #1

Closed thet closed 9 years ago

thet commented 11 years ago
Traceback (innermost last):
  Module ZPublisher.Publish, line 60, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.Five.browser.metaconfigure, line 479, in **call**
  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 888, in do_useMacro
  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 954, in do_defineSlot
  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 858, in do_defineMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 954, in do_defineSlot
  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 946, in do_defineSlot
  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 858, in do_defineMacro
  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 531, in do_optTag_tal
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
  Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
  Module zope.tales.tales, line 696, in evaluate
- URL: /www/plone/amkumma-rc/src/bda.plone.checkout/src/bda/plone/checkout/browser/view.pt
- Line 22, Column 4
- Expression: <PathExpr standard:u'context/@@checkoutform'>
- Names:
    {'args': (),
     'container': <AKEvent at /plone/goetzis/kultur-freizeit-sport/events/test-buchung2>,
     'context': <AKEvent at /plone/goetzis/kultur-freizeit-sport/events/test-buchung2>,
     'default': <object object at 0x7f9e5b4f54b0>,
     'here': <AKEvent at /plone/goetzis/kultur-freizeit-sport/events/test-buchung2>,
     'loop': {},
     'nothing': None,
     'options': {},
     'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x11448260>,
     'request': <HTTPRequest, URL=http://amkummarc.adm.at/[…]/@@checkout>,
     'root': <Application at >,
     'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x10f092d0>,
     'traverse_subpath': [],
     'user': <PropertiedUser 'thet'>,
     'view': <Products.Five.metaclass.SimpleViewClass from /www/plone/amkumma-rc/src/bda.plone.checkout/src/bda/plone/checkout/browser/view.pt object at 0x112a8250>,
     'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x10815390>}
  Module zope.tales.expressions, line 217, in **call**
  Module Products.PageTemplates.Expressions, line 155, in _eval
  Module Products.PageTemplates.Expressions, line 117, in render
  Module yafowil.plone.form, line 28, in __call__
  Module yafowil.plone.form, line 15, in render_form
  Module yafowil.controller, line 32, in **init**
  Module bda.plone.checkout.browser.form, line 300, in finish
  Module bda.plone.orders.common, line 145, in save
  Module bda.plone.orders.common, line 165, in create_bookings
  AttributeError: 'NoneType' object has no attribute 'getObject'

Schritte zum Nachvollziehen Ihre Bestellung Warenkorb Normal

    1 quantity
    Preis: 23.00

Netto: 23.00
USt.: 0.00
Versandkosten: 10.00
Gesamt: 33.00
Persönliche Angaben
Johannes
Raggam
office@programmatic.pro
+43123
Rechnungsadresse
Neubaugasse
8020
Graz
Österreich
Zahlungsart
Barzahlung

http://amkummarc.adm.at/[…]/@@checkout

als admin angemeldet + als anonymer benutzer.

im firefox wird der fehler erzeugt, im chromium mit anderen checkout-daten nicht.
thet commented 11 years ago

in bda.plone.orders.create_bookings hat items folgenden wert:

[('7691cff0ff2c40b4860b40c1209043ba', Decimal('1'), ''), ('6d5052e857d244f9abcba23b71b7ff53', Decimal('1'), ''), ('34454eb2e8914d10834e836d47af1ae0', Decimal('1'), ''), ('a89ba190554a4afebcc4fd2e1570dfe8', Decimal('3'), ''), ('30e61a20e1bb4c31bb88166b75ab6bff', Decimal('4'), ''), ('2229f26b9a8b45b9bd0081eba4b7ae49', Decimal('11'), ''), ('7710f4accf1946d3b03c9329d1a7eeff', Decimal('1'), ''), ('07213b3d05bc43a58b10881a0f3a9316', Decimal('1'), '')]

kanns sein, dass das cookie nach erfolgtem / fehlgeschlagenem checkout nicht mehr gelöscht wird?

ich tests nochmal mit manuell gelöschtem cookie, ob ich das problem nochmal nachvollziehen kann.

thet commented 11 years ago

scheint tatsächlich so, als ob das cookie nach dem checkout nicht gelöscht wird. das oben beschriebene problem ist bei mir aber nicht mehr aufgetreten und dürfte für den online gang keine rolle spielen. wir müssen den shop jetzt halt noch genau testen.

auf längere sicht sollten wir das cookie handling optimieren und die cookies sobald als möglich vom client löschen.

rnixx commented 9 years ago

the cookie gets deleted on sucessful checkout. it might be that the cookie remains if an error occurs while checkout. i'll close this issue now, reopen if necessary