This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made.
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 or OCG.
Enhancement of Articles Sources and Contributors section, add last modified timestamp information
The Article Sources and Contributors section show the oldid link and contributors. It would be helpful to show the timestamp for the modification, like is shown at the bottom on each wiki page (i.e. This page was last modified on 15 January 2015, at 02:01). I'm thinking this would be helpful when you've downloaded and printed the PDF so you can quickly compare whether your printed copy is current with the wiki version. Peculiar Investor (talk) 16:17, 20 January 2015 (UTC)
OTOH, if you are opening the PDF on your PC you can just open the link and see its timestamp; while if you print the PDF you'll usually have a timestamp added by the printer. Nemo 14:45, 22 January 2015 (UTC)
[Resolved] RuntimeError: could not get siteinfo
I have 2 environments that I (hope) think are identical. They are both setup with:
MW 1.25alpha
PHP 5.3.17
Collection 1.7.0 (1618025)
In the Dev environment, Collection works perfectly.
In the Prod environment, I'm seeing this error:
<Greenlet at 0xd43eb0: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 0xdbba50>>> failed with RuntimeError
creating nuwiki in u'/u1/wiki_pdf/cache/2e/2e58aa5a7230f6a6/tmpJuZHDI/nuwiki'
File "/usr/local/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 192, in make_nuwiki
pool.join(raise_error=True)
File "/usr/local/lib64/python2.6/site-packages/gevent/pool.py", line 98, in join
raise greenlet.exception
RuntimeError: could not get siteinfo
in function system, file /usr/local/lib64/python2.6/site-packages/mwlib/nslave.py, line 64
So it's failing on the start_fetcher.run method, but I can't seem to figure out why. Is this likely some system configuration thing? Wmat (talk) 17:34, 27 February 2015 (UTC)
Solved.
This was a DNS issue. We had to add and entry to /etc/hosts so that the server could talk to itself, basically. Wmat (talk) 18:15, 27 February 2015 (UTC)
Hi, I am getting the same error. Do you happen to know what you put in your /etc/hosts file to resolve this? 66.77.160.179 (talk) 16:39, 19 October 2017 (UTC)
I am getting same error after enabling SSL. Could you share how did you resolve this issue Ahsan96 (talk) 19:39, 8 August 2018 (UTC)
Yes, please, show us what you did to your /etc/hosts file. I need help with that, too. Ablum010777 (talk) 05:22, 10 September 2019 (UTC)
License: unknown in PDFs
I'm running the latest version of the extensions on MW1.25alpha and I'm seeing that when I click 'Download as PDF', the licensing information shows License: unknown. I have the following variables configured for the extension, as well as the default for the whole wiki:
According to the ReadMe in the Collections source tree, the license should default to the Rights text in this case. It doesn't. Rendered PDFs and Books still have a License: unknown. Wmat (talk) 15:40, 2 March 2015 (UTC)
Thank you for doing this. This issue is actually a bit worrisome since licensing is an integral part of providing content. So the correct attribution is something that should not be missed. [[kgh]] (talk) 16:29, 2 March 2015 (UTC)
Indeed, I've already argued that the extension should not output at all any content which can't be attributed. Nemo 18:03, 2 March 2015 (UTC)
I'm very curious how this is working on WP and not my wiki? Can anyone else reproduce this? Wmat (talk) 18:28, 2 March 2015 (UTC)
Same here, I'm on MW 1.27 and Collection 1.7
License for all the images is Unknown even though it is clearly mentioned as CC-BY-SA 4.0 and this is also same for images of commons used with InstantCommons 49.207.57.238 (talk) 12:53, 20 March 2017 (UTC)
Can not get my rendering server to work apart from wikipedia.
Hi, I've been trying to set up the Collection extension on my own rendering server, so I can generate pdf files from my wiki. So far no luck.
Hello Solanki. Is your server running on Ubuntu? If so did you read Setup a render server on Ubuntu 12.04 LTS? If you follow the guide you should be able to get your server up and running. It currently explains how to setup on Ubuntu 12.04 LTS but I am testing it on 14.04 LTS and this seems to work just fine also. When I am done I will update Setup a render server on Ubuntu 12.04 LTS. Regards. Felipe (talk) 10:32, 11 March 2015 (UTC)
Hi Felipe. No, my server is running on RHEL 6.5. The strange thing am encountering is its different behavior to different sites, like I mentioned above, it works perfectly fine for Wikipedia, however gives a different error to http://edutechwiki.unige.ch/mediawiki/ and a different one for my site i.e. mw-zip -c http://IP:PortNo/wiki/api.php/ --username=uuu --password=ppp -o test2.zip Test.
Now, this is what's boggling my mind. I have almost gone through every document possible.
(Errors related to different sites are given above.) Solanki (talk) 06:10, 12 March 2015 (UTC)
Yay! I'm getting this exact error ("cannot guess api url...")
And my server was working before.... ☠MarkAHershberger☢(talk)☣ 21:58, 29 June 2016 (UTC)
HI,
we have the similar kind of setup in our RHEL6 server and we render the PDF documents successfully. But, here the issue is the PDF doc could not contain all the embedded JPEG images in the wiki article page and it only intakes .PNG pictures in the PDF document.
Could some one please advise with solution for this issue? It would be really appreciated!
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
Collection works, but always prints the <yambe:breadcrumb> Tags from my Yambe breadcrumbs extension in the pdf documents.
That's quite strange, because I deactivated it on my print.css:
div#yambe{display:none!important;}
When I print on paper, there's no problem, the yambe tag will not be print! Zerano8 (talk) 09:08, 19 March 2015 (UTC)
Which PDF exporter are you using? The default? Nemo 14:03, 19 March 2015 (UTC)
Yes, the default Collection pdf exporter Zerano8 (talk) 12:20, 20 March 2015 (UTC)
Does s.o know where I can set the CSS for the pdf export?
Ist the print.css right for that? Zerano8 (talk) 08:30, 7 April 2015 (UTC)
I finding the same issue display none does not seem to work.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Download as PDF
I've installed Collection on my server. I use my own renderserver. Now, when I want to download a single page as PDF, it always downloads the MainPage, no matter on which page I press "Donwload as PDF".
Is this a bug in the new version? And can you help me to fix this?
Looking forward for a fast answer and have a nice day. 193.73.106.102 07:13, 1 April 2015 (UTC)
I have the same issue, it seems side portlet generates stable links (Special:Collection&bookcmd=render_article&arttitle=<The first article, called in wiki>&oldid=<The olddid of the first page called>). If manually construct URL (Special:Collection&bookcmd=render_article&arttitle=Expected_article) rendering works fine. (MediaWiki 1.24) Bezik (talk) 15:52, 15 May 2015 (UTC)
Collections with LDAP authentication
I am in the process of setting up a wiki which requires a login, and uses LDAP authentication.
How do I go about passing the users login details to render server? I'm struggling to extract the details from the login and assign the details "USERNAME:PASSWORD:DOMAIN" to $wgCollectionMWServeCredentials , and unfortunately I do not have access to create a separate user on the LDAP.
Any help would be greatly appreciated
MediaWiki 1.23.9
PHP 5.4.16 (apache2handler)
MySQL 5.6.19-log
Semantic MediaWiki 2.2
When I select create a book nothing happens, I select printable version and the book creator shows up, disable happens normally. I navigate to another page after I have disabled book creator and book creator is enabled, To disable it I have to select printable version.
I do have my own rendering server that is working on a development server
Any Idea what I may be doing wrong? Legaulph (talk) 17:44, 19 May 2015 (UTC)
After Further Testing
I tried in IE and this works normally
In Chrome I have to do a full page reload after I select create book, and the same to disable. 148.177.1.213 15:00, 20 May 2015 (UTC)
and <source>
<pre> and <source> blocks do not render correctly in collection PDFs. See Wikipedia:Hello world for an example. All line breaks and indenting inside <pre> and <source> blocks are collapsed (extra white space removed).
The effect is to make printed programming resources nearly useless as code samples. Please correct this rendering. Dave Braunschweig (talk) 13:49, 8 August 2015 (UTC)
Is the public render server still working?
Anyone knows if http://tools.pediapress.com/mw-serve/ is still working? I just installed this extension but cannot find the parameter in LocalSettings.php, so I added it myself. However, when I clicked "Download as PDF", it just stayed at 1% and then gave me "Failed to render". Thanks! Netnetjoe (talk) 10:40, 12 August 2015 (UTC)
You don't need to add it in LocalSettings.php. It works without adding it, because it's the default server.
Look in Collection.php, there you'll find:
/** URL of mw-serve render server */$wgCollectionMWServeURL='http://tools.pediapress.com/mw-serve/';
I experience the same issue. Extension is installed and enabled. Collections can be created and stored. Neither creating PDF nor the presspedia preview is working. While rendering a pdf I get the message: (translated back from German) Book rendering failed: An error occurred while trying to render your book.
I run the wiki version on a hosted environment: curl is activated on phpinfo. The side is using https.
Please let me know what might cause this issue and how to solve this. Aonbheannach (talk) 21:17, 4 November 2015 (UTC)
Hide Articles Sources and Contributors section
Hi,
how can I hide the Articles Sources and Contributors section in the PDF?
I don't want that informations on the rendered PDF... Zerano8 (talk) 08:19, 8 September 2015 (UTC)
See here. There are a lot more options. Regards. Felipe (talk) 09:42, 8 September 2015 (UTC)
Help with OCG
I have got it all up and running and can get a PDF out but I am having trouble getting images in the PDF at the bundler stage. Parsoid renders the page OK if I point my browser at it but when I manually run mw-ocg-bundler it fails to get images from things like the GraphViz or SyntaxHighight extensions.
Where do we go for help on OCG, given the board description here?
I have added a T114578 to phabricator to make aware of this issue. Basically the issue is that the tags are not omitted but directly rendered. [[kgh]] (talk) 16:57, 3 October 2015 (UTC)
Mwlib with collection 1.26
Is mwlib working with collection 1.26? I just can't make it work, always get the "Book rendering failed: An error occurred while trying to render your book" error. I use the public render server ('http://tools.pediapress.com/mw-serve/'). 89.135.155.145 (talk) 15:19, 16 December 2015 (UTC)
Hi, I'm using the same version... I can't make it work .. I've tried to build a rendered server on Ubuntu or use the public render server you said.. no matter what I do, I always get the same error 217.12.24.135 (talk) 10:50, 17 February 2016 (UTC)
Hi again, Better to use a own render service 217.12.24.135 (talk) 13:54, 18 February 2016 (UTC)
Follow the instructions on http://mwlib.readthedocs.org/en/latest/installation.html#mwlib-install and launch the listener services such as nserve, etc through console or better on startup as a script 217.12.24.135 (talk) 13:55, 18 February 2016 (UTC)
Now, all of this is working in Ubuntu 64 bits with the last release of Collection extension in mediawiki 1.26 217.12.24.135 (talk) 13:56, 18 February 2016 (UTC)
our organization is using windows only.So is there anway we can create our render server for windows. Ashni rai (talk) 07:20, 24 October 2016 (UTC)