Modify

Opened 18 years ago

Closed 18 years ago

#384 closed defect (fixed)

Error viewing message in threads

Reported by: James Mills Owned by: anonymous
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Radek Bartoň Trac Release: 0.9

Description

Clicking on an actual message in some thread causes the following error:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/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/tracdiscussion/core.py", line 200, in process_request
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 744, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 573, in format
    for line in text.splitlines():
AttributeError: 'NoneType' object has no attribute 'splitlines'

How on earth do you debug a Trac plugin ? I see nothing that relates to the plugin in this traceback :/ Not very usefull huh :) --JamesMills

Attachments (0)

Change History (2)

comment:1 Changed 18 years ago by Radek Bartoň

Cc: Radek Bartoň added; anonymous removed
Owner: changed from Alec Thomas to anonymous
Status: newassigned

I did't evoke this error on tracd where I'm testing even when I installed trac with mod_python. I've commited probable fix but I'm not sure if it'll be working for you. If you want to log something put self.log.debug(variable) there.

comment:2 Changed 18 years ago by James Mills

Resolution: fixed
Status: assignedclosed

Thanks. Your last commit fixed this problem for me.

I'm studying the diff now :) I'll close this ticket for you!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.