question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'thumbnail' tag received a bad argument: 'subject_location'

See original GitHub issue

Hi, I’m using django-cms from develop branch for test purposes. I’ve just updated from github, and now I get an exception with '‘thumbnail’ tag received a bad argument: ‘subject_location’. Traceback (see below) shows a call from plugin_pool.py line 58, one of the line changed a few hours ago. No cmsplugin_filer_image template overriden. Versions used: cmsplugin-filer (0.9.5) django-filer (0.9.5) easy-thumbnails (1.4)

Traceback:

File “/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/core/handlers/base.py” in get_response

response = middleware_method(request) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cms/middleware/toolbar.py" in process_request
request.toolbar = CMSToolbar(request) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cms/toolbar/toolbar.py" in init
self.view_name = resolve(self.request.path).func.module File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
return get_resolver(urlconf).resolve(path) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
for pattern in self.url_patterns: File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module
self.urlconfmodule = import_module(self.urlconf_name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
import(name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/beerfactory/beerfactory/urls.py" in
admin.autodiscover() File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/contrib/admin/init.py" in autodiscover
import_module('%s.admin' % app) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
import(name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cms/admin/init.py" in
plugin_pool.plugin_pool.discover_plugins() File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cms/plugin_pool.py" in discover_plugins
load('cms_plugins') File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cms/utils/django_load.py" in load
get_module(app, modname, verbose, failfast) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cms/utils/django_load.py" in get_module
module = import_module(module_name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
import(name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cmsplugin_filer_image/cms_plugins.py" in
plugin_pool.register_plugin(FilerImagePlugin) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/cms/plugin_pool.py" in register_plugin
loader.get_template(template) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/loader.py" in get_template
template, origin = find_template(template_name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/loader.py" in find_template
source, display_name = loader(name, dirs) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/loader.py" in call
return self.load_template(template_name, template_dirs) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/loader.py" in load_template
template = get_template_from_string(source, origin, template_name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string
return Template(source, origin, name) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/base.py" in init
self.nodelist = compile_string(template_string, origin) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/base.py" in compile_string
return parser.parse() File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/base.py" in parse
compiled_result = compile_func(self, token) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/defaulttags.py" in spaceless
nodelist = parser.parse(('endspaceless',)) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/base.py" in parse
compiled_result = compile_func(self, token) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/defaulttags.py" in do_if
nodelist = parser.parse(('elif', 'else', 'endif')) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/base.py" in parse
compiled_result = compile_func(self, token) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/defaulttags.py" in do_if
nodelist = parser.parse(('endif',)) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/django/template/base.py" in parse
compiled_result = compile_func(self, token) File "/home/njouanin/Dev/perso/projets/env-beerfactory/local/lib/python2.7/site-packages/easy_thumbnails/templatetags/thumbnail.py" in thumbnail
"'%s'" % (tag, arg))

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
digi604commented, Feb 12, 2014

it seams your context processors are configured wrongly:

http://django-filer.readthedocs.org/en/latest/installation.html#subject-location-aware-cropping

you need ‘filer.thumbnail_processors.scale_and_crop_with_subject_location’, in your thumbnail processor settings

0reactions
njouanincommented, Feb 12, 2014

Done => #2631 Fix works

Read more comments on GitHub >

github_iconTop Results From Across the Web

'thumbnail' tag received a bad argument: 'subject_location'
Hi, I'm using django-cms from develop branch for test purposes. I've just updated from github, and now I get an exception with ''thumbnail' ......
Read more >
'thumbnail' tag received a bad argument: 'subject_location'
'thumbnail' tag received a bad argument: 'subject_location' I cant found anywhere the fix to this error. my django-cms version 3.3. On my settings...
Read more >
Fix error "'thumbnail' tag received a bad argument ... - Git.Coop
An error occurred while retrieving approval data for this merge request. Fix error "'thumbnail' tag received a bad argument ...
Read more >
Template tags and filters - sorl-thumbnail - Read the Docs
Sorl-thumbnail comes with one template tag thumbnail and three filters: ... y, x2, y2 as arguments to crop the image down via those...
Read more >
core/jni/android_hardware_camera2_DngCreator.cpp
jniThrowExceptionFmt(jnienv, "java/lang/IllegalArgumentException", \. "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found