Last modified: 2012-09-19 00:55:29 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 T22906, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20906 - rebuildImages.php --missing doesn't add found images to wiki
rebuildImages.php --missing doesn't add found images to wiki
Status: NEW
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.16.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.tpederzani.com/pepper/
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-30 15:03 UTC by Todd Pederzani
Modified: 2012-09-19 00:55 UTC (History)
1 user (show)

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


Attachments

Description Todd Pederzani 2009-09-30 15:03:05 UTC
On my wiki I recently had to restore the database from an XML dump.  The file structure was fine -- but the dump does not, by design, include image data.  To re-integrate the images into my wiki, I ran the rebuildImages.php script with the --missing parameter.  It lists the images it finds, but it does not add them to the database.  The first time it ran, it added two images, but none on any subsequent runs.  I've also added "$wgMimeDetectorCommand= "file -bi"; #use external mime detector (linux)" with no effect.

Product  	Version
MediaWiki 	1.16alpha (r57042)
PHP 	5.2.6-1+lenny3 (apache2handler)
PostgreSQL 	8.3.7

On a second wiki that I run (that is in the same situation), no images were added on the first run of the script.

Output of rebuildImages.php shows no errors.  The last lines (and the following command prompt are as follows:

peppermill_wiki 2009-09-30 15:01:30: /var/www/tpederzani.com/pw/images/f/f5/DSCF2829.jpg
peppermill_wiki 2009-09-30 15:01:30: /var/www/tpederzani.com/pw/images/f/f5/Center_fill.jpg
peppermill_wiki 2009-09-30 15:01:30: /var/www/tpederzani.com/pw/images/f/f9/300170106983-01.jpg
peppermill_wiki 2009-09-30 15:01:30: /var/www/tpederzani.com/pw/images/f/fd/200130142394-02.jpg
guildhouse:/var/www/tpederzani.com/pw/maintenance#

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


Navigation
Links