Last modified: 2013-10-08 12:13:41 UTC
I installded Collection extention with instruction. Put followin in the localSettings.php require_once( "$IP/extensions/Collection/Collection.php" ); I can't use mvlib on my server and i want use PediaPress. When i try Download As PDF, i get error: <code>RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', u'/home/pp/cache/ce/ce21a325a1031a95/collection.zip', '-m', u'/home/pp/cache/ce/ce21a325a1031a95/metabook.json', '--status', u'qserve://localhost:14311/ce21a325a1031a95:makezip', '--template-blacklist', u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', u'\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u0435\u0447\u0430\u0442\u0438', '--print-template-prefix', u'\u041f\u0435\u0447\u0430\u0442\u044c', '--print-template-pattern', u'$1/\u041f\u0435\u0447\u0430\u0442\u044c'] Last Output: 2012-04-20T22:43:24 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only. 1% creating nuwiki in u'/home/pp/cache/ce/ce21a325a1031a95/tmpkvsX2V/nuwiki' removing tmpdir u'/home/pp/cache/ce/ce21a325a1031a95/tmpkvsX2V' memory used: res=15.7 virt=122.5 1% error Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 9, in <module> load_entry_point('mwlib==0.13.3', 'console_scripts', 'mw-zip')() File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 151, in main make_zip(output, options, env.metabook, podclient=podclient, status=status) File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status) File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", line 152, in make_nuwiki assert x.wikiident in id2wiki, "no wikiconf for %r (%s)" % (x.wikiident, x) AssertionError: no wikiconf for None (<article {'_env': <mwlib.wiki.Environment object at 0x1666250>, 'content_type': u'text/x-wiki', 'title': u'\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430', 'timestamp': u'1326466208', 'type': 'article', 'revision': u'2311'}>) in function system, file ./bin/nslave.py, line 63 in function qaddw, file /home/pp/local/lib/python2.7/site-packages/qs/slave.py, line 66</code> Note: $wgScriptPath = ""; (may be it help)
I have the same problem. New installation of MW 1.19, no firewall. Collection version 1.5 (offered for MW 1.19). I also tried recent version 1.6.1 with the same result. I have a render server installed, which works well with my other wiki (MW 1.17). This server, and the render server of Pediapress, don't work with MW 1.19.
see https://github.com/pediapress/Collection/issues/1 for more information.
Thanks a lot. I tried this yesterday with no success. But I had a recommended version of Collection for MW 1.19. Now with Collection 1.6.1 following workaround works: I replaced Collection_body.php text "'base_url' => wfExpandUrl( $wgScriptPath, PROTO_CURRENT )," with "'base_url' => 'mywikiurl',". I have one more issue, rendered PDF contains only references and licence, article's text is missing. But it's another story.
@Ralf Schmitt: workground from there not work for me.
My working configuration: MW1.19 + Collection 1.6.1 LocalSettings.php: $wgEnableAPI = true; require_once("$IP/extensions/Collection/Collection.php"); $wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/"; Collection.body.php: base_url replaced (3 occurences) with my wikiurl (with http and no slash at the end).
@josmart: confrimed, you workgrond works fine.
What is your $wgScriptPath? If empty, or something without a slash, it is a duplicate of bug 37868
You're right, my $wgScriptPath = "". But it works ok now with a corrected Collection.body.php.
*** This bug has been marked as a duplicate of bug 37868 ***