Page MenuHomePhabricator

Call to undefined method LocalFile::getLocalRefPath()
Closed, InvalidPublic

Description

Author: trevor

Description:
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


Version: master
Severity: major

Details

Reference
bz40449

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:06 AM
bzimport set Reference to bz40449.
bzimport added a subscriber: Unknown Object (MLST).

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.

trevor wrote:

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.

Gilles triaged this task as Unbreak Now! priority.Dec 4 2014, 10:10 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Needs Triage.Dec 4 2014, 11:22 AM