I encountered this problem. It takes me few days to resolve it. I hope this post can help someone like me.
We running a private MediaWiki site (1.13.3) and the users need to logon to see the Wiki contents. We have installed the Extension:Collection, mwlib, mwlib.rl packages plus all their dependency for generating the PDF files. Since it is a private site, so we running mw-serve process for PDF generation on the same machine. When we generating PDF file, wiki always return "Invalid URL" error. I looked into mw-serve execution log, for each request, mw-serve create/reuse a cache directory /var/cache/mw-serve/x/xxxxxxx. Then I looked into the mw-render.log.rl file in the cache directory, I found this problem: mw-serve issue a http call to wiki's api.php http://localhost/wiki/api.php?action=request&meta=siteinfo&format=json And, Wiki api.php always return "Invalid action parameter" in json format. Then mw-serve translates this error to "Invalid URL" error and return to the Wiki. Wiki just display "Invalid URL" error back to the users. The problem is that mw-serve process need to logon to Wiki, otherwise Wiki refuses to show the content and information. In our LocalSettings.php file, I need this line "$wgGroupPermissions['*'] ['read'] = false;", so the user must logon to see the content. To resolve this above problem, we added this line "$wgGroupPermissions ['*']['read'] = true;" to the top of api.php file. Then, the request can continue. Here come the next road block: mw-serve later on issue a call with parameter "siteinfo=....|magicwords". Wiki api.php return error: unknow parameter "magicwords". Wiki v1.13.3 does not know the "magicwords" parameter. This problem is resolved in v1.14.0 (bug # 16126) https://bugzilla.wikimedia.org/show_bug.cgi?id=16126 However, we cannot move on to 1.14.0 yet, so we manually patch the wiki/include/api/ApiQuerySiteinfo.php file, see the diff in this link http://www.mediawiki.org/wiki/Special:Code/MediaWiki/42614 >From that on, it works. We can generate PDF file. By the ways, we tested the MediaWiki 1.14.0 on different machine, it works without the above modification. Good Luck. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
