CRM Communication Issues

I am concerned about the Communication feature. Client’s need to link the communication they have had with various doctypes. All of these are live sites and please help in resolving these issues.

On one of the installations, which is on develop branch and updated today, and my other master branches, I’m unable to see the entire screen when I click on New Communication. Screen Shot at the end of this message.

In another installation, which is on develop, but has not been updated for a few weeks, I’m getting the following error, once I save a Communication and try to link that communication with a DocType:

Traceback (most recent call last):
File “/home/proman2/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 35, in getdoc
if not doc.has_permission(“read”):
File “/home/proman2/frappe-bench/apps/frappe/frappe/model/document.py”, line 155, in has_permission
return frappe.has_permission(self.doctype, permtype, self, verbose=verbose)
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 500, in has_permission
out = frappe.permissions.has_permission(doctype, ptype, doc=doc, verbose=verbose, user=user)
File “/home/proman2/frappe-bench/apps/frappe/frappe/permissions.py”, line 92, in has_permission
controller_perm = has_controller_permissions(doc, ptype, user=user)
File “/home/proman2/frappe-bench/apps/frappe/frappe/permissions.py”, line 301, in has_controller_permissions
controller_permission = frappe.call(frappe.get_attr(method), doc=doc, ptype=ptype, user=user)
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/proman2/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py”, line 270, in has_permission
if frappe.has_permission(doc.reference_doctype, ptype=“read”, doc=doc.reference_name):
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 500, in has_permission
out = frappe.permissions.has_permission(doctype, ptype, doc=doc, verbose=verbose, user=user)
File “/home/proman2/frappe-bench/apps/frappe/frappe/permissions.py”, line 92, in has_permission
controller_perm = has_controller_permissions(doc, ptype, user=user)
File “/home/proman2/frappe-bench/apps/frappe/frappe/permissions.py”, line 301, in has_controller_permissions
controller_permission = frappe.call(frappe.get_attr(method), doc=doc, ptype=ptype, user=user)
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(args, **newargs)
File “/home/proman2/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py”, line 270, in has_permission
if frappe.has_permission(doc.reference_doctype, ptype=“read”, doc=doc.reference_name):
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 500, in has_permission
out = frappe.permissions.has_permission(doctype, ptype, doc=doc, verbose=verbose, user=user)
File “/home/proman2/frappe-bench/apps/frappe/frappe/permissions.py”, line 76, in has_permission
doc = frappe.get_doc(meta.name, doc)
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 606, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File “/home/proman2/frappe-bench/apps/frappe/frappe/model/document.py”, line 51, in get_doc
return controller(arg1, arg2)
File “/home/proman2/frappe-bench/apps/frappe/frappe/model/document.py”, line 84, in init
self.load_from_db()
File “/home/proman2/frappe-bench/apps/frappe/frappe/model/document.py”, line 113, in load_from_db
d = frappe.db.get_value(self.doctype, self.name, "
", as_dict=1)
File “/home/proman2/frappe-bench/apps/frappe/frappe/database.py”, line 413, in get_value
order_by, cache=cache)
File “/home/proman2/frappe-bench/apps/frappe/frappe/database.py”, line 457, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File “/home/proman2/frappe-bench/apps/frappe/frappe/database.py”, line 588, in _get_values_from_table
conditions, order_by), values, as_dict=as_dict, debug=debug, update=update)
File “/home/proman2/frappe-bench/apps/frappe/frappe/database.py”, line 138, in sql
self._cursor.execute(query, values)
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
RuntimeError: maximum recursion depth exceeded

Screen Shot at the Earlier Installation: