Last modified: 2012-09-26 01:56:19 UTC
I am trying PdfHandler for the first time. I checked out the latest master branch from Git. I didn't change any settings (other than the require_once necessary to install the extension). The first time I tried it, the server gave me an error: Fatal error: Call to undefined method LocalFile::getLocalRefPath() in /home/REDACTED/REDACTED/extensions/PdfHandler/PdfHandler_body.php on line 165 I regressed the problem to commit da2c37465ff61035c37c9f5c35bb66eaef093a8e. If I use a commit earlier than this, the error does not occur and PdfHandler works perfectly. I am using MediaWiki 1.16.4 on a server with PHP 5.2.17
LocalFile::getLocalRefPath was added in December last year (r106752) so is only in 1.19. 1.16.4 is no longer a supported MediaWiki version. However, this might be a valid bug for 1.18.
Thanks for the info. If 1.16.4 is no longer supported, then the documentation needs to be updated. It still says 1.11+ is supported: http://www.mediawiki.org/wiki/Extension:PdfHandler You might also want to mention in the docs that commit d999b09e729effe226ee44996c7ca5101e31eaed was the last one to work with 1.16.x.