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.
On Thursday, 16 May 2013 10:18:39 UTC+10, Joseph Messerschmidt wrote:
>
> 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.
>
>
>
> On Wednesday, May 1, 2013 10:43:22 PM UTC-7, Balkrishna Darji wrote:
>>
>> 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.
>>
>>
>> On Wed, May 1, 2013 at 11:15 PM, Joseph Messerschmidt <
>> [email protected]> wrote:
>>
>>> Anyone?
>>>
>>> On Thursday, November 8, 2012 10:26:54 AM UTC-8, Joseph Messerschmidt
>>> wrote:
>>>>
>>>> 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.
>>>>
>>>> MediaWiki <https://www.mediawiki.org/> 1.19.2PHP <http://www.php.net/>
>>>> 5.3.15
>>>> (apache2handler)MySQL <http://www.mysql.com/> 5.5.23
>>>> Collection extension is version 1.6.1.
>>>>
>>> --
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.