Last modified: 2012-09-26 01:56:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42449, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40449 - Call to undefined method LocalFile::getLocalRefPath()
Call to undefined method LocalFile::getLocalRefPath()
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
PdfHandler (Other open bugs)
master
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-23 03:09 UTC by Trevor Harmon
Modified: 2012-09-26 01:56 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Trevor Harmon 2012-09-23 03:09:09 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
Comment 1 Alex Monk 2012-09-23 12:07:31 UTC
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.
Comment 2 Trevor Harmon 2012-09-26 01:56:19 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links