Error in Task button in Lead Doctype

image

No module or doctype with same name

Which version? because i checked in both v14 and v15, worked properly.

version-15, i have this error since v14

console output

Traceback (most recent call last):
  File "apps/frappe/frappe/handler.py", line 74, in execute_cmd
    method = get_attr(cmd)
  File "apps/frappe/frappe/handler.py", line 288, in get_attr
    method = globals()[cmd]
KeyError: 'task'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 110, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
    frappe.throw(_("Failed to get method for command {0} with {1}").format(cmd, e))
  File "apps/frappe/frappe/__init__.py", line 602, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 567, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 518, in _raise_exception
    raise exc
frappe.exceptions.ValidationError: Failed to get method for command task with 'task'
request.js:473:14

Both sides checked, and there is no issue. any any client script applied then command it or remove it. Otherwise upgrade the version.

don’t have client script applied for Lead doctype

i have update bench yesterday

Sometimes updating bench can lead to issues, could you check if bench migrate and bench build are working properly?