Modify

Opened 6 years ago

Last modified 6 years ago

#2941 new defect

TypeError in nextItem()

Reported by: anonymous Owned by: permon
Priority: normal Component: MediaWikiPluginMacro
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Trac 0.10.4 / TracMediaWikiMacro 1.0

When trying out a MediWiki page in Trac, we get this error message:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 135, in process_request

self._render_view(req, db, page)

File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 443, in _render_view

req.hdfwiki? = {

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 1001, 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 795, in format

self.handle_code_block(line)

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

self.out.write(to_unicode(self.code_processor.process(

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

text = self.processor(req, text)

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

return self.macro_provider.render_macro(req, self.name, text)

File "build/bdist.linux-x86_64/egg/mediawiki/mediawiki.py", line 32, in render_macro
File "build/bdist.linux-x86_64/egg/mediawiki/mediawiki.py", line 28, in expand_macro
File "build/bdist.linux-x86_64/egg/mediawiki/parser.py", line 2464, in parse
File "build/bdist.linux-x86_64/egg/mediawiki/parser.py", line 2340, in doBlockLevels

TypeError: nextItem() takes exactly 2 arguments (1 given)

Attachments (1)

parser.py (104.2 KB) - added by simon.yang.sh@… 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by simon.yang.sh@…

comment:1 Changed 6 years ago by anonymous

thanks, that attachment fixed the same issue for me

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.