Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#4219 closed defect (duplicate)

Wiki macro TracGuideToc failed

Reported by: __doc__ Owned by: Jonas Borgström
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Browsing the Help/About page of trac that uses the [[TracGuideToc]] I get the following traceback

2006-11-20 16:33:21,504 Trac[macros] ERROR: Wiki macro TracGuideToc failed ('NoneType' object is not callable)
Traceback (most recent call last):
  File "/root/packages/trac/trac/wiki/macros.py", line 501, in render_macro
    return module.execute(req and req.hdf, content, self.env)
  File "/usr/share/trac/wiki-macros/TracGuideToc.py", line 34, in execute
    curpage = '%s' % hdf.getValue('wiki.page_name', '')
TypeError: 'NoneType' object is not callable
2006-11-20 16:33:21,505 Trac[formatter] ERROR: Macro TracGuideToc(None) failed
Traceback (most recent call last):
  File "/root/packages/trac/trac/wiki/formatter.py", line 443, in _macro_formatter
    return macro.process(self.req, args, True)
  File "/root/packages/trac/trac/wiki/formatter.py", line 115, in process
    text = self.processor(req, text)
  File "/root/packages/trac/trac/wiki/formatter.py", line 103, in _macro_processor
    return self.macro_provider.render_macro(req, self.name, text)
  File "/root/packages/trac/trac/wiki/macros.py", line 501, in render_macro
    return module.execute(req and req.hdf, content, self.env)
  File "/usr/share/trac/wiki-macros/TracGuideToc.py", line 34, in execute
    curpage = '%s' % hdf.getValue('wiki.page_name', '')
TypeError: 'NoneType' object is not callable

I tried this on r4320

Attachments (0)

Change History (4)

comment:1 by __doc__, 17 years ago

Severity: normalmajor

Problem is still there with 0.11 trunk r4363

comment:2 by Tim Hatch <trac@…>, 17 years ago

I can reproduce this on trunk if I delete neo_cgi.so, so I wonder if your Clearsilver isn't installed properly. The error page I get (same error, NoneType not callable while trying to render TracGuideToc) states:

To install Trac, the following software packages must be installed:
...
ClearSilver, version >= 0.9.3
 * With python-bindings (./configure --with-python=/usr/bin/python)

comment:3 by Christian Boos, 17 years ago

Resolution: duplicate
Status: newclosed

Well, anyway that macro is currently broken, even if hdf would not be None, it wouldn't contain any data… See #3958.

comment:4 by Christian Boos, 17 years ago

Milestone: 0.11

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.