Modify

Opened 6 years ago

Last modified 5 years ago

#4304 new defect

Trac crashes when trying to export pages containing attachments

Reported by: izzy Owned by: diorgenes
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)

traceback.txt (6.3 KB) - added by izzy 6 years ago.
Error Stack
trac_debug.log (2.3 KB) - added by izzy 6 years ago.
Debug messages from trac log file

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by izzy

Error Stack

Changed 6 years ago by izzy

Debug messages from trac log file

comment:1 Changed 6 years ago by izzy

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 6 years ago by izzy

  • Summary changed from Trac crashes when trying to export multiple pages from the admin page to Trac crashes when trying to export pages containing attachments

comment:3 Changed 6 years ago by grigi

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 6 years ago by izzy

Nope, it does not - sorry. Still crashes as soon as there's a page with attachments included.

comment:5 Changed 5 years ago by jan

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 5 years ago by grigi

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 5 years ago by izzy

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.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.