Frappe.email.bulk.flush

My employees get welcome messages normally. However, when I want to send any information via email on the site never get that mail. I suspect those mails might be related to this error.

Method: all, Handler: frappe.email.bulk.flush
Traceback (innermost last):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/tasks.py”, line 77, in scheduler_task
frappe.get_attr(handler)()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/email/bulk.py”, line 182, in flush
order by creation asc limit 1 for update""", now_datetime(), as_dict=1)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line 129, in sql
self._cursor.execute(query, values)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1054, “Unknown column ‘send_after’ in ‘where clause’”)

In newer versions all mails are sent by the background worker. Your database is not migrated correctly.

Hi rmehta,

I used the virtual image (updated frequently). No longer I remember the version.