Product image unchanged

we have changed product image but when printing document, it still referring to old image. Btw the image is external link.

Do you see the right image on the product page?
You can try with bench clear-cache and try to make pdf again.

i have tried reload from the web, still same problem.

when i try to run bench clear-cache, i got error below.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/werkzeug/local.py”, line 70, in getattr
return self.storage[self.ident_func()][name]
KeyError: ‘conf’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib64/python3.4/runpy.py”, line 170, in _run_module_as_main
main”, mod_spec)
File “/usr/lib64/python3.4/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/click/decorators.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 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 47, in clear_cache
frappe.connect(site)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 187, in connect
local.db = Database(user=db_name or local.conf.db_name)
File “/home/frappe/frappe-bench/env/lib/python3.4/site-packages/werkzeug/local.py”, line 72, in getattr
raise AttributeError(name)
AttributeError: conf

This may help

Also remember…

If you are trying to re-print a document that was created before the change in the picture, you will get the old picture in that document because the doc was created at a time when the old picture was valid.

Also, if you subsequently delete the old picture from the picture files location (or delete it’s link), you will experience errors trying to re-print the old document because it still needs the old picture in order to be valid.

Only new created docs that happen after the picture update will include the new picture.

BKM