'thumbnail' tag received a bad argument: 'subject_location'
See original GitHub issueHi, 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:
- Created 10 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Done => #2631 Fix works