I have installed Collection extension on our media wiki portal. I get
below error message while i export a book in PDF.
Please help!!!
An error occured on the render server: RuntimeError: RuntimeError:
command failed with returncode 256: ['mw-zip', '-o', u'cache/0a/
0a8642c481e79fb9/collection.zip', '-m', u'cache/0a/0a8642c481e79fb9/
metabook.json', '--status', u'qserve://localhost:
14311/0a8642c481e79fb9:makezip', '--template-blacklist',
u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category',
u'Exclude in print', '--print-template-prefix', u'Print', '--print-
template-pattern', u'$1/Print', '--username', u'username', '--
password', '{OMITTED}', '--domain', u'thehackettgroup'] Last Output:
2011-12-01T10:24:11 mwlib.options.warn >> Both --print-template-
pattern and --print-template-prefix (deprecated) specified. Using --
print-template-pattern only. 1% creating nuwiki in u'cache/0a/
0a8642c481e79fb9/tmptiTpt0/nuwiki' removing tmpdir u'cache/0a/
0a8642c481e79fb9/tmptiTpt0' memory used: res=15.6 virt=120.3 1% error
Traceback (most recent call last): File "/home/pp/local/bin/mw-zip",
line 9, in <module> load_entry_point('mwlib==0.13.0',
'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 0x2a3fcd0>, 'content_type':
u'text/x-wiki', 'title': u'Main Page', 'timestamp': u'1305146262',
'type': 'article', 'revision': u'4214'}>) in function system, file ./
bin/nslave.py, line 37 in function qaddw, file /home/pp/local/lib/
python2.7/site-packages/qs/slave.py, line 66
> Hi,
>
> I have installed Collection extension on our media wiki portal. I get
> below error message while i export a book in PDF.
we've had this error reported multiple times, but I can't reproduce it.
Can you try setting your $wgServer variable? Can you send me your
LocalConfig.php and the exact mediawiki version, OS, OS version that
you're running?
--
Cheers
Ralf
| Product | Version |
|---|---|
| MediaWiki | 1.17.0 |
| PHP | 5.3.8 (apache2handler) |
| MySQL | 5.0.45-log |
--
You received this message because you are subscribed to the Google Groups "mwlib" group.
To post to this group, send email to mw...@googlegroups.com.
To unsubscribe from this group, send email to mwlib+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.
> Hi Ralf,
>
> Thank you for the respose. I have attached LocalSettings.php file for you
> and find below required details:
Can you try setting $wgServer (see
http://www.mediawiki.org/wiki/Manual:$wgServer) ?
Your LocalSettings.php contains passwords. You may want to change them.
--
Cheers
Ralf
--
Cheers
Ralf
--
Cheers
Ralf
> Hi Ralf,
>
> As per your advise, I have added $wgServer variable to my LocalSettings.php
> file and removed passwords field as well but it did not help.
You sent your passwords to a *public* list. You may want to change them.
>
> Please find attached LocalSettings.php file for your review here.
Can you add something like
$wgServer = "http://example.com/"
instead? What is the error you get then?
> Hi Ralf,
>
> I have set up $wgServer = 'http://wikidev.thehackettgroup.com';
>
> But i still get the same error message, I have attached the
> LocalSettings.php file here
it contains
,----
| /** URL of the server. It will be automatically built including https mode */
| $wgServer = 'http://wikidev.thehackettgroup.com';
| ...
| $wgServer = $wgProto.'://' . $wgServerName;
| # If the port is a non-standard one, add it to the URL
| if( isset( $_SERVER['SERVER_PORT'] )
| && !strpos( $wgServerName, ':' )
| && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
| || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
|
| $wgServer .= ":" . $_SERVER['SERVER_PORT'];
| }
`----
Can you please just set $wgServer once?
> Hi Ralf,
>
> I tried with only $wgServer variable but still the same error message.
>
this is now being tracked in
https://github.com/pediapress/Collection/issues/1
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true; $wgGroupPermissions['sysop']['collectionsaveascommunitypage'] = true;