[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Andre Klapper aklap...@wikimedia.org changed:

   What|Removed |Added

   Priority|Normal  |High
 CC||innocentkil...@gmail.com,
   ||m...@everybody.org
   Severity|major   |critical

--- Comment #10 from Andre Klapper aklap...@wikimedia.org ---
Last change to wfTempDir() was 99fdc6e838d4c7f6a7135a06b58d0bb232ca611c by Mark
to fix bug 24985, hence CC'ing him, and Chad.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Nemo federicol...@tiscali.it changed:

   What|Removed |Added

 CC||federicol...@tiscali.it
   Target Milestone|--- |1.20.x release

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Nemo federicol...@tiscali.it changed:

   What|Removed |Added

   See Also||https://bugzilla.wikimedia.
   ||org/show_bug.cgi?id=39697

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Ingo Malchow imalc...@kde.org changed:

   What|Removed |Added

 CC||imalc...@kde.org

--- Comment #6 from Ingo Malchow imalc...@kde.org ---
I can only add that it also broke one of our wikis with the upgrade to 1.20.2
(from 1.19.x, forgot the exact one). 
Interestingly we have 3 wikis sharing the same sources, just with different
cache/image directories.
Permissions are all the same on each of them though.
You can see the error on
http://community.kde.org/index.php?title=Special:ListFiles, so it affects a lot
of the images.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

--- Comment #7 from Ingo Malchow imalc...@kde.org ---
After fiddling with several patches that can be found over the net, this one
seems to have helped from
http://www.mediawiki.org/wiki/Thread:Talk:MediaWiki_1.19/Thumbnails_didn%27t_work_since_Update_to_1.19:

Replace function wfTempDir() with 

function wfTempDir() {
foreach( array( 'TMPDIR', 'TMP', 'TEMP' ) as $var ) {
$tmp = getenv( $var );
if( $tmp  file_exists( $tmp )  is_dir( $tmp ) 
is_writable( $tmp ) ) {
return $tmp;
}
}
if (ini_get('upload_tmp_dir')!==false) {
$tmp = ini_get('upload_tmp_dir');
if( $tmp  file_exists( $tmp )  is_dir( $tmp ) 
is_writable( $tmp ) ) {
return $tmp;
}

}
if( function_exists( 'sys_get_temp_dir' ) ) {
$tmp = sys_get_temp_dir();
if( $tmp  file_exists( $tmp )  is_dir( $tmp ) 
is_writable( $tmp ) ) {
return $tmp;
}
}
# Usual defaults
return wfIsWindows() ? 'C:\Windows\Temp' : '/tmp';
}

Even though this was meant for 1.19 (where i never had that problem) it works
for 1.20.2 as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Nemo federicol...@tiscali.it changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Severity|normal  |major

--- Comment #8 from Nemo federicol...@tiscali.it ---
- NEW major per above.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

--- Comment #9 from Ingo Malchow imalc...@kde.org ---
Some additional information:
Made some debugging on the original function, like:

if ( $wgTmpDirectory !== false ) {
var_dump($wgTmpDirectory);
return $wgTmpDirectory;
}

This showed me paths like installpath/images.community/tmp or
installpath/images.techbase/tmp (for another wiki). For some reason this
directory doesn't exist for that certain wiki. It does for the others though.
community.kde.org does habe images.community/temp, same for the others, but the
others also have the images.xxx/tmp directory.

Additionally, none of the wikis do have $wgTmpDirectory set, so it obviously
falls back to the default.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2013-01-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Andre Klapper aklap...@wikimedia.org changed:

   What|Removed |Added

   Priority|Unprioritized   |Normal
Version|1.20.1  |1.20.2

--- Comment #5 from Andre Klapper aklap...@wikimedia.org ---
(In reply to comment #4)
 This happens to only a small subset of the images on the wiki.

Could you paste some filenames of such images here, if possible?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2012-12-12 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Cindy Cicalese cical...@mitre.org changed:

   What|Removed |Added

 CC||cical...@mitre.org

--- Comment #4 from Cindy Cicalese cical...@mitre.org ---
I have the same problem under MediaWiki 1.20.2. I did not have this problem
before I upgraded the wiki from MediaWiki 1.19.2. This happens to only a small
subset of the images on the wiki. Some of the problematic images are local
while others are hosted on a foreign repository. I cannot determine a common
denominator between the images that have problems. Applying the fix described
above corrects the problem for me. From a web search, this appears to be a
common problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 42730] Unable to save thumbnail due to issues with getting sys dir for temp files - wfTempDir()

2012-12-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=42730

Andre Klapper aklap...@wikimedia.org changed:

   What|Removed |Added

Version|unspecified |1.20.1
Summary|Error creating thumbnail:   |Unable to save thumbnail
   |Unable to save thumbnail to |due to issues with getting
   |destination on 1.19 +   |sys dir for temp files -
   ||wfTempDir()

--- Comment #3 from Andre Klapper aklap...@wikimedia.org ---
Does this happen with any image file? 
What are the exact steps (click by click) to reproduce the error?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l