Topic on Project:Support desk

$wgMaxImageArea using GD results in WSOD

3
Mitzzzz (talkcontribs)

Sorry. Forgot the following.

Mediawiki 1.23.1 PHP 5.3.24 MySQL 5.1.70 ImageMagick 6.5.4-7 iMagick module 3.0.1

Hi,

(For the record, I tried searching the threads before posting, but the request keeps timing out).

We cannot use ImageMagick on our shared server due to proc_open() being disabled for security reasons.

I changed the $wgUseImageMagick = false to use the GD library as a test. When I do this, I get this message: 'Error creating thumbnail: Invalid thumbnail parameters'.

I've read in the manual that sometimes setting $wgMaxImageArea higher solves this problem (I currently have it set at 5000*5000), but when I do, it results in a WSOD. Commenting it out allows the page to display normally. I've double checked all the usual culprits (forgetting some syntax, etc).

Debugging (as per the manual) does not produce any clues or even output. There is nothing in the error log.

I have 'memory_limit' set to 64 in the LocalSettings.php file.

Any help appreciated.

Ciencia Al Poder (talkcontribs)

To get the error message of the WSOD, look at Manual:How to debug. That's usually caused by a fatal PHP error, which is usually logged in the apache error_log file.

If your image is huge, the problem may be an "out of memory". You may try increasing memory_limit to something higher (128M or even 256M).

Mitzzzz (talkcontribs)

Thank you. I did try the debug procedure before posting, and all I got was the blank page, no entry in the log files whatsoever. I was able to solve this problem, though. What I did differently was to add the third line below and crank up the integer to 1 Million. I also set the memory limit to 128, as suggested. This allows processing of all but the largest image files.

$wgMaxImageArea = 1.25e8;
$wgMaxShellMemory = 1000000;
$wgMaxShellFileSize = 1000000;

Mitzzzz

Reply to "$wgMaxImageArea using GD results in WSOD"