Last modified: 2014-10-16 11:42:10 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 T72931, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70931 - Thumbnails not shown in Special:ListFiles when using Postgres
Thumbnails not shown in Special:ListFiles when using Postgres
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.5
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2014-09-17 08:34 UTC by gebhkla
Modified: 2014-10-16 11:42 UTC (History)
1 user (show)

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


Attachments

Description gebhkla 2014-09-17 08:34:54 UTC
In Special:ListFiles the column Thumbnail is not showing the thumbnail, instead the name is shown. This is because the timestamp used as option for the method findFile uses a different format, than the method expects:

We fixed this behaviour by replacing line 409 in SpecialListfiles.php:

$opt = array( 'time' => $this->mCurrentRow->img_timestamp );

with:

$opt = array( 'time' => wfTimestamp( TS_MW, strtotime( $this->mCurrentRow->img_timestamp ) ) );
Comment 1 gebhkla 2014-09-17 08:37:45 UTC
We have noticed the same problem with 1.23.0 and the fixed the same way.
Comment 2 Andre Klapper 2014-09-17 09:41:25 UTC
Thanks for taking the time to report this!
Trying the *latest* 1.23.x or 1.22.x versions is highly welcome.
Comment 3 Sam Reed (reedy) 2014-09-17 16:32:26 UTC
(In reply to Andre Klapper from comment #2)
> Thanks for taking the time to report this!
> Trying the *latest* 1.23.x or 1.22.x versions is highly welcome.

The code is exactly the same on master, just at line 425... It's not a formatted timestamp, so it definitely needs something doing with it...

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


Navigation
Links