Opened 10 years ago

Closed 10 years ago

# Showing the screenshot

Reported by: Owned by: anonymous Blackhex normal ScreenshotsPlugin normal jgodoy@… 0.9

### Description

After installing the component, upgrading, etc. I've added a test screenshot to see how it works. Just after the insertion, there's no "preview" and if I click on the red rectangle I get the following error page:

Oops...
Trac detected an internal error:

content_type must be a string

If you think this really should work and you can reproduce it. Then you should consider to report this problem to the Trac team.

Go to http://trac.edgewall.com/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the python traceback found below.

TracGuide — The Trac User and Administration Guide
Python traceback

Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-i686/egg/tracscreenshots/core.py", line 86, in process_request
File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 120, in send_file
self.req.content_type = mimetype
TypeError: content_type must be a string


Any hints on what I might be missing? This is with screenshotsplugin-r1059.zip installed.

### comment:1 Changed 10 years ago by Blackhex

• Status changed from new to assigned

Oops. I forgot mention that imagemagick tools is needed for generating previews. I'll fix it right now.

### comment:2 Changed 10 years ago by Blackhex

• Resolution set to fixed
• Status changed from assigned to closed

Description page fixed.