Opened 14 years ago

Last modified 12 years ago

#7838 closed defect

Error: Macro TOC(None) failed — at Initial Version

Reported by: anonymous Owned by: Noah Kantrowitz
Priority: normal Component: TocMacro
Severity: normal Keywords:
Cc: megha@… Trac Release: 0.12

Description

HI

I,m new to trac and i have backup trac environment from 0.10.5 and restored to 0.12.

Now there is a TOC macro error

Error: Macro TOC(None) failed init() takes exactly 3 arguments (2 given)

This is the content on trac.log

2010-10-15 19:30:39,966 Trac[formatter] DEBUG: Executing Wiki macro TOC by provider <toc.TOCMacro object at 0x8ff662c> 2010-10-15 19:30:39,966 Trac[macros] WARNING: Executing pre-0.11 Wiki macro TOC by provider <class 'toc.TOCMacro'> 2010-10-15 19:30:39,969 Trac[formatter] ERROR: Macro TOC(None) failed: Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 710, in _macro_formatter

return macro.process(args, in_paragraph=True)

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 304, in process

text = self.processor(text)

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 291, in _macro_processor

text)

File "/usr/lib/python2.4/site-packages/trac/wiki/macros.py", line 66, in expand_macro

return self.render_macro(formatter.req, name, content)

File "/opt/projectswiki/Video/OmniVSDP/plugins/toc.py", line 82, in render_macro

formatter = MyOutlineFormatter(self.env) # FIXME 0.11: give 'req'

TypeError: init() takes exactly 3 arguments (2 given) 2010-10-15 19:30:39,971 Trac[formatter] DEBUG: Executing Wiki macro Image by provider <trac.wiki.macros.ImageMacro object at 0x8ff6c8c> 2010-10-15 19:30:39,980 Trac[formatter] DEBUG: Executing Wiki macro Image by provider <trac.wiki.macros.ImageMacro object at 0x8ff6c8c>

Thanks.

Change History (0)

Note: See TracTickets for help on using tickets.