Extension talk:Collection
|
|
This is the talk page for the MediaWiki page about the Collection extension. It is not a support forum for problems with the extension itself or with the accompanying Python libraries mwlib and mwlib.rl. Please note that this is not rude behavior, this decision is just based on the fact that the discussion of software problems or architectural discussions is far too complex to take place on a single talk page.
There is a Google Group for support and discussion of mwlib, mwlib.rl and the Collection extension. There is also an issue tracker on code.pediapress.com. Please use those for questions regarding the software and - do not use this talk page. However, if you have comments regarding the contents of the MediaWiki page associated with this talk page, you are welcome to drop your comments. |
Contents |
[edit] Pre LQT Discussions
[edit] High load on server because of many page requests -- is it possible to leave out apache?
Ahoy,
I've got a problem with my own mediawiki and mwserve combination. My mediawiki runs with apache2 on a small server and its load gets high, as soon as 5 pages are loaded simultaneously: The server is limp. Therefore, the generation of bigger books kills the server.
One solution would be trivial: mw-serve should load the pages directly from the database instead via a http connection. So does the extension pdfbook which I tested: It can generate a 200 page book within seconds.
Any suggestions, how I can leave out the apache2 while giving mw-serve the necessary data?
Best regard, --Mquintus 23:18, 28 February 2011 (UTC)
[edit] Bug:Server Problem Generating PDF
Hi everyone,
I'm maintaining a wiki for the company I'm working for, and I'm trying to set up the collection extension. Everythings is going fine for creating and saving a book, but as for uploading book as a pdf file or displaying it thanks to PediaPress, the uploading stops at 1% and I have the following eror message :
Une erreur est survenue sur le serveur de rendu : RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', u'cache/eb/eb52efc743de7be0/collection.zip', '-m', u'cache/eb/eb52efc743de7be0/metabook.json', '--status', u'qserve://localhost:14311/eb52efc743de7be0:makezip', '--config', u'http://canopy-energy.com/MediaWiki/mediawiki-1.16.0', '--template-blacklist', u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', u"Exclure lors de l'impression", '--print-template-prefix', u'Imprimer', '--print-template-pattern', u'$1/Imprimer', '--username', u'WIKINOPY', '--password', '{OMITTED}', '--domain', u'https'] Last Output: attern only. 1% creating nuwiki in u'cache/eb/eb52efc743de7be0/tmpQ4gSFr/nuwiki' /home/tools/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/metabook.py:220: DeprecationWarning: deprecated call get('mw_license_url') if l.get('mw_license_url'): /home/tools/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/metabook.py:235:...ect
My wiki cannot be edit or read by an '*' unlogged user, and as I keeped the default use of pediawiki server in my local setting I have those two lines :
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeCredentials = 'WIKINOPY:Password';
I also tryied with $wgCollectionMWServeCredentials = 'WIKINOPY:Password:http://canopy-energy.com'; and as I thought the problem was that the server couldn't log to my wiki I even tryed with all permissions (read, edit...) set to true for unlogged users, but I still have the same eror!
Is anyone willing to help me?
Solution ?
Bonjour,
J'ai eu le même problème que vous. Vous utilisez probablement un wiki verrouillé pour utilisateurs authentifiés. De ce fait, le site créateur du PDF (pediapress) ne peut se connecter à votre wiki pour récupérer les informations et renvoyer le PDF. Pour que cela fonctionne, vous devez définir un login et un password spécifique pour pediapress, par exemple : $wgCollectionMWServeCredentials = "pediapress:toto" et également créer ce compte sur votre wiki pour que le site de pediapress puisse s'y connecter. Le nom de domaine est inutile, je pense. En revanche, si vous travaillez en localhost, le firewall empêchera de toute façon pediapress de se connecter au wiki : l'extension Collection fonctionne essentiellement en ligne, ou vous devrez installer PDF-writer pour pouvoir l'utiliser en local (et ça demande un paramétrage supplémentaire.
Bon courage (désolé de ne pas avoir rédigé en anglais...)
Olivier Marlet
[edit] openZIM server set up
Hi,
is there anywhere a detailed manual how to set up a server (Ubuntu) for using the Collection extension with the openZIM format? Couldn't find one...
Thanks and greetings, --Filburt 12:40, 5 April 2011 (UTC)
indeed, how to enable zim export? if i put in localsettings:
$wgCollectionFormats = array( 'rl' => 'PDF','odf' => 'ODT'); no OpenZIM appears.
What string to specify zim? Do i need to install the writer, or is it done on the PediaPress-server like PDF??
Thanx!, great feature. 81.83.100.77 20:59, 12 September 2011 (UTC)
[edit] LQT based discussions
Contents
We are considering whether to install the Collections extension on our wiki. To get a feel for the product of the extension, I created a small "book" of 3 articles from Wikipedia. After examining the result, I became concerned that the extension may not meet all of the licensing requirements for the content in the book.
At the end of the book, the extension cites the licenses for the images that appear in the collection and also specifies the text license. However, it doesn't actually include the licenses themselves or links to them (other than for the text license). For example, the Creative Commons Attribution-ShareAlike 2.5 License specifies in section 4 (Restrictions), "You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform." I included the Wikipedia article on Larry Sanger in a collection, the license for his picture is: "License: Creative Commons Attribution-Sharealike 2.5". Nowhere in the collection does this license or a URI to it appear. Consequently, I wonder if the "book" satisfies the terms of the license.
I asked a more general version of this question on Mediawiki-l but no one responded.
You may want to know of the following problem which seems related:
- Bug 28064 - Collection extension needs some way to inform original authors of a work
Thanks.
I'm aware of two other licence problems:
- Try making a book out of en:Taz people, or simply generate a PDF of the article. It seems that the extension tries to remove bots from the list of contributors, probably since their participation is below the threshold of originality so that they don't need attribution. The extension seems to try to exclude bots by searching for user names containing the word "bot", but note that the article has major contributions by en:User:Abbott, a normal user. Since the word "bot" appears in the middle of this user's user name, he isn't credited, clearly against the licence's attribution requirements. I tried to point this out at m:Book tool/Feedback#Bug: User with major contributions not credited but I'm not sure if this is the right place. Maybe it should go to bugzilla: instead?
- No verbatim copy of the GNU Free Document Licence is included on English Wikipedia (but it seems to be included on German Wikipedia). GFDL doesn't allow any URL – you must include the full licence.
even with LocalSettings set to: $wgGroupPermissions['user']['collectionsaveasuserpage'] = true; $wgGroupPermissions['user']['collectionsaveascommunitypage'] = true;
on MW 1.18
trying to save to the community and user namespace is giving: Unexpected non-MediaWiki exception encountered, of type "UsageException" badtoken: Invalid token
- 0 /www_data/www/includes/api/ApiBase.php(1205): ApiBase->dieUsage('Invalid token', 'badtoken')
- 1 /www_data/www/includes/api/ApiMain.php(590): ApiBase->dieUsageMsg('sessionfailure')
- 2 /www_data/www/includes/api/ApiMain.php(678): ApiMain->setupModule()
- 3 /www_data/www/includes/api/ApiMain.php(340): ApiMain->executeAction()
- 4 /www_data/www/extensions/Collection/Collection.body.php(867): ApiMain->execute()
- 5 /www_data/www/extensions/Collection/Collection.body.php(225): SpecialCollection->saveCollection(Object(Title), false)
- 6 /www_data/www/includes/SpecialPageFactory.php(458): SpecialCollection->execute(NULL)
- 7 /www_data/www/includes/Wiki.php(226): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
- 8 /www_data/www/includes/Wiki.php(626): MediaWiki->performRequest()
- 9 /www_data/www/includes/Wiki.php(533): MediaWiki->main()
- 10 /www_data/www/index.php(57): MediaWiki->run()
- 11 {main}
Hi anyone!!
I introduced the Collection extension on my company's wiki last year, today I'm trying to export one book to PDF format but Im getting the next error, that I believe It's because an image file but still can't fix it. Please help me!
An error occured on the render server: RuntimeError: command failed with returncode 256: ['mw-render', '-w', u'rl', '-c', u'/home/pp/cache/67/67c0f2893941d134/collection.zip', '-o', u'/home/pp/cache/67/67c0f2893941d134/output.rl', '--status', u'qserve://localhost:14311/67c0f2893941d134:render-rl', '--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', '--language', u'en'] Last Output: p?oldid=7987' 1% laying out Gestión de cambios en Web editionTraceback (most recent call last): File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1398, in writeImageLink ret = self._fixBrokenImages(img_node, img_path) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1321, in _fixBrokenImages img = PilImage.open(img_path) File "/home/pp/local/lib/python2.7/site-packages/PIL/Image.py", line 1980, in open raise IOError("cannot identify image file") IOError: cannot identify image file 2012-01-18T14:21:15 rlwriter.warning >> image skipped 0% error Gestión de cambios en Web editionremoving '/tmp/tmpJzn9K_' Traceback (most recent call last): File "/home/pp/local/bin/mw-render", line 9, in <module> load_entry_point('mwlib==0.13.0', '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 2179, 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 478, in writeBook art_elements = self.writeArticle(art) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 809, in writeArticle elements.extend(self.renderMixed(article)) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1088, in renderMixed res = self.write(c) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 333, in write res = m(obj) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 660, in writeSection elements.extend(self.renderMixed(obj)) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1088, in renderMixed res = self.write(c) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 333, in write res = m(obj) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1114, in writeDefinitionList return self.renderChildren(n) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1104, in renderChildren items.extend(self.write(c)) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 333, in write res = m(obj) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1121, in writeDefinitionDescription return self.writeIndented(n) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1125, in writeIndented items = self.renderMixed(n, para_style=text_style(indent_lvl=self.paraIndentLevel, in_table=self.table_nesting)) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1088, in renderMixed res = self.write(c) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 333, in write res = m(obj) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1738, in writeSpan return self.renderInline(n) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1031, in renderInline res = self.write(child) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 333, in write res = m(obj) File "/home/pp/local/lib/python2.7/site-packages/mwlib/rl/rlwriter.py", line 1420, in writeImageLink w, h = self.image_utils.getImageSize(img_node, img_path, max_print_width=max_width, max_print_height=max_height) File "/home/pp/local/lib/python2.7/site-packages/mwlib/writer/imageutils.py", line 39, in getImageSize img = Image.open(img_path) File "/home/pp/local/lib/python2.7/site-packages/PIL/Image.py", line 1980, in open raise IOError("cannot identify image file") IOError: cannot identify image file in function system, file ./bin/nslave.py, line 63
Please help! It happens in 4 different articles, that share some images with other articles which I was allowed to export.
While I think a vast majority of wikis using the Collections extension want PediaPress integration, it has been pointed out that its integration presents a legal problem for some wikis that would like to utilize the other features of the Collections extension.
I'm curious if there are any objections to or interest in adding a setting allowing a sysadmin to disable PediaPress integration. Also like to know if the developers maintaining this extensions have any objections to this addition or interest in adding it - otherwise I'd be willing to volunteer to help add it (assuming there are no objections).
Hi,
I have installed Collection extension on our media wiki portal. I get below error message while i export a book in PDF.
Does anyone have any clue about below error message?
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
why there is no version displayed? how do i know any important changes have been made? when nested articles will be possible?
Hello all, I got a very strange issue on my MediaWiki 1.16.2 (PHP 5.2.10). I installed PDF Writer and Collections extentions, on the same server. PDF Writer works perfectly, and running manually mw-render the pdf are created without any problem. Trying to generate the pdf from inside the Media Wiki article, it seems to be correctly generated, but when I download it insted of show the document within the browser, I got with Internet Explorer a dialog box to dowload a file called index.pdf which is corrupted and unreadable, while FireFox 7.01 show a page full of unreadable characters (as you open a pdf with a text editor). Looking at the mw-serve log I don't get any error, and following the output cache directory path I was able to find the original file generated from mw-serve, called output.rl. I rename it as output.pdf and opened it with acrobat reader; it results perfect (while the version downloaded with IE8 results corrupted and unreadable). I suspect a problem in the download phase. Looking at httpd error log I found the following errors:
[Tue Nov 08 10:01:11 2011] [error] [client 192.168.1.10] PHP Warning: curl_setopt() [<a href='function.curl-setopt'> function.curl-setopt</a>]: the provided file handle is not writable in /var/www/html/mw/extensions/Collection/ Collection.body.php on line 1324, referer: http://192.168.1.62/mw/index.php?title=Speciale:Libro&bookcmd=rendering return_to=PE02+-+Come+Riavviare+Server+da+ILO&collection_id=0608362be0a6524d&writer=rl [Tue Nov 08 10:01:11 2011] [error] [client 192.168.1.10] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions /Collection/Collection.body.php on line 1147, referer: http://192.168.1.62/mw/index.php?title=Speciale:Libro& bookcmd=rendering&return_to=PE02+-+Come+Riavviare+Server+da+ILO&collection_id=0608362be0a6524d&writer=rl [Tue Nov 08 10:01:11 2011] [error] [client 192.168.1.10] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions /Collection/Collection.body.php on line 1148, referer: http://192.168.1.62/mw/index.php?title=Speciale:Libro& bookcmd=rendering&return_to=PE02+-+Come+Riavviare+Server+da+ILO&collection_id=0608362be0a6524d&writer=rl [Tue Nov 08 10:01:40 2011] [error] [client 192.168.1.10] PHP Warning: curl_setopt() [<a href='function.curl- setopt'>function.curl-setopt</a>]: the provided file handle is not writable in /var/www/html/mw/extensions/Collection /Collection.body.php on line 1324 [Tue Nov 08 10:01:40 2011] [error] [client 192.168.1.10] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions /Collection/Collection.body.php on line 1147 [Tue Nov 08 10:01:40 2011] [error] [client 192.168.1.10] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mw/extensions/Collection/Collection.body.php:1328) in /var/www/html/mw/extensions /Collection/Collection.body.php on line 1148
Is there somone who can give me an help !!
Thanks a Lot in advance !
are there any free rendering servers for pdf or odt? i need to render 400-600 pages per book once a month (10 books).
is it possible to prepare a document for example in Adobe Publisher (fonts, front page, index page, headings styles, etc), and download my collection to that document. so once a month i generate updated collection articles and place in this document to save it. right now i have manually recreate design all over again every month.
Hello,
I'm using MediaWiki 1.16.3 with a Windows XAMPP-Stack 1.7.4 (Apache 2.2.17, MySQL 5.5.8, PHP 5.3.5 (VC6 X86 32bit) + PEAR).
I tried to install and configure the Collection extension with the following LocalSettings.php configuration:
require_once("$IP/extensions/Collection/Collection.php"); $wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/"; $wgCollectionFormats = array('rl' => 'PDF', 'odf' => 'ODT', );
When I try to download the PDF/ODT offline Version of a new book I get an error message:
Auf dem Render-Server ist ein Fehler aufgetreten: RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', u'cache/ee/ee57ce6375c56696/collection.zip', '-m', u'cache/ee/ee57ce6375c56696/metabook.json', '--status', u'qserve://localhost:14311/ee57ce6375c56696:makezip', '--config', u'http://s10vitl01/wiki', '--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: 2011-11-04T07:40:17 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only. 1% creating nuwiki in u'cache/ee/ee57ce6375c56696/tmpl0yZuX/nuwiki' ERR: <urlopen error [Errno 4] ARES_ENOTFOUND: Domain name not found> ERR: <urlopen error [Errno 4] ARES_ENOTFOUND: Domain name not found> ERR: <urlopen error [Errno 4] ARES_ENOTFOUND: Domain name not found> ERR: <urlopen error [Errno 4] ARES_ENOTFOUND: Domain name not found> Traceback (most recent call last): File "/home/pp/local/lib/python2.7/site-packages/gevent/greenlet.py", line 402, in run result = self._run(*self.args, **self.kwargs) File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", line 120, in run self.fetch_pages_from_metabook(api) File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", line 60, in fetch_pages_from_metabook fetch_images=not self.options.noimages) File "/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 268, in __init__ siteinfo = self.get_siteinfo_for(self.api) File "/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 417, in get_siteinfo_for return m.get_siteinfo() File "/home/pp/local/lib/python2.7/site-packages/mwlib/net/sapi.py", line 166, in get_siteinfo raise RuntimeError("could not get siteinfo") RuntimeError: could not get siteinfo <Greenlet at 0x24aff30: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 0x2540c50>>> failed with RuntimeError removing tmpdir u'cache/ee/ee57ce6375c56696/tmpl0yZuX' memory used: res=16.6 virt=128.9 1% error Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 9, in <module> load_entry_point('mwlib==0.12.17', 'console_scripts', 'mw-zip')() File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 155, 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 193, in make_nuwiki pool.join(raise_error=True) File "/home/pp/local/lib/python2.7/site-packages/gevent/pool.py", line 105, in join raise greenlet.exception RuntimeError: could not get siteinfo 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
Any help would be appreciated.
is there any software i can use on my pc to create a book in doc or pdf and automatically download sorted mediawiki articles? so i create a book, select the fonts, colors of headings and then articles are downloaded inside the book in that order? that would be awesome!
Folks, I need some real help here. I keep getting an error (shown below) when I select download using PDF format in the Book Creator under the Collections Extension on the MediaWiki server. The admin who installed the extension used the following guidelines:
- http://edutechwiki.unige.ch/en/Mediawiki_collection_extension_installation - http://code.pediapress.com/wiki/wiki/mwlib-install - Extension:Collection
The server is running Oracle Enterprise Linux 5.2 32bit with 1.5GB RAM and 1 CPU. Please let me know if anyone has suggestions or recognizes the problem in the error message below. I'm about ready to rip out the extension and start over nearly from the beginning here. Any help or recommendations would be greatly appreciated.
Thanks.
Render server error An error occured on the render server: RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', u'cache/71/71642c2f7f3ee0d5/collection.zip', '-m', u'cache/71/71642c2f7f3ee0d5/metabook.json', '--status', u'qserve://localhost:14311/71642c2f7f3ee0d5: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'companydomain']
Last Output: 2011-10-26T15:34:27 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only.
1% creating nuwiki in u'cache/71/71642c2f7f3ee0d5/tmpy2M8c_/nuwiki' removing tmpdir u'cache/71/71642c2f7f3ee0d5/tmpy2M8c_' memory used: res=10.4 virt=16.2
1% error Traceback (most recent call last):
File "/home/tools/local/bin/mw-zip", line 8, in <module> load_entry_point('mwlib==0.12.17', 'console_scripts', 'mw-zip')()
File "/home/tools/py26/lib/python2.6/site-packages/mwlib-0.12.17-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/py26/lib/python2.6/site-packages/mwlib-0.12.17-py2.6-linux-x86_64.egg/mwlib/apps/buildzip.py", line 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status)
File "/home/tools/py26/lib/python2.6/site-packages/mwlib-0.12.17-py2.6-linux-x86_64.egg/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 0x84707cc>, 'title': u'Database Refresh', 'url': u'http://10.140.7.52/index.php/Database_Refresh', 'timestamp': u'1300980829', 'currentVersion': 1, 'content_type': u'text/x-wiki', 'revision': u'3595', 'type': 'article', 'latest': u'3595'}>) in function system, file /home/tools/code/sandbox/nslave.py, line 37 in function qaddw, file /home/tools/local/lib/python2.6/site-packages/qserve-0.2.3-py2.6.egg/qs/slave.py, line 66 Return to Main Page.
[root@wikidev wiki]# cat LocalSettings.php <?php
- This file was automatically generated by the MediaWiki 1.17.0
- installer. If you make manual changes, please keep track in case you
- need to recreate them later.
- See includes/DefaultSettings.php for all configurable settings
- and their default values, but don't forget to make changes in _this_
- file, not there.
- Further documentation for configuration settings may be found at:
- Manual:Configuration settings
- Protect against web entry
- if ( !defined( 'MEDIAWIKI' ) ) {
- exit;
- }
if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); }
$path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/includes/DefaultSettings.php" ); require_once("$IP/extensions/embed_document.php");
- this extension is used to mass delete the articles
require_once('extensions/Nuke/Nuke.php');
- If PHP's memory limit is very low, some operations may fail.
ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } }
-
- Uncomment this to disable output compression
- $wgDisableOutputCompression = true;
$wgSitename = "The Company Wiki"; [root@wikidev wiki]# [root@wikidev wiki]# grep require_once LocalSettings.php require_once( "$IP/includes/DefaultSettings.php" ); require_once("$IP/extensions/embed_document.php"); require_once('extensions/Nuke/Nuke.php'); require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
- require_once('includes/Auth_remoteuser.php');
require_once("extensions/PdfExport/PdfExport.php"); require_once("$IP/extensions/pdf.php"); require_once "$IP/extensions/PdfBook.php"; require_once("$IP/extensions/embed_document.php"); require_once( "extensions/FCKeditor/FCKeditor.php" ); require_once("extensions/flash.php"); require_once("$IP/extensions/EmbedVideo/EmbedVideo.php"); require_once('extensions/YouTube.php'); require_once('extensions/aim.php');
- require_once( $IP."/extensions/IM/IMStatus.php");
- require_once( $IP."/extensions/IMStatus/IMStatus.php");
require_once( "{$IP}/extensions/BackAndForth/BackAndForth.php" ); require_once("$IP/extensions/EditOwn/EditOwn.php"); require_once( "$IP/extensions/UsageStatistics/UsageStatistics.php" ); require_once("$IP/extensions/WhosOnline/WhosOnline.php"); require_once ( "$IP/extensions/Contributors/Contributors.php" ); require_once("$IP/extensions/MultiUpload/SpecialMultipleUpload.php"); require_once("$IP/extensions/CategoryTree/CategoryTree.php"); require_once("extensions/accesscontrol/accesscontrolSettings.php"); require_once( 'extensions/SelectCategory/SelectCategory.php' ); require_once("$IP/extensions/DiscussionThreading/DiscussionThreading.php"); require_once("$IP/extensions/Collection/Collection.php");
Hello, can I generate PDF without access to the internet? My company has an wiki, that only can reach in the intranet. They are need a book generator. But I think Collections generate the PDFs on the pediapress server. Is it right?
Is there any way to replace or alter the Title Page (First Page). We would like to add an image or some text
Successfully installed in Windows (after so much pain in native opted for the cygwin route and it works)
Couple of problems though:
- needed to modify the cgi script to include a delay of 3 seconds (for mw-serve to boot) or else the rendering will be stuck and 0%
- even if the file has been generated the "Rendering page" is not notified and is stuck at 0%
I had to manually hit F5 or refresh the page to see the download link.
Anybody else experienced the same problem? Daimengrui 04:57, 2 September 2011 (UTC)
i know that collection is available as long as a session lifetime in php.ini. but can i make it aveliable all the time?
How do I get this extension to include the images in articles? I installed it and it is working but no images get exported. Thank you.