Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/cms/images/ 500ing on staging #369

Open
noahsark769 opened this issue Jun 29, 2015 · 0 comments
Open

/cms/images/ 500ing on staging #369

noahsark769 opened this issue Jun 29, 2015 · 0 comments

Comments

@noahsark769
Copy link
Contributor

Not sure why this is, looks like it has something to do with s3? Uploading images via the text editor seems to work, but not so with the actual "Images" page

Internal Server Error: /cms/images/13/ Traceback (most recent call last):

File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/cache.py", line 38, in _cache_controlled
  response = viewfunc(request, *args, **kw)
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
  return view_func(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailimages/views/images.py", line 124, in edit
  filesize = image.file.size
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/fields/files.py", line 74, in _get_size
  return self.storage.size(self.name)
File "/app/.heroku/python/lib/python2.7/site-packages/storages/backends/s3boto.py", line 434, in size
  return self.bucket.get_key(self._encode_name(name)).size

AttributeError: ‘NoneType’ object has no attribute ‘size’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant