Error in website user account - 'Orders', 'invoices', and 'Shipments'

Following error is showing when website user accessing their ‘Orders’, ‘invoices’, and ‘Shipments’

    Traceback (innermost last):
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/", line 76, in application
    response =
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/", line 40, in render
    data = render_page(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/", line 137, in render_page
    return build(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/", line 146, in build
    return build_method(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/", line 162, in build_page
    context = get_context(path)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/", line 29, in get_context
    context = build_context(context)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/website/", line 75, in build_context
    ret = module.get_context(context)
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/templates/pages/", line 21, in get_context
  File "/home/zinnee/frappe-bench/apps/frappe/frappe/templates/pages/", line 40, in get
    limit_start=limit_start, limit_page_length=limit_page_length)
  File "/home/zinnee/frappe-bench/apps/erpnext/erpnext/controllers/", line 39, in get_transaction_list
    filters.append((doctype, key, "in", parties))
 UnboundLocalError: local variable 'parties' referenced before assignment

Can anyone please help that what is I am missing!

The “Contact” is neither tagged as a supplier or customer.

Maybe it should default to customer. Will fix this.

How did you create this user?

Edit: Fix: [fix] default contact for website · frappe/erpnext@0bc3ca0 · GitHub

This is simply registered user in website through signup.

I also tried to assign this user as customer, but did not work!