Hello
I had upgrade V10 to V11 and this error has occurred
Hello
I had upgrade V10 to V11 and this error has occurred
What error?
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 45, in render
frappe.local.form_dict.name = name
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 142, in render_page_by_language
if page_cache and frappe.local.lang in page_cache:
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 158, in render_page
hooks = frappe.get_hooks()
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 165, in build
def build_page(path):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 181, in build_page
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 79, in render_template
import frappe
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 352, in throw
local.session.data = _dict()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 338, in msgprint
os.makedirs(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 311, in _raise_exception
def clear_messages():
ValidationError:
{% extends “templates/web.html” %}{% block style %}
{% include "templates/includes/login/login.css" %}{% endblock %}
{% block page_content %}
<input type="text" id="login_email" class="form-control" placeholder="{{ login_name_placeholder }}" required autofocus> <input type="password" id="login_password" class="form-control" placeholder="{{ _('Password') }}" required> <button class="btn btn-sm btn-primary btn-block btn-login" type="submit"> {{ _("Sign in") }}</button> {% if ldap_settings.enabled %} <button class="btn btn-sm btn-default btn-block btn-login btn-ldap-login"> {{ _("Login with LDAP") }}</button> {% endif %} </form> </div> <div class='form-footer'> <div class='social-logins'> {%- if social_login -%} <h6>{{ _("Or login with") }}</h6> <p class="text-center" style="margin-top: 15px"> {%- if facebook_login is defined %} <a href="{{ facebook_login }}" class="btn btn-default btn-xs btn-social btn-facebook"> <i class="fa fa-facebook-official"></i> {{ _("Facebook") }}</a> {%- endif -%} {%- if google_login is defined %} <a href="{{ google_login }}" class="btn btn-default btn-xs btn-social btn-google"> <i class="fa fa-google-plus"></i> {{ _("Google") }}</a> {%- endif -%} {%- if github_login is defined %} <a href="{{ github_login }}" class="btn btn-default btn-xs btn-social btn-github"> <i class="fa fa-github"></i> {{ _("GitHub") }}</a> {%- endif -%} {%- if frappe_login is defined %} <a href="{{ frappe_login }}" class="btn btn-default btn-xs btn-social"> <img style='width: 16px; height: 16px;' src="/assets/frappe/images/favicon.png"> {{ _("Frappe") }}</a> {%- endif -%} </p> {%- endif -%} </div> {%- if not disable_signup -%} <p class="text-center"> <a href="#signup" style="margin-top: -2px;">{{ _("Don't have an account? Sign up") }}</a> </p> {%- endif -%} <p class="text-center"> <a href="#forgot">{{ _("Forgot Password?") }}</a></p> </div>
{{ _("Sign up") }}{% endblock %}{{ _("Send Password") }}{% block script %}
{% endblock %}{% block sidebar %}{% endblock %}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 77, in render_template
def get_allowed_functions_for_jenv():
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “”, line 1, in top-level template code
File “/home/frappe/frappe-bench/apps/frappe/frappe/./templates/web.html”, line 1, in top-level template code
{% extends base_template_path %}
File “/home/frappe/frappe-bench/apps/frappe/frappe/./templates/base.html”, line 69, in top-level template code
{% block content %}{% endblock %}
File “/home/frappe/frappe-bench/apps/frappe/frappe/./templates/web.html”, line 47, in block “content”
{%- block page_content -%}{%- endblock -%}
File “”, line 29, in block “page_content”
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 430, in getattr
return getattr(obj, attribute)
UndefinedError: ‘ldap_settings’ is undefined
Hello Sire
I did what you provided me, so i received this error down
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 39, in render
data = render_page_by_language(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 133, in render_page_by_language
return render_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 149, in render_page
return build(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 156, in build
return build_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 172, in build_page
html = frappe.render_template(context.source, context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 75, in render_template
return get_jenv().from_string(template).render(context)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “”, line 1, in top-level template code
File “/home/frappe/frappe-bench/apps/frappe/frappe/./templates/web.html”, line 1, in top-level template code
{% extends base_template_path %}
File “/home/frappe/frappe-bench/apps/frappe/frappe/./templates/base.html”, line 69, in top-level template code
{% block content %}{% endblock %}
File “/home/frappe/frappe-bench/apps/frappe/frappe/./templates/web.html”, line 47, in block “content”
{%- block page_content -%}{%- endblock -%}
File “”, line 29, in block “page_content”
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 430, in getattr
return getattr(obj, attribute)
UndefinedError: ‘ldap_settings’ is undefined
Thank you Sire for your email, I did what you provided me in this email but there is another problem appear
hi @almarkae , I guess switching the the branches of both the ERPNext and Frappe apps to staging from the master branch would help, and would also like to suggest if you can perform this on a separate bench and do take care of backing up your data