Single article renders, collection does not

97 views
Skip to first unread message

Joseph Messerschmidt

unread,
Nov 8, 2012, 1:26:54 PM11/8/12
to mw...@googlegroups.com
I am able to get single articles to render without issue, however collections of articles do not. The generated PDF from a collection just displays mostly blank pages with the chapter headings/titles. There is one title per page but no content between them. Article sources and contributors is likewise blank.

MediaWiki1.19.2
PHP5.3.15 (apache2handler)
MySQL5.5.23
Collection extension is version 1.6.1.

Joseph Messerschmidt

unread,
May 1, 2013, 1:45:01 PM5/1/13
to mw...@googlegroups.com
Anyone?

Balkrishna Darji

unread,
May 2, 2013, 1:43:22 AM5/2/13
to mw...@googlegroups.com
Can you paste any errors that you see. may be from logs. or if you are running the server through console in wait-mode, there are messages it prints. you should try to print the commands and execute from command line to see whats causing the issues. for this you will need to look at the code i think collection.hooks or collection.body.


--
You received this message because you are subscribed to the Google Groups "mwlib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mwlib+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Joseph Messerschmidt

unread,
May 15, 2013, 8:18:39 PM5/15/13
to mw...@googlegroups.com
Server does not produce any errors when generating a PDF. The Collection extension is almost certainly the issue, rather than the mwlib install. Rendering test content through the command line on the mwlib server works flawlessly. I also get the same results with the 1.5.1 version of the Collection extension. I believe this is related to the known issue of having an empty wgScriptPath variable as I have run into that problem before and implemented a suggested workaround to even get this far.

Alex Bayley

unread,
Mar 18, 2014, 10:18:16 PM3/18/14
to mw...@googlegroups.com
We have exactly this situation.  Did anyone find a solution?

Symptoms: initially had the "blank $wgScriptPath" problem, which we fixed as per https://github.com/pediapress/Collection/commit/bf83e7689f76a47802ace1266832ee93d8efc2cd

Now we get a PDF download but that download has nothing except standard headings, eg. a download for a single page just has a page header, page number, and "Article Sources and Contributors" and "License" headings.  A download for a book that I created has the title page, table of contents, chapter headings, and the "Article Sources and Contributors" and "License" headings -- but no actual content!

I agree with the previous poster's suggestion that this might be related to the $wgScriptPath problem.  For instance, it might have something to do with this:

$ grep wgScriptPath Collection.templates.php
        $mediapath = $GLOBALS['wgScriptPath'] . '/extensions/Collection/images/';
        global $wgScript, $wgScriptPath;
        $mediapath = $wgScriptPath . '/extensions/Collection/images/';
        $mediapath = $GLOBALS['wgScriptPath'] . '/extensions/Collection/images/';

I'm going to try and find a workaround similar to the one applied to Collection.body.php and see what I get out of it.

A.
Reply all
Reply to author
Forward
0 new messages