LMS Courses - Too Many Redirects Error


I have ERPNext and LMS installed on the same site.

I can access the course list via site.com/courses
But when I try to view the course content I get an error of “too many redirects”.

Can anyone suggest what may be wrong and how I can fix it?


you give any url for any condition. is generally happen when condition is false all time and he redirect continuously

Thanks, so how do I rectify this?

you do any changes in code?

No custom code as such, a few DocTypes that are slightly modified but not appearing on the website pages.

The only thing on the Website pages is a custom web form, that uses a DocType unrelated to the LMS.

Tried uninstalling the LMS, problem mostly went away, was still appearing then disappeared, so was maybe a cache issue after the uninstall.

I have tried reinstalling the LMS. After creating a simple dummy course I now get the following when trying to return to the main IP address

Traceback (most recent call last):
  File "apps/frappe/frappe/website/serve.py", line 18, in get_response
    response = renderer_instance.render()
  File "apps/frappe/frappe/website/page_renderers/list_page.py", line 12, in render
    return super().render()
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 78, in render
    html = self.get_html()
  File "apps/frappe/frappe/website/utils.py", line 512, in cache_html_decorator
    html = func(*args, **kwargs)
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 89, in get_html
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 157, in update_context
    data = self.run_pymodule_method("get_context")
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 219, in run_pymodule_method
    return method(self.context)
  File "apps/frappe/frappe/www/list.py", line 22, in get_context
    context.update(get_list_context(context, doctype) or {})
  File "apps/frappe/frappe/www/list.py", line 182, in get_list_context
    module = load_doctype_module(doctype)
  File "apps/frappe/frappe/modules/utils.py", line 229, in load_doctype_module
    module = module or get_doctype_module(doctype)
  File "apps/frappe/frappe/modules/utils.py", line 220, in get_doctype_module
    frappe.throw(_("DocType {} not found").format(doctype), exc=frappe.DoesNotExistError)
  File "apps/frappe/frappe/__init__.py", line 521, in throw
  File "apps/frappe/frappe/__init__.py", line 489, in msgprint
  File "apps/frappe/frappe/__init__.py", line 441, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: DocType dashboard not found

I can get back to the home page by adding /home ( and can return to the LMS course list by adding /courses

The error code seems to be suggesting a dashboard is missing but I don’t know which one.