Web page (V7.1) : Error When click Edit Profile


Any one know if this is a bug in the program ?

Here the errors :

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 32, in render
data = render_page_by_language(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 101, in render_page_by_language
return render_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 117, in render_page
return build(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 124, in build
return build_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 137, in build_page
context = get_context(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 18, in get_context
context = build_context(context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 73, in build_context
ret = context.doc.get_context(context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/doctype/web_form/web_form.py”, line 122, in get_context
if frappe.form_dict.name and not has_web_form_permission(self.doc_type, frappe.form_dict.name):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/doctype/web_form/web_form.py”, line 425, in has_web_form_permission
elif frappe.has_website_permission(name, ptype=ptype):
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 505, in has_website_permission
doc = get_doc(doctype, doc)
UnboundLocalError: local variable ‘doctype’ referenced before assignment

We have fixed the issue. Pull update and check

1 Like

Hi Saurabh,

When I pull update will it pull the entire version ? Or only the changes?
Because i only need this bug to be fix without touch on other programs.

i did a bench update this am and i am getting this error when i click on address to test cart:
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 505, in has_website_permission
doc = get_doc(doctype, doc)


I am also having the same issue…

I too need to fix this issue only without touching other…

plz help me someone…

how can i solve this issue only?