Loading website has error. How to fix?

Getting error when clicking Products link in website. How to trace this error and repair it?

Uncaught Server Exception

Traceback (most recent call last):
File “/home/administrator/frappe-bench/apps/frappe/frappe/website/render.py”, line 32, in render
data = render_page_by_language(path)
File “/home/administrator/frappe-bench/apps/frappe/frappe/website/render.py”, line 101, in render_page_by_language
return render_page(path)
File “/home/administrator/frappe-bench/apps/frappe/frappe/website/render.py”, line 117, in render_page
return build(path)
File “/home/administrator/frappe-bench/apps/frappe/frappe/website/render.py”, line 124, in build
return build_page(path)
File “/home/administrator/frappe-bench/apps/frappe/frappe/website/render.py”, line 142, in build_page
html = frappe.get_template(context.template).render(context)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 989, in render
return self.environment.handle_exception(exc_info, True)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File “/home/administrator/frappe-bench/apps/erpnext/erpnext/./templates/generators/item_group.html”, line 1, in top-level template code
{% extends “templates/web.html” %}
File “/home/administrator/frappe-bench/apps/frappe/frappe/./templates/web.html”, line 1, in top-level template code
{% extends base_template_path %}
File “/home/administrator/frappe-bench/apps/frappe/frappe/./templates/base.html”, line 69, in top-level template code
{% block content %}{% endblock %}
File “/home/administrator/frappe-bench/apps/frappe/frappe/./templates/web.html”, line 46, in block “content”
{%- block page_content -%}{%- endblock -%}
File “/home/administrator/frappe-bench/apps/erpnext/erpnext/./templates/generators/item_group.html”, line 39, in block “page_content”
{{ (“Next”) }}
UndefinedError: '’ is undefined

Hi @airzoink,

Is this a hosted instance @ ERPNext.com or your own instance?

And did you customize the code or upgrade from v7 to v8?

Thanks.

I’m running my own production instance. I upgraded from v7 to v8. i never checked this prior to upgrading v8 which i started around 8.0.14. Now, i’m in the latest 8.0.29.

I wonder whether this tool might help…jinja2.debugrenderer

frappe@erpnext:~/frappe-bench$ find . -name *.py | xargs grep ‘import render’
./apps/frappe/frappe/website/router.py: from frappe.website.render import render_page
./apps/frappe/frappe/website/doctype/web_page/web_page.py:from frappe.utils.jinja import render_template
./apps/frappe/frappe/website/doctype/blog_post/test_blog_post.py:from frappe.website.render import render
./apps/frappe/frappe/migrate.py:from frappe.website import render, router
./apps/frappe/frappe/email/doctype/email_account/email_account.py:from frappe.utils.jinja import render_template
./apps/frappe/frappe/desk/form/meta.py:from frappe.model.utils import render_include
./apps/frappe/frappe/tests/test_website.py:from frappe.website import render
./apps/frappe/frappe/installer.py:from frappe.website import render
./apps/frappe/frappe/core/doctype/page/page.py:from frappe.model.utils import render_include
./apps/frappe/frappe/utils/response.py:from frappe.website.render import render
./apps/frappe/frappe/translate.py:from frappe.model.utils import render_include, InvalidIncludePath
./env/lib/python2.7/site-packages/jinja2/debug.py: from jinja2.debugrenderer import render_traceback

still getting the same error in 8.0.33.

@EnSeal reports a similar error on save

One of our clients also has the same problem when opening the “Products” tab on his ERPNext.com hosted site. Maybe this is a problem with the new update?

Fixed in latest update!

1 Like