Next button on website

i`v more than 30 items per group so in website it takes the url

/All%20Item%20Groups/products/accessories/bedding-group

when i press on next button it repeats the url

/All%20Item%20Groups/products/accessories/All%20Item%20Groups/products/accessories/bedding-group?start=24

and show
Page missing or moved
We are very sorry for this, but the page you are looking for is missing (this could be because of a typo in the address) or moved.

any idea ??

Please change Route for the item group Products.

did . but still the same repeat the url without all item group !!

@Mahmoud_Ghoneem Thanks - fixed via https://github.com/frappe/erpnext/pull/6332

2 Likes

did but the follwoing error msg

Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 32, in render data = render_page_by_language(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 101, in render_page_by_language return render_page(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 117, in render_page return build(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 124, in build return build_page(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 137, in build_page context = get_context(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 15, in get_context context = get_page_context(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py", line 18, in get_page_context page_context = make_page_context(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py", line 27, in make_page_context context = resolve_route(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py", line 47, in resolve_route return get_page_context_from_doctype(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py", line 72, in get_page_context_from_doctype page_info = get_page_info_from_doctypes(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py", line 94, in get_page_info_from_doctypes controller = get_controller(doctype) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 32, in get_controller module = load_doctype_module(doctype, module_name) File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 64, in load_doctype_module doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix, suffix)) File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 643, in get_module return importlib.import_module(modulename) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/item_group/item_group.py", line 70 items": get_product_list_for_group(product_group = self.name, start=start, ^ SyntaxError: EOL while scanning string literal

http://mycilek.com/All%20Item%20Groups/products/baby-rooms/romantic-baby

please check

@rmehta please thats hapend after i updated the codes and try to update bench

Migrating site1.local
Updating frappe : [========================================]
Updating erpnext : [========== ] Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, lin e 79, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, lin e 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/co re.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/co re.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/co re.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/co re.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/co re.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/co re.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/de corators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 206 , in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 29, in mi grate
frappe.model.sync.sync_all(verbose=verbose)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py”, line 19, in sync_all
sync_for(app, force, verbose=verbose)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py”, line 43, in sync_for
import_file_by_path(doc_path, force=force)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py”, li ne 54, in import_file_by_path
import_doc(doc, force=force, data_import=data_import, pre_process=pre_proces s)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py”, li ne 122, in import_doc
doc.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 23 1, in insert
self.run_post_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 72 8, in run_post_save_methods
self.run_method(“on_update”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 66 1, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 83 9, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 82 2, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 65 5, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctyp e.py”, line 148, in on_update
self.run_module_method(“on_doctype_update”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctyp e.py”, line 157, in run_module_method
module = load_doctype_module(self.name, self.module)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/init.py”, line 64, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, mod ule, prefix, suffix))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 643, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/buying/doctype/purchase_c ommon/purchase_common.py”, line 9, in
from erpnext.stock.doctype.item.item import get_last_purchase_details
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.p y”, line 465
if self.get(key) != vals.get(key):
^
IndentationError: expected an indented block
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in ca ll
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in inv oke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invo ke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invo ke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/commands/update.py”, line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, n o_backup, upgrade, force=force)
File “/home/frappe/bench-repo/bench/commands/update.py”, line 90, in _update
patch_sites(bench_path=bench_path)
File “/home/frappe/bench-repo/bench/utils.py”, line 161, in patch_sites
run_frappe_cmd(’–site’, ‘all’, ‘migrate’, bench_path=bench_path)
File “/home/frappe/bench-repo/bench/utils.py”, line 501, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (’–site’, ‘all’, ‘migrate’)

and the site has been frozen to the msg

Updating. We will be back in a few moments…

thanks @rmehta & @KanchanChauhan :slight_smile: it works