Hello. I have tried the mwlib mailing list first but it seems to be rather "dead". We have been using the Collection extension and our own render server for some time now (on Ubuntu Server 12.04 LTS). It generates pdf's and it worke(d) like a charm. We recently encountered a strange problem, we noticed that it was still possible to render a page or book but it was not possible to download the pdf anymore. When you then press "Download the file" the following message pops up:
File not found: The file you are trying to download does not exist: Maybe it has been deleted and needs to be regenerated. Return to ........
We have been updating to MW 1.22.0 recently but we noticed this behavior also in MW.1.21.x. To make a long story a little shorter, I can get it working again when I open (reload) our wiki's "main page" in a browser on the Web server itself. After that I can download generated pdf files again from any computer on the network. But after a couple of minutes it stops working again.
In Collection.body.php I found 'coll-download_notfound_text'
which is probably responsible for the message:
$info = false;
if ( isset( $r['url'] ) ) {
$req = MWHttpRequest::factory( $r['url'] );
$req->setCallback( array( $this, 'writeToTempFile' ) );
if ( $req->execute()->isOK() ) {
$info = true;
}
$content_type = $r['content_type'];
$content_length = $r['content_length'];
$content_disposition = $r['content_disposition'];
} else {
$info = self::mwServeCommand( 'download', array(
'collection_id' => $request->getVal( 'collection_id' ),
'writer' => $request->getVal( 'writer' ),
) );
$content_type = $info['content_type'];
$content_length = $info['download_content_length'];
$content_disposition = null;
}
if ( !$info ) {
$this->getOutput()->showErrorPage( 'coll-download_notfound_title', 'coll-download_notfound_text' );
return;
}
I am not a programmer but does anyone know what the above code does and in witch situation it will show the message ('coll-download_notfound_text
'): 'The file you are trying to download does not exist'?
We are running our Wiki on Windows Server 2008 and are using XCache but we have been using XCache for some time now and never encountered problems like this before. It also makes no difference if I run the Wiki with the caching disabled. I also tried several versions of the Collection extension form Git but to no avail. Any help would be appreciated. Thanks.