Last modified: 2014-10-16 11:42:10 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 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