Last modified: 2011-11-29 20:56:48 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 6540 - Error creating thumbnail on mw 1.6.x
Error creating thumbnail on mw 1.6.x
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.6.x
PC Windows Server 2003
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-04 08:16 UTC by Borgx
Modified: 2011-11-29 20:56 UTC (History)
1 user (show)

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


Attachments

Description Borgx 2006-07-04 08:16:37 UTC
I found "error creating thumbnail" when trying to create thumbnail smaller then
the original PNG images. Works fine when the thumbnail larger then original
size. Also works fine on 1.5.8 whatever the thumbnail size. These failed on
1.6.3, 1.6.7 and 1.7 r15313 

mw 1.6.7 testcase: http://202.148.16.226/mw167/index.php/Main_Page
mw 1.6.3 testcase: http://202.148.16.226/mw163/index.php/Main_Page
mw 1.5.8 testcase: http://202.148.16.226/mw158/index.php/Main_Page
mw 1.7   testcase: http://202.148.16.226/mw17/index.php/Main_Page

All wikis are fresh installation and installed on the same server running
Windows 2003 Server, PHP 5.0.4 Apache 2.0.5.5 ImageMagick 6.2.7
Comment 1 Rob Church 2006-07-04 23:43:35 UTC
Check permissions. Apache needs to be able to write to the thumbnail
directories. Check that ImageMagick is set up right. Check that the path to
convert is correct in each configuration.
Comment 2 Borgx 2006-07-05 01:00:06 UTC
If the issue was permission, the mw.1.5.8 should produced error which is not.
Comment 3 Borgx 2006-07-05 02:28:13 UTC
After spending hours of trial and error, I found that the problem caused by
extra characters . " 2>&1"; on include/image.php. After removing that, image
thumbnailing is working again. I'm not a PHP expert, and I don't know the use of
this extra characters, but still this is a workaround to my problem. These
characters are not found on mw 1.5.8 (mw 1.5.8 works fine with image
thumbnailing, see initial description and comment #2).

modified include/image.php:

wfEscapeShellArg($thumbPath);
//wfEscapeShellArg($thumbPath) . " 2>&1";
Comment 4 Antoine "hashar" Musso (WMF) 2006-07-05 18:11:13 UTC
2>&1 means "redirect standard error to standard output".
That's probably used to hide errors in apache logs.
Comment 5 Platonides 2006-09-25 15:33:59 UTC
Closing bug. Probably solution should be added (where?) to document it.
Comment 6 Diederik van Liere 2011-11-29 20:56:48 UTC
Bug was already closed in c5.

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


Navigation
Links