Shopping Cart Error


First of all: Thanks for your great software - it is really amazing how you address things!

Now to my question:

I have 2 problems:

  1. When logging as a website user (after registering and setting the pasword) it does not automatically refresh/redirect the screen but just “hangs”, pressing F5 shows the user menu.

  2. When I click on the shopping cart link in the user menu I get the following error:

Traceback (innermost last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 23, in render
data = render_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 120, in render_page
return build(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 129, in build
return build_method(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 145, in build_page
context = get_context(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 29, in get_context
context = build_context(context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 90, in build_context = build_template(context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 17, in build_template
render_blocks(context[“template”], out, context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 46, in render_blocks
render_blocks(referenced_template_path, out, context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 46, in render_blocks
render_blocks(referenced_template_path, out, context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 43, in render_blocks
source = frappe.local.jloader.get_source(frappe.local.jenv, template_path)[0]
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/jinja2/”, line 389, in get_source
raise TemplateNotFound(template)
TemplateNotFound: templates/includes/product_missing_image.html

Also in logs/web.error.log I get:

2015-06-05 14:27:35,249 Request Error
site: mysite.local
form: {‘cmd’: u’login’, ‘pwd’: u’secret’, ‘usr’: u’’}

Traceback (innermost last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 48, in application
frappe.local.http_request = frappe.auth.HTTPRequest()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 59, in init
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 169, in run_trigger, login_manager=self)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 751, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/shopping_cart/shopping_cart/”, line 20, in set_cart_count
File “/home/frappe/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/”, line 16, in set_cart_count
quotation = _get_cart_quotation()
File “/home/frappe/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/”, line 180, in _get_cart_quotation
apply_cart_settings(party, qdoc)
File “/home/frappe/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/”, line 229, in apply_cart_settings
set_price_list_and_rate(quotation, cart_settings, billing_territory)
File “/home/frappe/frappe-bench/apps/shopping_cart/shopping_cart/shopping_cart/”, line 244, in set_price_list_and_rate
for item in quotation.get(“quotation_details”):
TypeError: ‘NoneType’ object is not iterable

I have been installing the shopping cart and updated ERPNext to the latest version with

bench update --patch && bench frappe --latest
bench frappe --clear_cache

I also tried to install erpnext and shopping_cart modules from a fresh install and get the same error.

Is there anything else I can do to resolve this error?

@adruino thanks for your kind words.

Seems you are still on Version 4. These issues might be fixed in version 5.