Last modified: 2011-08-15 22:40:32 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 T32355, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30355 - importImages.php Internal Error
importImages.php Internal Error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.20.x
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-13 05:07 UTC by Gerard Boyers
Modified: 2011-08-15 22:40 UTC (History)
2 users (show)

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


Attachments

Description Gerard Boyers 2011-08-13 05:07:08 UTC
When using the importImages.php script, this produces the following error and stack trace. This has happened on both wikis I've tried it on, with different extension sets, I've tried with using different relative dirs and I've checked permissions and chmod a thousand times.



Import Images

Importing Vehicle-BMW-M5-Taxi-VC.jpg...MediaWiki internal error.

Original exception: exception 'MWException' with message 'LocalFile: write operations are not supported' in /home/mods/public_html/includes/filerepo/File.php:1021
Stack trace:
#0 /home/mods/public_html/includes/filerepo/File.php(1036): File->readOnlyError()
#1 /home/mods/public_html/maintenance/importImages.php(244): File->recordUpload('20110813050120!...', 'Importing image...', '')
#2 {main}

Exception caught inside exception handler: exception 'MWException' with message 'FauxRequest::getRequestURL() not implemented' in /home/mods/public_html/includes/WebRequest.php:1108
Stack trace:
#0 /home/mods/public_html/includes/WebRequest.php(1137): FauxRequest->notImplemented('FauxRequest::ge...')
#1 /home/mods/public_html/includes/Exception.php(154): FauxRequest->getRequestURL()
#2 /home/mods/public_html/includes/Exception.php(213): MWException->getLogMessage()
#3 /home/mods/public_html/includes/Exception.php(422): MWException->report()
#4 /home/mods/public_html/includes/Exception.php(501): MWExceptionHandler::report(Object(MWException))
#5 [internal function]: MWExceptionHandler::handle(Object(MWException))
#6 {main}
Comment 1 Roan Kattouw 2011-08-13 11:40:18 UTC
Which version of Mediawiki are you using?
Comment 2 Gerard Boyers 2011-08-13 12:18:55 UTC
(In reply to comment #1)
> Which version of Mediawiki are you using?

1.19-svn
Comment 3 Brion Vibber 2011-08-15 17:56:35 UTC
importImages.php explicitly calls $image->recordUpload -- this method on File is a stub, which is listed as being overridden in LocalFile .... BUT IS NOT in 1.19-svn.

There *is* a recordUpload2 method on LocalFile, but no RecordUpload.

I'm guessing somebody refactored things and didn't fix them all?
Comment 4 Brion Vibber 2011-08-15 17:59:21 UTC
r87584 appears to be the culprit, removed LocalFile::recordUpload().
Comment 5 Sam Reed (reedy) 2011-08-15 18:35:40 UTC
r94543
Comment 6 Brion Vibber 2011-08-15 22:40:32 UTC
Confirmed r94543 fixes this on trunk; merged to REL1_18 as r94585.

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


Navigation
Links