Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-06-17 21:45:08

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Making small things out of big ones (thumbnailer out of memory)

I uploaded a big image, 17.4M in memory. The thumbnailer decided not to cooperate because I went 6KB over the hardcoded memory limit. That’s fine because I’m not using thumbnails on the site, but I don’t want the annoying error message seen by clients when they try this for press-ready images.

So I changed EXTRA_MEMORY in lib/constants.php to 64M.

Is that the only option I have? Just asking because I’m accumulating quite a number of core mods. :-)

Offline

#2 2011-06-18 16:28:16

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Making small things out of big ones (thumbnailer out of memory)

No at all, you have some options. You can define the constant in config.php. Doing that will cause the definition in constant.php fail (and cause notice, but won’t be visible because of the suppression) as constants can not be redefined.

So, place following line to your config.php and that’s it. After that you don’t need to remember to redo changes when updating Textpattern.

define('EXTRA_MEMORY', '64M');

Last edited by Gocom (2011-06-18 16:32:23)

Offline

Board footer

Powered by FluxBB