Thanks, Volker. Following the advice in the message "bad base url when mediawiki url declared on "localhost" (https://groups.google.com/group/mwlib/browse_frm/thread/2916cdf1bd247260/31b3e201a3c67752?hl=en_US&lnk=gst&q=localhost#31b3e201a3c67752)
* in LocalSettings.php , I have added $wgServer = "http://mediawikihost/"; (I also tried with "http://mediawikihost/w" , because that's where the mediawiki sits ; which one should I use?) * in /etc/hosts, I added 127.0.0.1 mediawikihost * Having done /etc/init.d/apache2 restart , I loaded http://mediawikihost/w/index.php/Main_Page. It works as before, except that often a extra / or /w is added to the URL . When removed, it works again. * Then I tried to download my book as pdf . Unfortunately, it still does not work. * As you can see, I know almost nothing about Apache. Anyway, just to try my luck, I created the file /etc/apache2/sites-available/mediawiki with the statement "DocumentRoot /var/www/w/" in it, and enabled it. But it makes no any difference, it seems, because downloading my book as pdf still not works. * And mw-render -w rl -o test.pdf -c http://mediawikihost/w/ --collectionpage 'My Book' still gives "Unhandled Error" Grateful for more advice. - Mikael On Fri, Jun 17, 2011 at 11:19 AM, Volker Haas <[email protected]> wrote: > Hi, > > I believe the first search result should solve your problem: > > http://groups.google.com/group/mwlib/search?hl=en_US&group=mwlib&q=localhost&qt_g=Search+this+group > > Regards, > Volker > > On 06/16/2011 07:32 PM, mikaelbook wrote: >> >> Dear all, >> >> MediaWiki 1.16.x with the Collection Extension is beginning to work >> on Localhost. I have installed mwlib and mwlib.rl. Articles are >> successfully rendered and written to to pdf-files from the command- >> line with mw-render. >> >> With the Book Creator, I have added articles to a book, which I have >> saved under my User account : >> >> http://localhost/w/index.php/User:Mika/Books/MyBook >> >> and pressed the 'DOWNLOAD PDF' button within Book Creator. I can see >> that it tries to give this command: >> >> >> http://localhost/w/index.php?title=Special:Book&bookcmd=render_collection&colltitle=User:Mika/Books/MyBook&writer=rl >> >> However, no rendering happens. I see only a blank browserpage. Nor do >> I find the test.pdf . Btw, where should I look for it? >> >> Then I have tried to print MyBook to pdf from the command line with: >> >> mw-render -w rl -o test.pdf -c http://localhost/w/ --collectionpage >> 'MyBook' >> >> This gives no 'test.pdf' either. It says "Unhandled error in >> Deferred:" and a lot more which I do not understand, like >> >> File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux- >> i686.egg/mwlib/apps/make_nuwiki.py", line 223, in make_nuwiki >> raise RuntimeError(str(val)) >> RuntimeError: [Failure instance: Traceback:<type >> 'exceptions.KeyError'>: 'revisions' >> /usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux- >> i686.egg/twisted/internet/defer.py:542:_runCallbacks >> /usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux- >> i686.egg/mwlib/net/mwapi.py:323:got_result >> /usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux- >> i686.egg/twisted/internet/defer.py:361:callback >> /usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux- >> i686.egg/twisted/internet/defer.py:455:_startRunCallbacks >> ---<exception caught here> --- >> /usr/local/lib/python2.6/dist-packages/Twisted-11.0.0-py2.6-linux- >> i686.egg/twisted/internet/defer.py:542:_runCallbacks >> /usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux- >> i686.egg/mwlib/apps/make_nuwiki.py:91:got_pages >> >> Grateful for viewpoints on what the problem is. >> >> - Mikael >> >> > > -- > volker haas brainbot technologies ag > fon +49 6131 2116394 boppstraße 64 > fax +49 6131 2116392 55118 mainz > [email protected] http://www.brainbot.com/ > > -- > 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. > > -- 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.
