After Upgrading ERP next from Version 12 to 13 Give error pls help to resolve error

Hi I have upgrade erpnext 12 to 13 after i got error on login page
Internal Server Error
My web.error.log

Traceback (most recent call last):
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/gunicorn/workers/sync.py”, line 136, in handle
self.handle_request(listener, req, client, addr)
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/gunicorn/workers/sync.py”, line 179, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 231, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/werkzeug/wrappers/base_request.py”, line 237, in application
resp = f(*args[:-2] + (request,))
File “/home/sammy/frappe-bench/apps/frappe/frappe/app.py”, line 86, in application
response = frappe.utils.response.handle_session_stopped()
File “/home/sammy/frappe-bench/apps/frappe/frappe/utils/response.py”, line 223, in handle_session_stopped
return frappe.website.render.render(“message”, http_status_code=503)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 79, in render
data = render_page(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 194, in render_page
return build(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 201, in build
return build_page(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 216, in build_page
context = get_context(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/context.py”, line 28, in get_context
context = build_context(context)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/context.py”, line 85, in build_context
context.update(get_website_settings(context))

Traceback (most recent call last):
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/gunicorn/workers/sync.py”, line 136, in handle
self.handle_request(listener, req, client, addr)
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/gunicorn/workers/sync.py”, line 179, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 231, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/sammy/frappe-bench/env/lib/python3.6/site-packages/werkzeug/wrappers/base_request.py”, line 237, in application
resp = f(*args[:-2] + (request,))
File “/home/sammy/frappe-bench/apps/frappe/frappe/app.py”, line 86, in application
response = frappe.utils.response.handle_session_stopped()
File “/home/sammy/frappe-bench/apps/frappe/frappe/utils/response.py”, line 223, in handle_session_stopped
return frappe.website.render.render(“message”, http_status_code=503)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 79, in render
data = render_page(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 194, in render_page
return build(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 201, in build
return build_page(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/render.py”, line 216, in build_page
context = get_context(path)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/context.py”, line 28, in get_context
context = build_context(context)
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/context.py”, line 85, in build_context
context.update(get_website_settings(context))
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/website_settings.py”, line 161, in get_website_settings
File “/home/sammy/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/website_settings.py”, line 161, in get_website_settings
context[“hide_login”] = settings.hide_login
AttributeError: ‘WebsiteSettings’ object has no attribute ‘hide_login’

Please find below link may help.

1 Like

Hi Suresh


i have executed Code after enter giving option 2 what have to type
pls help attach screenshot

exit then reload browser.

still internal server error

Code is not executing in the Run bench console
After entering the below code in console

import frappe
frappe.reload_doc(‘website’, ‘doctype’, ‘Website Settings’)
frappe.db.commit()

giving option 2 and stuck