Last modified: 2010-05-15 15:54:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13923 - Image history causes "Internal Error" for shared uploads
Image history causes "Internal Error" for shared uploads
Status: RESOLVED DUPLICATE of bug 13649
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-05-01 22:09 UTC by Lionel Brits
Modified: 2010-05-15 15:54 UTC (History)
0 users

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


Description Lionel Brits 2008-05-01 22:09:27 UTC
I have one (recently upgraded) wiki, A, (1.12.0) that is pulling images from a commons wiki C, (1.11.0). Going to the Image: page for native images on A works without a problem, but going to the Image: page using A for images stored on C gives the following dump:
Internal error

wfTimestamp() called with illegal output type.


#0 /home/.angelina/lionelbrits/ wfTimestamp()
#1 /home/.angelina/lionelbrits/ File->getTimestamp(1200871747)
#2 /home/.angelina/lionelbrits/ ImagePage->imageHistory()
#3 /home/.angelina/lionelbrits/ ImagePage->view()
#4 /home/.angelina/lionelbrits/ MediaWiki->performAction()
#5 /home/.angelina/lionelbrits/ MediaWiki->initialize(Object(OutputPage), Object(ImagePage), Object(Title), Object(User), Object(WebRequest))
#6 {main}
Looking around, File.php is calling
return wfTimestamp( filemtime( $path ) );
with a unix timestamp (11110101200871747). For some reason wfTimestamp is setting $outputtype to 11110101200871747, which of course doesn't make sense.
I tried replacing the exception throw with
return gmdate( 'YmdHis', $uts );
as a temporary work-around, and this kicked up an error on line 428 of ImagePage.php. As a final work-around I simply commented out the foreach on that section.

I will upgrade C to 1.12.0 and see if this solves anything, but the problem shows up on A.
Comment 1 Brion Vibber 2008-05-01 22:11:42 UTC

*** This bug has been marked as a duplicate of bug 13649 ***

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