I installed it step by step, but still getting this error when I try to use the service > Page not found by service
The wiki is not password protected, anyone can read it. Ideas?
You need also to install the Electron render service
I installed it step by step, but still getting this error when I try to use the service > Page not found by service
The wiki is not password protected, anyone can read it. Ideas?
Here I am again. Do I need to install Electron or something besides this? From what I can gather, all I need to do is download the extension and I'm on my way?
Hello,
I think you need also to install the Electron render service – the extension is largely a way to access it, as far as I am concerned.
Yes, as in the docs "The extension provides a handy way to access the Electron Service via a RESTBase API endpoint", but it will not do much without said endpoint installed!
I've installed the service on the same machine as mediawiki. The service url defaults to the local IP address over http. I test from another shell using wget on the same machine with http://my-ip-address:3000/pdf, etc. and that works fine (though it doesn't work if I use "localhost").
However, I still get the same error on the wiki. My guess is that this variable needs to be changed?
$wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
Note that I have tried a half dozen permutations, including http://etc.,
Any clues to help on this? The service is working so it is something in the extension or the MediaWiki install. --Jeffmcneill (talk) 04:50, 25 April 2017 (UTC)
No, Content_translation/cxserver/Setup#RESTBase_Server is not compulsory.
Extension:ElectronPdfService may work only with Apache.
For example, the web-site http://skills.gq has in the LocalSettings.php row:
$wgElectronPdfServiceRESTbaseURL = '/pdf/aw/';
and in the apache-conf rows:
RewriteEngine on
RewriteRule ^/pdf/?(.*)?$ http://localhost:3000/pdf?accessKey=secret&url=http://%{HTTP_HOST}/$1 [P]
It is enough.