Re: [erpnext-user-forum] PO Generated - But Email not getting sent

43 views
Skip to first unread message

Mitul Limbani

unread,
Jun 11, 2014, 2:04:10 AM6/11/14
to erpnext-dev...@googlegroups.com
I have configured it against nginx and supervisord.

Nothing seen in /var/log/nginx/access.log , error.log and /var/log/supervisor/supervisord.log


Here is output of /home/erp/frappe-bench/log/web.error.log

2014-06-11 01:08:24 [1261] [ERROR] Error handling request
Traceback (most recent call last):
  File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py", line 224, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 285, in application
    return f(*args[:-2] + (request,))(*args[-2:])
  File "/home/erp/frappe-bench/apps/frappe/frappe/app.py", line 46, in application
    response = frappe.handler.handle()
  File "/home/erp/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
    execute_cmd(cmd)
  File "/home/erp/frappe-bench/apps/frappe/frappe/handler.py", line 84, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 495, in call
    return fn(*args, **newargs)
  File "/home/erp/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 43, in make
    date=date)
  File "/home/erp/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 85, in _make
    comm.insert()
  File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 140, in insert
    self.run_post_save_methods()
  File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 397, in run_post_save_methods
    self.run_method("on_update")
  File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 369, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 440, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 423, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 367, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/erp/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 29, in on_update
    self.update_parent()
  File "/home/erp/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 26, in update_parent
    observer()
  File "/home/erp/frappe-bench/apps/erpnext/erpnext/controllers/status_updater.py", line 91, in on_communication
    self.get("communications").sort(key=lambda d: d.creation)
AttributeError: 'NoneType' object has no attribute 'sort'


Not sure if this is related to the email error, i guess it is.



Regards,
Mitul Limbani,
Chief Architech & Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-71967196
Cell: +91-9820332422



On Wed, Jun 11, 2014 at 11:26 AM, Rushabh Mehta <rme...@gmail.com> wrote:
Check your server log for 500 also your version does not seem to be latest - 500s are now caught and posted on the client.

(also post traces on the developer forum)



@rushabh_mehta

On 11-Jun-2014, at 10:53 am, Mitul Limbani <mi...@enterux.in> wrote:

No I m selecting standard print format pre-configured in the system.

using custom letter head, but the same displays properly.

but everytime i try to email the PO from the screen it gives the same JS error, and 500 internal server error.

Regards,
Mitul Limbani,
Chief Architech & Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-71967196
Cell: +91-9820332422



On Wed, Jun 11, 2014 at 10:40 AM, Rushabh Mehta <rme...@gmail.com> wrote:
Are you using a custom Print Format? Could be an error in the print format. Can you see the print format in the preview?



@rushabh_mehta

On 10-Jun-2014, at 8:44 pm, Mitul Limbani <mi...@enterux.in> wrote:

Output of JS Console in browser.

  1. Uncaught TypeError: Cannot read property 'menu' of undefined frappe.min.js:1267
    1. (anonymous function)frappe.min.js:1267
    2. o.event.dispatchjquery.min.js:3
  1. POST http://www.enterux.net/ 500 (Internal Server Error) jquery.min.js:4
    1. l.cors.a.crossDomain.sendjquery.min.js:4
    2. o.extend.ajaxjquery.min.js:4
    3. frappe.request.callfrappe.min.js:293
    4. frappe.views.CommunicationComposer.Class.extend.send_emailfrappe.min.js:1258
    5. (anonymous function)frappe.min.js:1256
    6. $.extend.buildfrappe.min.js:1632
    7. (anonymous function)frappe.min.js:1256
    8. o.event.dispatchjquery.min.js:3
  1. Uncaught SyntaxError: Unexpected token < frappe.min.js:294
    1. (anonymous function)frappe.min.js:294
    2. k.fireWithjquery.min.js:2
    3. (anonymous function)jquery.min.js:4

Regards,
Mitul Limbani,
Chief Architech & Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-71967196
Cell: +91-9820332422



On Tue, Jun 10, 2014 at 4:48 PM, Anand Doshi <an...@erpnext.com> wrote:
Hi.

Check the browser's javascript console, if it shows any error messages.

-Anand.


On Tue, Jun 10, 2014 at 2:28 PM, Mitul Limbani <mi...@enterux.in> wrote:

Hello,

I have installed and configured email settings to send out emails and the same works well.

However when I click on email icon on the PO page, it popups up the email window but the email doesn't get sent which includes the PO as attachment.

Tried clearing cache with no help.

Any suggestions of where to look into ?

Mitul


--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/CAAoGpGSLkBL13GgntR%2BANFvztiuXAd1PTcaUYxRt0RRjk0rymQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/CAAQzbF0NJQEvUzNpZGc%2BL%3Dn9K3iuFjy0UCAXm2P8iVn4aNMr%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/CAAoGpGQ20Mryzq_m-fGBEq0kV7Z%3D75z-Kti00ph9pJH38BnpoQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/54E084B0-0F2C-4A60-B836-67E70860397E%40gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/CAAoGpGRi_aHT-wChfzvqwc7jVb9NCP7ncWnpqN%3D%3Dsu-oWy9AnA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/8C3F63B8-0F1E-4EC2-B362-D1768C64D9AB%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

Pratik Vyas

unread,
Jun 11, 2014, 2:20:19 AM6/11/14
to erpnext-dev...@googlegroups.com
Email is related to communication. I'd suggest that you pull latest
changes (switch the app directories to develop also). If the issue
persists make an issue on github (frappe).

Thanks,
--
Pratik
erpnext

Mitul Limbani

unread,
Jun 11, 2014, 2:53:39 AM6/11/14
to erpnext-dev...@googlegroups.com
latest updates looks like have solved the problem.

thanks :)

Regards,
Mitul Limbani,
Chief Architech & Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-71967196
Cell: +91-9820332422



--
Note:

If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0Emtrvmo7fVKZohPKR1dOWXHy5qr0-nURwQ2_VQdAMrDZw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages