Last modified: 2012-10-26 00:46:01 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 T20310, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18310 - thumbnail images not created, PHP Warning at GlobalFunctions.php on line 1943
thumbnail images not created, PHP Warning at GlobalFunctions.php on line 1943
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.14.x
PC other
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 41371
  Show dependency treegraph
 
Reported: 2009-04-02 16:25 UTC by Evgeny Kotsuba
Modified: 2012-10-26 00:46 UTC (History)
3 users (show)

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


Attachments

Description Evgeny Kotsuba 2009-04-02 16:25:50 UTC
My OS is EcomStation (OS/2), seems that bug should occured at Windows also

After migrating from 1.13 to 1.14 MediaWiki some strange things are occured with images. Thumbnail images with name prefix like "250px" are not created, and thumbnail images are seen as full size images.

Foe example, <gallery> generates html code for 800x600 image DSC007821.jpg like:
---------
<div class="gallerybox" style="width: 155px;">
<div class="thumb" style="padding: 13px 0; width: 150px;"><div style="margin-left: auto; margin-right: auto; width: 120px;"><a href="/index.php/%D0%A4%D0%B0%D0%B9%D0%BB:DSC007821.jpg" class="image" title="DSC007821.jpg"><img alt="" src="/images/f/f8/DSC007821.jpg" width="80" height="120" border="0" /></a></div></div>
---------

Looking in PHP error log I see a lot of messages like
[02-Apr-2009 16:24:36] PHP Warning:  mkdir() [<a href='function.mkdir'>function.mkdir</a>]: No such file or directory in F:\htdocs\includes\GlobalFunctions.php on line 1943

Next I add debug out to code for wfMkdirParents

function wfMkdirParents( $dir, $mode = null ) {
	global $wgDirectoryMode;

	if( strval( $dir ) === '' || file_exists( $dir ) )
		return true;

	if ( is_null( $mode ) )
		$mode = $wgDirectoryMode;
{//debug out 		
  $fp = fopen("i:\\apache2\\logs\\er1.log", "a"); 
  fprintf($fp, "dir=%s mode=%s\n",$dir, $mode); 
  fclose($fp); 
}
	return mkdir( $dir, $mode, true );  // PHP5 <3
}

And in er1.log I see strings like
dir=F:\htdocs/images/thumb/0/0b/Лазерные_пучки_Image011.gif mode=511

Next I change code for  wfMkdirParents() at \includes\GlobalFunctions.php to code used in 1.13 version. With old code thumbnail images are created and no PHP warnings in GlobalFunctions.php 1943 are gegereted.

Sorry for pure english.
in F:\htdocs\includes\GlobalFunctions.php on line 1943
Comment 1 Bryan Tong Minh 2009-09-25 14:27:55 UTC
Does F:\htdocs/images/thumb exist?
Comment 2 Aaron Schulz 2012-10-26 00:46:01 UTC
Closing due to lack of info. No evidence this exists in any current MW version, and it could just be a local permissions issue.

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


Navigation
Links