errors generating PDF and Saving the books

77 views
Skip to first unread message

dvdgmz

unread,
Feb 16, 2012, 10:34:19 AM2/16/12
to mwlib
Hi, I've installed Collection in this wiki:
http://www.eoi.es/wiki/

but when I try to download in PDF format it give an error [1].
However the download in ODT works well.

I have another error [2] when I try to save a book to share it.

The wiki is closed for edit (only can edit the authorized authors) and
open to view.
I'm using the pediapress server.

The configuration in LocalSettings.php it's the following (of course
I've changed the account and password here):

require_once("$IP/extensions/Collection/Collection.php");
$wgEnableWriteAPI = true;
$wgCollectionMWServeURL="http://tools.pediapress.com/mw-serve/";
$wgCollectionMWServeCert="null";
$wgCollectionMWServeCredentials="useraccount:password";
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;
$wgGroupPermissions['user']['collectionsaveascommunitypage'] = true;
$wgCollectionFormats = array(
'rl' => 'PDF',
'odf' => 'ODT',
);

This wiki is installed in a folder with its specific name
(mywikifolder/) but in the URL you see only wiki/

It's the first time that I use Collection in a wiki project. It seems
to be a very interesting extension, specially for this project where
several authors work together in a wiki to produce books that then
will be accessible for anybody to download.

Any help about how to resolve the problem will be welcome.
I'm feeling lost right now.
Thanks in advance

- David.

[1] ERROR TRYING TO DOWNLOAD PDF
Error del servidor de procesado

Ha ocurrido un error en el servidor de procesado: RuntimeError:
command failed with returncode 256: ['mw-render', '-w', u'rl', '-c',
u'/home/pp/cache/1b/1b482b13e9b38bb4/collection.zip', '-o', u'/home/pp/
cache/1b/1b482b13e9b38bb4/output.rl', '--status', u'qserve://localhost:
14311/1b482b13e9b38bb4:render-rl', '--template-blacklist',
u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category',
u'Excluir al imprimir', '--print-template-prefix', u'Imprimir', '--
print-template-pattern', u'$1/Imprimir', '--username', u'LibreroEOI',
'--password', '{OMITTED}', '--language', u'es'] Last Output:
2012-02-16T15:13:57 mwlib.options.warn >> Both --print-template-
pattern and --print-template-prefix (deprecated) specified. Using --
print-template-pattern only. MISSING FONTS: 'AR PL UMing
HK','Nazli','UnBatang','Arundina Serif','Lohit Telugu','Sarai','Lohit
Punjabi','Lohit Oriya','AnjaliOldLipi','Kedage','LikhanNormal','Lohit
Tamil','Khmer' 1% reading /tmp/tmpFP8rsN/revisions-1.txt 1% laying out
2012-02-16T15:13:58 rlwriter.info >> rendering: u'http://www.eoi.es/
wiki/index.php?oldid=3375' 1% laying out Oportunidades de negocio para
la ecoinnovación2012-02-16T15:13:58 rlwriter.info >> scaling down text
in wide table by factor of 0.85 25.6666666667% laying out
Oportunidades de negocio para la ecoinnovación2012-02-16T15:13:58
rlwriter.info >> rendering: u'http://www.eoi.es/wiki/index.php?
oldid=3386' 25.6666666667% laying out Negocios en clave de
sostenibilidad para la empresa. en Oportunidades de negocio para la
ecoinnovación50.3333333333% laying out Negocios en clave de
sostenibilidad para la empresa. en Oportunidades de negocio para la
ecoinnovación2012-02-16T15:13:58 rlwriter.info >> rendering: u'http://
www.eoi.es/wiki/index.php?oldid=3203' 50.3333333333% laying out
Entorno en Oportunidades de negocio para la
ecoinnovación50.3333333333% error Entorno en Oportunidades de negocio
para la ecoinnovaciónremoving '/tmp/tmpFP8rsN' Traceback (most recent
call last): File "/home/pp/local/bin/mw-render", line 9, in <module>
load_entry_point('mwlib==0.13.3', 'console_scripts', 'mw-render')()
File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/
render.py", line 211, in main return Main()() File "/home/pp/local/lib/
python2.7/site-packages/mwlib/apps/render.py", line 176, in __call__
writer(env, output=tmpout, status_callback=self.status,
**writer_options) File "/home/pp/local/lib/python2.7/site-packages/
mwlib/rl/rlwriter.py", line 2186, in writer r.writeBook(output=output,
coverimage=coverimage, status_callback=status_callback) File "/home/pp/
local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 480, in
writeBook art_elements = self.writeArticle(art) File "/home/pp/local/
lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 811, in
writeArticle elements.extend(self.renderMixed(article)) File "/home/pp/
local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1090, in
renderMixed res = self.write(c) File "/home/pp/local/lib/python2.7/
site-packages/mwlib/rl/rlwriter.py", line 335, in write res = m(obj)
File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/
rlwriter.py", line 2044, in writeTable t.colwidths =
rltables.optimizeWidths(t.min_widths, t.max_widths, avail_width,
stretch=stretch) File "/home/pp/local/lib/python2.7/site-packages/
mwlib/rl/rltables.py", line 242, in optimizeWidths return [ w+w/
total_current*remaining for w in max_widths] ZeroDivisionError:
division by zero in function system, file ./bin/nslave.py, line 63

[2] ERROR TRYING TO SAVE THE BOOK

Unexpected non-MediaWiki exception encountered, of type
"UsageException"
badtoken: Invalid token

Ralf Schmitt

unread,
Feb 16, 2012, 11:04:08 AM2/16/12
to mw...@googlegroups.com
dvdgmz <dvd...@gmail.com> writes:

> Hi, I've installed Collection in this wiki:
> http://www.eoi.es/wiki/
>
> but when I try to download in PDF format it give an error [1].
> However the download in ODT works well.
>

we will fix that.

> I have another error [2] when I try to save a book to share it.
>
> The wiki is closed for edit (only can edit the authorized authors) and
> open to view.
> I'm using the pediapress server.
>

> [2] ERROR TRYING TO SAVE THE BOOK
>
> Unexpected non-MediaWiki exception encountered, of type
> "UsageException"
> badtoken: Invalid token

Does the user have edit permissions?


--
Cheers
Ralf

David Gómez

unread,
Feb 16, 2012, 12:19:10 PM2/16/12
to mw...@googlegroups.com
Hi Ralf, thanks for your answers.

2012/2/16 Ralf Schmitt <ra...@brainbot.com>:

>> but when I try to download in PDF format it give an error [1].
>> However the download in ODT works well.
>>
>
> we will fix that.

Ok.
It's something what you are working about?
There is any time prevision to attend?

>
>> I have another error [2] when I try to save a book to share it.
>>
>> The wiki is closed for edit (only can edit the authorized authors) and
>> open to view.
>> I'm using the pediapress server.
>>
>> [2] ERROR TRYING TO SAVE THE BOOK
>>
>> Unexpected non-MediaWiki exception encountered, of type
>> "UsageException"
>> badtoken: Invalid token
>
> Does the user have edit permissions?

witch user?
both the user in $wgCollectionMWServeCredentials and the user to test
the book saving have bot, admin, and bureaucrat permissions right now.
I give them to test if that would be the problem.

Greetings

- dvdgmz

Ralf Schmitt

unread,
Feb 21, 2012, 3:07:14 AM2/21/12
to mw...@googlegroups.com
David Gómez <dvd...@gmail.com> writes:

>
>>> but when I try to download in PDF format it give an error [1].
>>> However the download in ODT works well.
>>>
>>
>> we will fix that.
>
> Ok.

yes

> There is any time prevision to attend?

no

> witch user?
> both the user in $wgCollectionMWServeCredentials and the user to test
> the book saving have bot, admin, and bureaucrat permissions right now.

the user trying to save the book. looks like we also need to look into this.

Volker Haas

unread,
Mar 1, 2012, 6:01:51 AM3/1/12
to mw...@googlegroups.com
Am 16.02.2012 18:19, schrieb David G�mez:
> Hi Ralf, thanks for your answers.
>
> 2012/2/16 Ralf Schmitt<ra...@brainbot.com>:
>
>>> but when I try to download in PDF format it give an error [1].
>>> However the download in ODT works well.
>>>
>> we will fix that.
> Ok.
> It's something what you are working about?
> There is any time prevision to attend?
>
>

I fixed the PDF rendering issue. We'll update the public renderserver in
the next couple of days.

--
Volker Haas
Senior Developer
brainbot technologies ag
Boppstra�e 64
55118 Mainz
Phone: +49 (0)6131 2116394

David Gómez

unread,
Mar 1, 2012, 10:37:53 AM3/1/12
to mw...@googlegroups.com
Oh these are good news!!
With your message I understand that we don't need to do changes in our
Extension installation and because the changes are in the server side.
Isn't it?
Well, I'll wait these two days to test it.

Thanks!

David.

2012/3/1 Volker Haas <volke...@brainbot.com>:


> Am 16.02.2012 18:19, schrieb David Gómez:
>
>> Hi Ralf, thanks for your answers.
>>
>> 2012/2/16 Ralf Schmitt<ra...@brainbot.com>:
>>
>>>> but when I try to download in PDF format it give an error [1].
>>>> However the download in ODT works well.
>>>>
>>> we will fix that.
>>
>> Ok.
>> It's something what you are working about?
>> There is any time prevision to attend?
>>
>>
>
> I fixed the PDF rendering issue. We'll update the public renderserver in the
> next couple of days.
>
> --
> Volker Haas
> Senior Developer
> brainbot technologies ag

> Boppstraße 64


> 55118 Mainz
> Phone: +49 (0)6131 2116394
>
>

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

Reply all
Reply to author
Forward
0 new messages