Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

thumbnails not working for image plugin #119

Closed
stefanfoulis opened this Issue · 0 comments

1 participant

@stefanfoulis
Owner

Quickfix: set FILER_IMAGE_USE_ICON = True

Environment:


Request Method: GET
Request URL: xxx

Django Version: 1.5.5
Python Version: 2.7.4
Installed Applications:
[u'django.contrib.auth',
 u'django.contrib.contenttypes',
 u'django.contrib.sessions',
 u'django.contrib.sites',
 u'django.contrib.messages',
 u'djangocms_admin_style',
 u'django.contrib.admin',
 u'django.contrib.staticfiles',
 u'cms',
 u'menus',
 u'mptt',
 u'south',
 u'raven.contrib.django',
 u'sekizai',
 u'gunicorn',
 u'cmscloud',
 u'compressor',
 u'filer',
 u'easy_thumbnails',
 u'social_tags',
 u'aldryn_social_sharing',
 u'standard_form',
 u'aldryn_mailchimp',
 u'djangocms_common',
 u'extended_choices',
 u'django_tablib',
 u'appconf',
 u'standard_form',
 u'djangocms_text_ckeditor',
 u'filer',
 u'aldryn_common',
 u'easy_thumbnails',
 u'hvad',
 u'aldryn_events',
 u'taggit',
 u'aldryn_blog',
 u'easy_thumbnails',
 u'filer',
 u'djangocms_text_ckeditor',
 u'django_select2',
 u'aldryn_common',
 u'aldryn_google_analytics',
 u'django.contrib.admin',
 u'django.contrib.auth',
 u'django.contrib.contenttypes',
 u'django.contrib.sessions',
 u'django.contrib.messages',
 u'django.contrib.staticfiles',
 u'django.contrib.sites',
 u'aldryn_events',
 u'easy_thumbnails',
 u'filer',
 u'hvad',
 u'cms',
 u'mptt',
 u'menus',
 u'sekizai',
 u'djangocms_text_ckeditor',
 u'south',
 u'compressor',
 u'taggit',
 u'sortedm2m',
 u'emailit',
 u'aldryn_video',
 u'hvad',
 u'aldryn_redirects',
 u'aldryn_grid_foundation',
 u'aldryn_gallery',
 u'aldryn_people',
 u'hvad',
 u'sortedm2m',
 u'filer',
 u'easy_thumbnails',
 u'aldryn_button',
 u'aldryn_style',
 u'djangocms_text_ckeditor',
 u'filer',
 u'aldryn_gallery',
 'polymorphic',
 'cmsplugin_filer_file',
 'cmsplugin_filer_image',
 'reversion',
 'djangocms_link',
 'djangocms_snippet',
 'djangocms_googlemap',
 'health_check',
 'health_check_db',
 'health_check_cache']
Installed Middleware:
[u'django.contrib.sessions.middleware.SessionMiddleware',
 u'django.middleware.transaction.TransactionMiddleware',
 u'django.contrib.auth.middleware.AuthenticationMiddleware',
 u'cmscloud.middleware.AccessControlMiddleware',
 u'django.contrib.messages.middleware.MessageMiddleware',
 u'django.middleware.locale.LocaleMiddleware',
 u'django.middleware.common.CommonMiddleware',
 u'django.middleware.csrf.CsrfViewMiddleware',
 u'django.middleware.http.ConditionalGetMiddleware',
 u'cms.middleware.language.LanguageCookieMiddleware',
 u'cms.middleware.user.CurrentUserMiddleware',
 u'cms.middleware.page.CurrentPageMiddleware',
 u'cms.middleware.toolbar.ToolbarMiddleware',
 u'aldryn_redirects.middleware.RedirectFallbackMiddleware',
 'cmscloud.middleware.CurrentSiteMiddleware',
 'cmscloud.middleware.AldrynUserMiddleware']


Traceback:
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  91.                     response = view_func(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  89.         response = view_func(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
  202.             return view(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/transaction.py" in inner
  223.                 return func(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/reversion/revisions.py" in do_revision_context
  300.                     return func(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/cms/admin/pageadmin.py" in publish_page
  1028.             published = page.publish(language)
File "/app/.heroku/python/lib/python2.7/site-packages/cms/models/pagemodel.py" in publish
  567.             self._copy_contents(public_page, language)
File "/app/.heroku/python/lib/python2.7/site-packages/cms/models/pagemodel.py" in _copy_contents
  266.                 copy_plugins_to(plugins, ph, no_signals=True)
File "/app/.heroku/python/lib/python2.7/site-packages/cms/utils/copy_plugins.py" in copy_plugins_to
  36.             new_instance.post_copy(old_plugin, plugins_ziplist)
File "/app/.heroku/python/lib/python2.7/site-packages/djangocms_text_ckeditor/models.py" in post_copy
  46.         self.body = replace_plugin_tags(old_instance.get_plugin_instance()[0].body, replace_ids)
File "/app/.heroku/python/lib/python2.7/site-packages/djangocms_text_ckeditor/utils.py" in replace_plugin_tags
  60.     return OBJ_ADMIN_RE.sub(_replace_tag, text)
File "/app/.heroku/python/lib/python2.7/site-packages/djangocms_text_ckeditor/utils.py" in _replace_tag
  57.                     icon_src=force_escape(obj.get_instance_icon_src()),
File "/app/.heroku/python/lib/python2.7/site-packages/cms/models/pluginmodel.py" in get_instance_icon_src
  222.             return plugin.icon_src(instance)
File "/app/.heroku/python/lib/python2.7/site-packages/cmsplugin_filer_image/cms_plugins.py" in icon_src
  111.                 thumbnail = self.get_thumbnail({'width':200}, instance)
File "/app/.heroku/python/lib/python2.7/site-packages/cmsplugin_filer_image/cms_plugins.py" in get_thumbnail
  91.             return instance.image.image.file.get_thumbnail(self._get_thumbnail_options(context, instance))

Exception Type: AttributeError at /en/admin/cms/page/13/en/publish/
Exception Value: 'RelatedManager' object has no attribute 'file'
@stefanfoulis stefanfoulis added the bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.