Hello,

We have been using the Collection extension and our own render server for 
some time now. It generates pdf's and it worked like a charm. We recently 
encounter 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. To make a long story a little shorter, I can get it 
working again when I open (load) 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. 

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 
when it will show the message: '*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.

Any help would be appreciated.

Thanks,

Felipe.

-- 
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.

Reply via email to