The explorer theme worked fine for us for some weekes. Now we got two errors that makes it hard to use (../math domain error).
The modern and other themes have no problems with this page. Only the explorer theme (2.1) shows this error and the user can't access the wiki anymore. He always get an error regardless which page he tries to access or edit. It's also not possible for him to change the theme, because he can't access the preferences page anymore.
System: Debian/Etch, apache2 2.2.3-4+etch4 (fcgi, tried cgi too), python 2.4.4-2, explorer.py 2.1 (tried 2.0.2 before), latex.py
--> --> TypeError not all arguments converted during string formatting If you want to report a bug, please save this page and attach it to your bug report. * Show debugging information * Report bug * Visit MoinMoin wiki Traceback A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. 1. /usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_fcgi.Request object>) 1. 1281 self.page.send_page(msg=msg) 2. 1282 else: 3. 1283 handler(self.page.page_name, self) 4. 1284 5. 1285 # every action that didn't use to raise MoinMoinNoFooter must call this now: * handler = <function do_show> * self = <MoinMoin.request.request_fcgi.Request object> * self.page = <MoinMoin.Page.Page object> * self.page.page_name = u'SystemInfo' 2. /usr/lib/python2.4/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'SystemInfo', request=<MoinMoin.request.request_fcgi.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0) 1. 237 count_hit=count_hit, 2. 238 print_mode=print_mode, 3. 239 content_only=content_only, 4. 240 ) 5. 241 * content_only = 0 3. /usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, msg='', **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0}) 1. 1140 print_mode=print_mode, 2. 1141 media=media, pi_refresh=pi.get('refresh'), 3. 1142 allow_doubleclick=1, trail=trail, 4. 1143 ) 5. 1144 * allow_doubleclick undefined * trail = [u'EreWiki:MKS_Architektur', u'EreWiki:MKS', u'EreWiki:CategoryMks', u'EreWiki:ERE_FrontPage', u'EreWiki:SystemInfo'] 4. /usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py in send_title (self=<ere-wiki.plugin.theme.explorer.Theme instance>, text=u'SystemInfo', **keywords={'allow_doubleclick': 1, 'media': 'screen', 'msg': '', 'page': <MoinMoin.Page.Page object>, 'pi_refresh': None, 'print_mode': 0, 'trail': [u'EreWiki:MKS_Architektur', u'EreWiki:MKS', u'EreWiki:CategoryMks', u'EreWiki:ERE_FrontPage', u'EreWiki:SystemInfo']}) 1. 1675 output.append(self.editorheader(d)) 2. 1676 else: 3. 1677 output.append(self.header(d))
moin.log
2008-03-14 12:20:55,377 ERROR TypeError: not all arguments converted during string formatting Traceback (most recent call last): File "/usr//lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1283, in run handler(self.page.page_name, self) File "/usr//lib/python2.4/site-packages/MoinMoin/action/__init__.py", line 239, in do_show content_only=content_only, File "/usr//lib/python2.4/site-packages/MoinMoin/Page.py", line 1142, in send_page allow_doubleclick=1, trail=trail, File "/usr//lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1677, in send_title output.append(self.header(d)) File "/server/wikis/farm/ere-wiki/data/plugin/theme/explorer.py", line 183, in header self.sidebar_width = self.cookies['s_sidebar_width' % module_name].value TypeError: not all arguments converted during string formatting
After reloading the page I don't get the Type Error, instead I get the ValueError (math domain error).
Thank you very much for this error report. I attached a patched version of the explorer theme (explorer-2.1.1alpha.py) which should resolve the bug. It should also resolve the ../math domain error bug. Please test it and tell me the result. If this solves your bugs, I will release a bug fixed version of the theme. Thank's a lot for your help! -- WolfgangFischer 2008-03-14 14:13:04
Thanks for the patch! We had no errors anymore. One user is filling the wiki with content at the moment, if he gets an other error I'll report back -- Ralf Gross 2008-03-17 11:31:24
Fixed in release 2.1.1. -- WolfgangFischer 2008-03-18 11:39:59