----- Original Message ----
> From: Johannes Beigel <[EMAIL PROTECTED]>
> Sent: Monday, 15 September, 2008 12:10:57
> Am 11.09.2008 um 22:11 schrieb Nanda:
> > I installed the extension. Now i get the error:
> >
> > Invalid base URL.
> 
> If you're using the public render server at tools.pediapress.com: Is  
> your wiki accessible from the "outside" (i.e. from the internet)? If  
> it isn't, you have to setup your own render server with mwlib (command  
> mw-serve).
> 
> If you're already using mw-serve, can you render a single article from  
> your wiki with something like the following command?:
> 
>   $ mw-render -c http://your/wiki -w odf -o test.odt "Some Article"

I've been seeing this on an internal set-up hosted on Centos 5 for a while. 
When I tried the command line version for a PDF ($ mw-render -c 
http://your/wiki -w rl -o test.pdf "Some Article") it told me it couldn't load 
the rl writer because there was no module "hashlib".

It turns out that Hashlib is new in Python 2.5 and doesn't exist in python 2.4 
that Centos ship. There is however a backport package at 
http://code.krypto.org/python/hashlib/ which you can install.

After installing this the command line render works correctly and generates a 
PDF file. The "Download as a PDF" functionality remains broken however, with 
the same error message. I know the base URL is valid because the URL on the 
error page is exactly the same as the -c option I supplied to mw-render. So at 
the very least the error message is incorrect, and whatever is wrong with the 
rendering process is not due to the baseurl being invalid.

On the render server I'm running mwlib.cgi inside apache (in fact the same 
apache that serves the wiki), and getting no messages at all in the log files I 
have configured in mwlib.cgi. I've checked the permissions and they are world 
writable - adding the option -l/var/log/httpd/mw-render.log to the above 
command duly produces a slew of output.
In the apache logs I get a
PHP Notice: Udefined property: stdClass::$is_cached in Collection.body.php on 
line 638
but no other errors.

At this point I noticed the the name of the variable holding the URL of the 
render server has changed from wgPDFServer to wxCollectionMWServeURL (when did 
this happen - trac still has the old name in places?), so my LocalSettings.php 
contained the wrong line, and so the collection was trying to use the public 
server even though it wasn't supposed to.

At this point the error message bucks up and I get something useful:
The POST request to https://lightning.eatechnology.com:8443/cgi-bin/mwlib.cgi 
failed (SSL certificate problem, verify that the CA cert is OK. Details: 
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify 
failed). 
which is presumably because the server is on a self-signed certificate. Any 
ideas how to tell the collection extension that the certificate is OK (I'm sure 
I've been here before, but can't find anything in the mailing list archive or 
trac)?

Richard


      

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to