https://bugzilla.wikimedia.org/show_bug.cgi?id=17041
Summary: Thumbnail script doesn't work in PHP Safe Mode
Product: MediaWiki
Version: 1.13.3
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: Normal
Component: Images
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
I read that setting
$wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
will generate thumbnails on each request rather than putting them in the
(non-writable) thumb directory (because of safe mode). But this doesn't work.
If I access a thumb there's only an error message concerning Safe Mode
SAFE MODE Restriction in effect. The script whose uid is 100 is not allowed to
access /path/to/wiki/images/thumb/MyPic.jpg owned by uid 10 in
/path/to/wiki/includes/media/Bitmap.php on line 214
File not found
Although this PHP script (/wiki/thumb.php) exists, the file requested for
output (/path/to/wiki/images/thumb/MyPic.jpg/120px-MyPic.jpg) does not.
Well, why should the script access the thumb directory at all? As I understand,
setting $wgThumbnailScriptPath should prevent thumb generation in the
filesystem.
# current upload config
$wgEnableUploads = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgUploadDirectory = "{$IP}/images";
$wgHashedUploadDirectory = false;
$wgFileStore['deleted']['hash'] = 0;
$wgMaxUploadSize = 20*1024*1024;
$wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
$wgShowExceptionDetails = true;
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l