(user virtuallyme = user google from first post) Ok, I discovered the mw-serve was calling our wiki's api.php that was returning an error within the JSON formatted reply complaining that the call to api.php cannot include a redirect and revids request at the same time.
http://www.example.com/w/api.php?redirects=1&tllimit=500&format=json&revids=131&prop=revisions|templates|images&action=query&imlimit=500&rvprop=ids Rather than attempt to modify the mwlib code, I created a rewrite rule for IIS7.0 that removed the "redirects=1" query element from the full URL. This seemed to allow the mw-serve to continue processing a little further, but now it fails with a KeyError. The following error was both returned directly to the user via HTML (when the PDF Render page was updated) and written to the mw- render.log.rl file in the render server cache: An error occured on the render server: traceback Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/mwlib-0.11.2-py2.6-linux- i686.egg/mwlib/apps/render.py", line 182, in __call__ env = self.get_environment() File "/usr/local/lib/python2.6/dist-packages/mwlib-0.11.2-py2.6-linux- i686.egg/mwlib/apps/render.py", line 117, in get_environment env = wiki.makewiki(self.zip_filename) File "/usr/local/lib/python2.6/dist-packages/mwlib-0.11.2-py2.6-linux- i686.egg/mwlib/wiki.py", line 268, in makewiki script_extension=script_extension, File "/usr/local/lib/python2.6/dist-packages/mwlib-0.11.2-py2.6-linux- i686.egg/mwlib/wiki.py", line 218, in _makewiki res.images = res.wiki = nuwiki.Adapt(zf) File "/usr/local/lib/python2.6/dist-packages/mwlib-0.11.2-py2.6-linux- i686.egg/mwlib/nuwiki.py", line 202, in __init__ self.nuwiki = nuwiki (path_or_instance) File "/usr/local/lib/python2.6/dist-packages/mwlib-0.11.2-py2.6-linux- i686.egg/mwlib/nuwiki.py", line 39, in __init__ self.nshandler = nshandling.nshandler(self.siteinfo) File "/usr/local/lib/python2.6/dist-packages/mwlib-0.11.2-py2.6-linux- i686.egg/mwlib/nshandling.py", line 55, in __init__ self.capitalize = self.siteinfo['general'].get('case') == 'first-letter' KeyError: 'general' Has anyone else managed to get the latest mwlib software to correctly render pages hosted by a MediaWiki version 1.15.0? Any other clues or thoughts regarding the KeyError or problems getting mwlib to correctly interpret JSON responses also welcome. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mwlib?hl=en -~----------~----~----~----~------~----~------~--~---
