Easyshop
Easyshop copied to clipboard
checkout-order-preview plone4
When i do a checkout and enter all the details and do a "complete order" i get this error
We’re sorry, but there seems to be an error…
Here is the full error message:
Display traceback as text
Traceback (innermost last):
* Module ZPublisher.Publish, line 127, in publish
* Module ZPublisher.mapply, line 77, in mapply
* Module ZPublisher.Publish, line 47, in call_object
* Module zope.formlib.form, line 782, in __call__
* Module Products.PloneGetPaid._patch, line 44, in update
* Module zope.formlib.form, line 763, in update
* Module zope.formlib.form, line 607, in success
* Module easyshop.checkout.browser.order_preview, line 113, in handle_buy_action
* Module Products.CMFCore.WorkflowTool, line 244, in doActionFor
* Module Products.CMFCore.WorkflowTool, line 555, in _invokeWithNotification
* Module Products.DCWorkflow.DCWorkflow, line 282, in doActionFor
* Module Products.DCWorkflow.DCWorkflow, line 421, in _changeStateOf
* Module Products.DCWorkflow.DCWorkflow, line 531, in _executeTransition
* Module zope.event, line 23, in notify
* Module zope.component.event, line 26, in dispatch
* Module zope.component._api, line 138, in subscribers
* Module zope.component.registry, line 323, in subscribers
* Module zope.interface.adapter, line 575, in subscribers
* Module zope.component.event, line 33, in objectEventNotify
* Module zope.component._api, line 138, in subscribers
* Module zope.component.registry, line 323, in subscribers
* Module zope.interface.adapter, line 575, in subscribers
* Module easyshop.order.subscribers.mailing, line 28, in sendOrderMail
* Module easyshop.order.subscribers.mailing, line 85, in mailOrderSubmitted
* Module easyshop.shop.utilities.misc, line 49, in sendMultipartMail
* Module Products.MailHost.MailHost, line 236, in send
* Module Products.MailHost.MailHost, line 444, in _mungeHeaders
* Module email.message, line 266, in set_charset
* Module email.charset, line 389, in body_encode
* Module email.quoprimime, line 198, in encode
* Module email.utils, line 77, in fix_eols
* Module re, line 151, in sub
TypeError: expected string or buffer
Can you say exactly what you entered into each of the fields please?
i did a complete shopping, entered the informations selected the paypal as payment gateway and shipping as standards and finally i selected "Yes, I accept terms and conditions of Owner " and clicked "Complete Order" it get the above error
I have configured the smtp,it throws this error if the smtp values are entered
If i comment this line in Easyshop/src/easyshop.shop/easyshop/shop/utilities.py it works fine
Line 46: "context.MailHost.send(mail.as_string())"
Does it affect the mail sending option?
No, rather what address, name etc. did you enter. And what are the names of the products you bought. The error above suggests that you entered some unicode characters which during the construction of the email message causes the regular expression replace to fail. I want to know which characters these might be, or maybe it's something else.
The Store Name is "Store" Category Name:Cat1 Product Name:product1
SMTP Information Entered:
SMTP server:smtp.gmail.com SMTP port:25 Site 'From' name:Admin Site 'From' address:[email protected]
These were the informations i have entered in setting up the store
Ok, looks like a proper bug in the email construction so. Thanks for reporting it.