Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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