Topic on Extension talk:Collection

Edga~mediawikiwiki (talkcontribs)

Hi All,

Setting up this Extension seemed relatively simple. I've done everything I needed in terms of configuration:

require_once "$IP/extensions/Collection/Collection.php";

$wgCollectionPODPartners = false;

$wgEnableWriteAPI = true;

$wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/";

$wgCollectionMWServeCredentials = "user:userpass";
$wgCollectionFormats = array(
'rl' => 'PDF', # enabled by default
    'odf' => 'ODT',
    'docbook' => 'DocBook XML',
    'xhtml' => 'XHTML 1.0 Transitional',
    'epub' => 'e-book (EPUB)',
    'zim' => 'Kiwix (OpenZIM)',

);
$wgGroupPermissions['sysop']['collectionsaveascommunitypage'] = true;
$wgGroupPermissions['sysop']['collectionsaveasuserpage']      = true;

However all I get after clicking Download as PDF is "There was an error while attempting to render your book.". No details to help me debug it. is there any way to enable some more detailed error reports or does anyone know if there's anything wrong with my config?

This post was posted by Edga~mediawikiwiki, but signed as Edga.

Fidicterms (talkcontribs)

I am having the same problem and it's driving me crazy , been sitting at my computer for more than 10 hours without any success !

the test (mw-zip and mw-render) works fine on the render server's console. but my wiki won't connect to the render server. it doesn't even show any activity on the render server's log. it's just the plain "There was an error while attempting to render your book." ...

I even installed a new virtual machine and set the render server up again from scratch, same results.

appreciate any help / idea

(wiki site : www.fidicterms.org)

(temporary render server : 107.170.1.247)

80.147.138.211 (talkcontribs)

do you solved the probelm?

PhotographerTom (talkcontribs)

Could this be related to "The Book Creator software has been broken since it was rebuilt in 2014, the management process is inactive, and no fixes are in sight." from https://en.wikipedia.org/wiki/Help:Books?

Raiemaille (talkcontribs)

Hi,

If you use your own renderer, take care to specify port number used by nserve (8899 by default) in LocalSettings.php :

$wgCollectionMWServeURL = 'http://mywebsite:8899'

And don't use 'localhost' or IP like 192.168... It's necessary to set a "real" name :

$wgServer = "http://mywebsite";

Tinss (talkcontribs)

I was getting the same error upon setting up this extension and then realized access to my wiki was restricted to logged in users only and the public http://tools.pediapress.com/mw-serve/ needed to access the page in order to render it.

So on a private wiki, you can use the following hack to give access to tools.pediapress.com (78.46.16.76). Keep in mind that an ip address is easily spoofed so use at your own risk.

if(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '78.46.16.76')
{
  $wgGroupPermissions['*']['read'] = true;
}
Kghbln (talkcontribs)

Did not see this before but there is also the "$wgCollectionMWServeCredentials" configuration parameter used like $wgCollectionMWServeCredentials = 'user:pass';

Reply to "Book rendering failed"