Extension talk:Collection

From MediaWiki.org
Jump to: navigation, search
An archive box Archives 

/Archive 1

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

Start a new discussion

Contents

Thread titleRepliesLast modified
Does Collections extension meet required licensing requirements?313:09, 29 January 2012
Save issues to user and community space issues.114:27, 25 January 2012
Render Server IOError014:30, 18 January 2012
kurulum001:50, 12 January 2012
Interest in or objection to option disabling use of PediaPress310:43, 5 January 2012
Render server error010:39, 1 December 2011
no version specified021:30, 12 November 2011
Unable to download the PDF009:12, 8 November 2011
any other rendering servers?011:47, 7 November 2011
download wiki articles with external software?008:56, 7 November 2011
Collection Extension: RuntimeError: command failed with returncode 256016:36, 4 November 2011
automatic process009:12, 4 November 2011
Getting error when downloading PDF in Book Creator in Extensions Collection016:07, 26 October 2011
Collections in a Intranet113:21, 13 September 2011
Custom Title Page013:14, 13 September 2011
Collections + PDF Writer on Windows004:57, 2 September 2011
collection disappears013:35, 8 August 2011
Images are ignored in articles. I don't want this.221:35, 29 June 2011
Report problem: system overloaded. please try again later.010:45, 31 May 2011

Does Collections extension meet required licensing requirements?

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.

Dnessett16:57, 26 May 2011

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
Helder21:24, 27 May 2011

Thanks.

Dnessett16:07, 28 May 2011

I'm aware of two other licence problems:

  1. 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?
  2. 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.
Stefan213:09, 29 January 2012
 
 
 

Save issues to user and community space issues.

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

  1. 0 /www_data/www/includes/api/ApiBase.php(1205): ApiBase->dieUsage('Invalid token', 'badtoken')
  2. 1 /www_data/www/includes/api/ApiMain.php(590): ApiBase->dieUsageMsg('sessionfailure')
  3. 2 /www_data/www/includes/api/ApiMain.php(678): ApiMain->setupModule()
  4. 3 /www_data/www/includes/api/ApiMain.php(340): ApiMain->executeAction()
  5. 4 /www_data/www/extensions/Collection/Collection.body.php(867): ApiMain->execute()
  6. 5 /www_data/www/extensions/Collection/Collection.body.php(225): SpecialCollection->saveCollection(Object(Title), false)
  7. 6 /www_data/www/includes/SpecialPageFactory.php(458): SpecialCollection->execute(NULL)
  8. 7 /www_data/www/includes/Wiki.php(226): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
  9. 8 /www_data/www/includes/Wiki.php(626): MediaWiki->performRequest()
  10. 9 /www_data/www/includes/Wiki.php(533): MediaWiki->main()
  11. 10 /www_data/www/index.php(57): MediaWiki->run()
  12. 11 {main}
128.189.126.17219:39, 18 January 2012

I have the same error with MW 1.18.0

Unexpected non-MediaWiki exception encountered, of type "UsageException"

badtoken: Invalid token

How to solve ?

hollosch14:27, 25 January 2012
 

Render Server IOError

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.

190.144.123.4214:30, 18 January 2012

acaba bir türk kurulumu türkce anlatabilirmi kafa kalmıyo cevirince

149.140.131.12401:50, 12 January 2012

Interest in or objection to option disabling use of PediaPress

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

Varnent00:07, 3 January 2012

This is very important.

Please make a version of this extension that can seamlessly turn off the Pedia Press integration.

MediaWiki Website User14:47, 4 January 2012
 

Please make a feature request in bugzilla:.

siebrand09:59, 5 January 2012

Good idea: bugzilla:33536

Varnent10:43, 5 January 2012
 
 

Render server error

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

203.145.189.11810:39, 1 December 2011

no version specified

why there is no version displayed? how do i know any important changes have been made? when nested articles will be possible?

213.134.163.13521:30, 12 November 2011

Unable to download the PDF

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 !

FrancoR00:35, 7 November 2011

any other rendering servers?

are there any free rendering servers for pdf or odt? i need to render 400-600 pages per book once a month (10 books).

85.28.158.3811:47, 7 November 2011

download wiki articles with external software?

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.

85.28.158.3808:56, 7 November 2011

Collection Extension: RuntimeError: command failed with returncode 256

Edited by another user.
Last edit: 16:32, 4 November 2011

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.

Anewuserformediawiki15:45, 4 November 2011

automatic process

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!

85.28.158.3809:12, 4 November 2011

Getting error when downloading PDF in Book Creator in Extensions Collection

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

  1. This file was automatically generated by the MediaWiki 1.17.0
  2. installer. If you make manual changes, please keep track in case you
  3. need to recreate them later.
  4. See includes/DefaultSettings.php for all configurable settings
  5. and their default values, but don't forget to make changes in _this_
  6. file, not there.
  7. Further documentation for configuration settings may be found at:
  8. Manual:Configuration settings
  1. Protect against web entry
  2. if ( !defined( 'MEDIAWIKI' ) ) {
  3. exit;
  4. }

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");

  1. this extension is used to mass delete the articles

require_once('extensions/Nuke/Nuke.php');

  1. 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" ); } }

    1. Uncomment this to disable output compression
  1. $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" );

  1. 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');

  1. require_once( $IP."/extensions/IM/IMStatus.php");
  2. 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");

71.185.69.24616:07, 26 October 2011

Collections in a Intranet

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?

141.35.213.24608:13, 6 July 2011

Setup your own Server with: PDF Writer

62.99.253.6213:21, 13 September 2011
 

Custom Title Page

Is there any way to replace or alter the Title Page (First Page). We would like to add an image or some text

62.99.253.6213:14, 13 September 2011

Collections + PDF Writer on Windows

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)

Daimengrui04:57, 2 September 2011

collection disappears

i know that collection is available as long as a session lifetime in php.ini. but can i make it aveliable all the time?

85.28.158.3813:30, 8 August 2011

Images are ignored in articles. I don't want this.

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.

24.130.249.8719:58, 29 June 2011

Maybe it is some of these bugs:

Helder20:41, 29 June 2011

When I use the pediapress preview option the same problem occurs. The latex renders seem to work. I tested it on a Math example.

24.130.249.8721:30, 29 June 2011
 
 

Report problem: system overloaded. please try again later.

All worked fine, what could happen?

195.91.134.18610:45, 31 May 2011
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox