Opened 16 years ago
Last modified 6 years ago
#4304 new defect
Trac crashes when trying to export pages containing attachments
Reported by: | izzy | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | TracWikiToPdfPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I just tried to export a selection of wiki pages from the admin interface. So I selected the pages, transferred them to the "selected pages" block, and hit the "create" button. The result was just an error stack displayed in the browser - but no PDF created. Error stack ends with:
TypeError: sequence item 0: expected string, NoneType found
(complete stack attached).
Configuration issue? Template issue, as the trace suggests (maybe connected to the problem described in #3779)? I used the latest code from SVN with the latest stable code of Trac 0.11 on Ubuntu 8.04.1 (Python 2.5.2, Genshi 0.5.1).
Attachments (2)
Change History (10)
Changed 16 years ago by
Attachment: | traceback.txt added |
---|
comment:1 Changed 16 years ago by
I just attached the debug output from the logfile, which pointed me to where the problem may be: It's obviously the attachments it gets a hick-up from. I just selected a bunch of other pages (with no attachments), and they export fine.
comment:2 Changed 16 years ago by
Summary: | Trac crashes when trying to export multiple pages from the admin page → Trac crashes when trying to export pages containing attachments |
---|
comment:3 Changed 16 years ago by
I remember running into this issue. does the latest patch in #3493 resolve/change the issue?
It is quite an invasive patch, sorry :/
comment:4 Changed 16 years ago by
Nope, it does not - sorry. Still crashes as soon as there's a page with attachments included.
comment:5 Changed 16 years ago by
Same problem here. It used to work fine when using the tracd daemon. So it looks to me like some sort of apache (xampp) configuration issue. Unfortunately no clue yet.
comment:6 Changed 16 years ago by
Izzy, what type of attachments? Did you configure the plugin as to reflect the configuration changes required for patch #3493 to work correctly?
[wikitopdf] tmp_dir = /tmp/wikitopdf trac_uri = http://trac.blah.local
Tell me if that makes it work.
comment:7 Changed 16 years ago by
Unfortunately I cannot check anymore, as I switched the company meanwhile and do not have access to that environment anymore. I will check as soon as time permits - but it's not that easy at the moment, since in my environment I don't use attachments in wiki pages... But maybe jan can help to figure out, as he seems to have the same problem? Our setup was Trac via mod_python in Apache, and it sounds like that is was jan is using as well.
comment:8 Changed 6 years ago by
Owner: | Diorgenes Felipe Grzesiuk deleted |
---|
Error Stack