i created a new web page by adding a html file in www folder and i am getting this error it worked fine till now but got this error
Try restarting the bench
Do you have any doctype like loyaltyEncounters??
I am facing the same error AttributeError: type object ‘Task’ has no attribute ‘website’
What I think the issue is, in my doctypes: Task, I selected it to ‘has a web view’ and since then I have been facing this issue.
Does anyone have anyone any idea how to fix it?
I have the same issue
Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 19, in get_response
endpoint, renderer_instance = path_resolver.resolve()
File "apps/frappe/frappe/website/path_resolver.py", line 64, in resolve
if renderer_instance.can_render():
File "apps/frappe/frappe/website/page_renderers/document_page.py", line 17, in can_render
if self.search_in_doctypes_with_web_view():
File "apps/frappe/frappe/website/page_renderers/document_page.py", line 26, in search_in_doctypes_with_web_view
if document := _find_matching_document_webview(self.path):
File "apps/frappe/frappe/utils/caching.py", line 156, in redis_cache_wrapper
val = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/document_page.py", line 91, in _find_matching_document_webview
condition_field = DocumentPage.get_condition_field(meta)
File "apps/frappe/frappe/website/page_renderers/document_page.py", line 81, in get_condition_field
condition_field = controller.website.condition_field
AttributeError: type object 'ItemGroup' has no attribute 'website'
can anyone help me please?
I can confirm this happens directly after you set “Has Web View : Y” on a custom doctype in a custom app.
I cannot figure out why this is happening and the only workaround to “unfreeze” the app is to delete the doctype on the file system.