I improved the error reporting a little bit with [1]

The result is in your case:

################################################################################
POST REQUEST FAILED! Response:
Notice: Undefined index: HTTP_ACCEPT in /www/htdocs/eierwi/extensions/MobileDetect/MobileDetect.php on line 28

Notice: Undefined index: HTTP_ACCEPT in /www/htdocs/eierwi/extensions/MobileDetect/MobileDetect.php on line 28 {"expandtemplates":{"*":"\ntemplate_blacklist=MediaWiki:PDF Template Blacklist\ntemplate_exclusion_category=Vom Druck ausschlie\u00dfen\nprint_template_pattern=$1\/Druck\n"}}
################################################################################

A post request from mwlib fails because the result can not be loaded into a json string. The problem is the "Notice: Undefined index:..."
If you fix this everything should be ok.

Regards,
Volker


[1] http://code.pediapress.com/git/mwlib?p=mwlib;a=commit;h=50a7ac2d8913cdb93021ccd956c5cbce408f8720

On 06/28/2011 12:15 AM, chagall wrote:
Hi,
I installed the extension for the MediaWiki-Software but I always get
following errorcode when rendering an new book:

"
Serverfehler


Auf dem Render-Server ist ein Fehler aufgetreten: RuntimeError:
RuntimeError: command failed with returncode 256: ['mw-zip', '-o',
u'cache/be/be7dec454180551f/collection.zip', '-m', u'cache/be/
be7dec454180551f/metabook.json', '--status', u'qserve://localhost:
14311/be7dec454180551f:makezip', '--config', u'http://
www.eierwiki.de', '--template-blacklist', u'MediaWiki:PDF Template
Blacklist', '--template-exclusion-category', u'Vom Druck ausschlie
\xdfen', '--print-template-prefix', u'Drucken', '--print-template-
pattern', u'$1/Druck'] Last Output: wikitext += '\n\n[[%s]]' %
l['mw_rights_page'] /home/tools/local/lib/python2.6/site-packages/
mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/metabook.py:244:
DeprecationWarning: deprecated call get('mw_rights_url') if
l.get('mw_rights_url'): /home/tools/local/lib/python2.6/site-packages/
mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/metabook.py:245:
DeprecationWarning: deprecated __getitem__ ['mw_rights_url'] wikitext
+= '\n\n' + l['mw_rights_url'] /home/tools/local/lib/python2.6/site-
packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/metabook.py:250:
DeprecationWarning: deprecated call get('name')
retval.append(license(title=l.get('name', u'License'), Unhandled error
in Deferred: Traceback (most recent call last): Failure:
exceptions.RuntimeError: could not get collection params fatal: could
not get collection params [[Failure instance: Traceback:<type
'exceptions.ValueError'>: No JSON object could be decoded /usr/lib/
python2.6/site-packages/twisted/web/client.py:175:handleResponse /usr/
lib/python2.6/site-packages/twisted/web/client.py:340:page /usr/lib/
python2.6/site-packages/twisted/internet/defer.py:280:callback /usr/
lib/python2.6/site-packages/twisted/internet/defer.py:
354:_startRunCallbacks ---<exception caught here>  --- /usr/lib/
python2.6/site-packages/twisted/internet/defer.py:371:_runCallbacks /
home/tools/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-
x86_64.egg/mwlib/net/mwapi.py:444:done /home/tools/local/lib/python2.6/
site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/net/mwapi.py:
22:loads /usr/lib/python2.6/json/__init__.py:307:loads /usr/lib/
python2.6/json/decoder.py:319:decode /usr/lib/python2.6/json/
decoder.py:338:raw_decode ]] Traceback (most recent call last): File "/
usr/lib/python2.6/site-packages/twisted/web/client.py", line 175, in
handleResponse self.factory.page(response) File "/usr/lib/python2.6/
site-packages/twisted/web/client.py", line 340, in page
self.deferred.callback(page) File "/usr/lib/python2.6/site-packages/
twisted/internet/defer.py", line 280, in callback
self._startRunCallbacks(result) File "/usr/lib/python2.6/site-packages/
twisted/internet/defer.py", line 354, in _startRunCallbacks
self._runCallbacks() ---<exception caught here>  --- File "/usr/lib/
python2.6/site-packages/twisted/internet/defer.py", line 371, in
_runCallbacks self.result = callback(self.result, *args, **kw) File "/
home/tools/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-
x86_64.egg/mwlib/net/mwapi.py", line 444, in done r = loads(r) File "/
home/tools/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-
x86_64.egg/mwlib/net/mwapi.py", line 22, in loads return json.loads(s)
File "/usr/lib/python2.6/json/__init__.py", line 307, in loads return
_default_decoder.decode(s) File "/usr/lib/python2.6/json/decoder.py",
line 319, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
raise ValueError("No JSON object could be decoded")
exceptions.ValueError: No JSON object could be decoded removing tmpdir
u'cache/be/be7dec454180551f/tmp1gvnBm' 1% error Traceback (most recent
call last): File "/home/tools/local/bin/mw-zip", line 8, in<module>
load_entry_point('mwlib==0.12.14', 'console_scripts', 'mw-zip')() File
"/home/tools/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-
linux-x86_64.egg/mwlib/apps/buildzip.py", line 155, in main
make_zip(output, options, env.metabook, podclient=podclient,
status=status) File "/home/tools/local/lib/python2.6/site-packages/
mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/apps/buildzip.py", line 58,
in make_zip make_nuwiki(fsdir, metabook=metabook, options=options,
podclient=podclient, status=status) File "/home/tools/local/lib/
python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/
apps/make_nuwiki.py", line 223, in make_nuwiki raise
RuntimeError(str(val)) RuntimeError: [Failure instance: Traceback
(failure with no frames):<type 'exceptions.RuntimeError'>: could not
get collection params ] in function system, file ./code/sandbox/
nslave.py, line 37 in function qaddw, file /home/tools/local/lib/
python2.6/site-packages/qs/slave.py, line 66
  "

What is wrong? Do I need to change some settings in my Mediawiki?

MediaWiki: 1.16.5
PHP: 5.2.6-tuxtools-pl2-gentoo (cgi)
MySQL: 5.1.46sp1-enterprise-gpl-pro-log

Thank you in advance

David Kotek


--
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
[email protected]    http://www.brainbot.com/

--
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.

Reply via email to