Website giving error: Oops, a server error has occured

Hi guys,

My website was working fine until today where I’m now getting this error : Oops, a server error has occured

Can anyone assist?

Below are the full details of the error :
Traceback (innermost last):
File “/home/frappe/press/benches/1506011349/apps/frappe/frappe/website/render.py”, line 23, in render
data = render_page(path)
File “/home/frappe/press/benches/1506011349/apps/frappe/frappe/website/render.py”, line 120, in render_page
return build(path)
File “/home/frappe/press/benches/1506011349/apps/frappe/frappe/website/render.py”, line 129, in build
return build_method(path)
File “/home/frappe/press/benches/1506011349/apps/frappe/frappe/website/render.py”, line 145, in build_page
context = get_context(path)
File “/home/frappe/press/benches/1506011349/apps/frappe/frappe/website/context.py”, line 29, in get_context
context = build_context(context)
File “/home/frappe/press/benches/1506011349/apps/frappe/frappe/website/context.py”, line 55, in build_context
ret = context.doc.get_context(context)
File “/home/frappe/press/benches/1506011349/apps/erpnext/erpnext/setup/doctype/item_group/item_group.py”, line 55, in get_context
“items”: get_product_list_for_group(product_group = self.name, limit=100),
File “/home/frappe/press/benches/1506011349/apps/erpnext/erpnext/setup/doctype/item_group/item_group.py”, line 82, in get_product_list_for_group
return [get_item_for_list_in_html® for r in data]
File “/home/frappe/press/benches/1506011349/apps/erpnext/erpnext/setup/doctype/item_group/item_group.py”, line 95, in get_item_for_list_in_html
return frappe.get_template(“templates/includes/product_in_grid.html”).render(context)
File “/home/frappe/press/benches/1506011349/apps/frappe/frappe/utils/jinja.py”, line 23, in get_template
return get_jenv().get_template(path)
File “/home/frappe/press/benches/1506011349/env/lib/python2.7/site-packages/jinja2/environment.py”, line 791, in get_template
return self._load_template(name, self.make_globals(globals))
File “/home/frappe/press/benches/1506011349/env/lib/python2.7/site-packages/jinja2/environment.py”, line 765, in _load_template
template = self.loader.load(self, name, globals)
File “/home/frappe/press/benches/1506011349/env/lib/python2.7/site-packages/jinja2/loaders.py”, line 395, in load
return loader.load(environment, name, globals)
File “/home/frappe/press/benches/1506011349/env/lib/python2.7/site-packages/jinja2/loaders.py”, line 125, in load
code = environment.compile(source, name, filename)
File “/home/frappe/press/benches/1506011349/env/lib/python2.7/site-packages/jinja2/environment.py”, line 554, in compile
self.handle_exception(exc_info, source_hint=source)
File “/home/frappe/press/benches/1506011349/env/lib/python2.7/site-packages/jinja2/environment.py”, line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File “/home/frappe/press/benches/1506011349/apps/erpnext/erpnext/./templates/includes/product_in_grid.html”, line 3, in

TemplateAssertionError: no filter named ‘with_leading_slash’

The issue looks to have resolved itself somewhat, I see the was an update applied last night and that looks to have been why the website was down. However, I’m testing the cart and now that’s broken :frowning:

On clicking the add to cart button, the webpage does nothing

@Eli do you see any error in your js console?

"Traceback (innermost last):
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/app.py”, line 51, in application
response = frappe.handler.handle()
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/handler.py”, line 69, in handle
execute_cmd(cmd)
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/handler.py”, line 92, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/init.py”, line 751, in call
return fn(*args, **newargs)
File “/home/frappe/press/benches/1506020720/apps/erpnext/erpnext/shopping_cart/cart.py”, line 98, in update_cart
return get_cart_quotation(quotation)
File “/home/frappe/press/benches/1506020720/apps/erpnext/erpnext/shopping_cart/cart.py”, line 33, in get_cart_quotation
for address in get_address_docs(party=party)],
TypeError: get_address_docs() takes at least 4 arguments (1 given)

That is the error I see

Hi @Eli

We have pushed a fix. Try updating again.

-Anand.

Thanks for the feedback,

It still does not work and behaves as before. I still get this message:

500 (INTERNAL SERVER ERROR)**

"Traceback (innermost last):
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/app.py”, line 51, in application
response = frappe.handler.handle()
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/handler.py”, line 69, in handle
execute_cmd(cmd)
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/handler.py”, line 92, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/press/benches/1506020720/apps/frappe/frappe/init.py”, line 751, in call
return fn(*args, **newargs)
File “/home/frappe/press/benches/1506020720/apps/erpnext/erpnext/shopping_cart/cart.py”, line 98, in update_cart
return get_cart_quotation(quotation)
File “/home/frappe/press/benches/1506020720/apps/erpnext/erpnext/shopping_cart/cart.py”, line 33, in get_cart_quotation
for address in get_address_docs(party=party)],
TypeError: get_address_docs() takes at least 4 arguments (1 given)
"

I see a new update has been rolled out and that looks to have resolved the issue.
Thank you.

Its working again now