Last modified: 2010-05-15 15:54:52 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 T15923, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
1.12.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.

Backtrace:

#0 /home/.angelina/lionelbrits/physics.thetangentbundle.net/w/includes/filerepo/File.php(1030): wfTimestamp()
#1 /home/.angelina/lionelbrits/physics.thetangentbundle.net/w/includes/ImagePage.php(421): File->getTimestamp(1200871747)
#2 /home/.angelina/lionelbrits/physics.thetangentbundle.net/w/includes/ImagePage.php(87): ImagePage->imageHistory()
#3 /home/.angelina/lionelbrits/physics.thetangentbundle.net/w/includes/Wiki.php(390): ImagePage->view()
#4 /home/.angelina/lionelbrits/physics.thetangentbundle.net/w/includes/Wiki.php(48): MediaWiki->performAction()
#5 /home/.angelina/lionelbrits/physics.thetangentbundle.net/w/index.php(90): 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.


Navigation
Links