Last modified: 2009-10-24 21:23:41 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 4328 - Upgrade to 1.5 did not populate image mime column
Upgrade to 1.5 did not populate image mime column
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.wereldpagina.nl/wiki2
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-21 07:04 UTC by Nanda Jansen
Modified: 2009-10-24 21:23 UTC (History)
1 user (show)

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


Attachments

Description Nanda Jansen 2005-12-21 07:04:55 UTC
After upgrading from 1.4.12 to MW 1.5.3, we found that almost all the images are no longer 
displayed, and their pages are showing a warning about possible malicious code. 

The script maintenance/rebuildImages.php is already used. It is looking for images in the root of 
the folder images. But, the images are placed in the subfolders.

After a while we get the message: "To many users" and "to many connection".

On the internet we have read that there are more websites with this problem. They also have the 
images' major_mime_type fields in the database empty.

See the test website: http://www.wereldpagina.nl/wiki2
Comment 1 Rob Church 2005-12-21 20:53:53 UTC
If you fill in the mime type field for a known image and view it, does that work?
Comment 2 Nanda Jansen 2005-12-21 21:37:17 UTC
Yes, that works. See:

http://www.wereldpagina.nl/wiki2/index.php/Afbeelding:Isola2000vue_de_station.JPG

But first i had to change in the LocalSettings.php:

$wgHashedUploadDirectory = true (Default was false) otherwise the link would point to the folder and not to 
the subfolder.

(http://www.wereldpagina.nl/wiki2/images/Isola2000vue_de_station.JPG
instead of
http://www.wereldpagina.nl/wiki2/images/9/93/Isola2000vue_de_station.JPG)
Comment 3 Zigger 2005-12-28 15:26:15 UTC
(set version based on report with 1.5.2 at
http://mail.wikipedia.org/pipermail/mediawiki-l/2005-December/008743.html )
(dropped severity as work-around provided)
(re-opened because upgrade or doco bug presumably still exists)
Comment 4 Nanda Jansen 2005-12-28 18:06:49 UTC
Manualy filling in the mime type field and the format for a known image works indeed. But that is only a 
solution for a small amount of Images. 

The bug is severe if your website has a lot of Images.
Comment 5 Nanda Jansen 2005-12-28 18:07:36 UTC
Manualy filling in the mime type field and the format for a known image works indeed. But that is only a 
solution for a small amount of Images. 

The bug is severe if your website has a lot of Images.
Comment 6 Rob Church 2006-01-29 17:23:45 UTC
Update: To correct this problem, run the rebuildImages.php maintenance script
from the command line.
Comment 7 Alexandre Emsenhuber [IAlex] 2009-10-24 21:23:41 UTC
Marking bug as FIXED, rebuildImages.php should work fine with $wgHashedUploadDirectory correctly set and 1.5 is out of support since a while.

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


Navigation
Links