[wp-testers] Allowed memory size exhausted
skeltoac at gmail.com
Thu Nov 24 15:11:05 GMT 2005
The memory limit is usually 8MB but some hosts may place it higher or
lower according to whim. There is no easy safety check for memory
limits and the error is always fatal. 1.6 attempts the resize after
the upload move and db insert, so if it fails it does so silently.
One good solution is to leave php settings alone (many people can't
touch them anyway) and include support for a 3rd-party, open source
image resizing tool that might be included, much like we include
Snoopy and TinyMCE.
Any volunteers to find the best 'nix thumbnailer binary and code
around it, while keeping it safe for Win servers and checking a
defined constant for an alternate program path?
On 11/23/05, Dougal Campbell <dougal at gunters.org> wrote:
> Chen ZhaoLin wrote:
> > Hi,
> > After some checking, it seems that it indeed has to do with php.ini
> > settings.
> > however, it appears that you can overwrite the settings in an individual
> > script by adding
> > ini_set("memory_limit","12M"); (or another number)
> > This solved the problem on my 1.5.2 blog, where i added it into
> > admins-function.php
> > Okie.but which file in 2.0 should i make this change to?
> For any version of WP, I'd put that in my wp-config.php. That way, it
> won't get overwritten when you upgrade. Alternately, you could make
> yourself a very simple plugin.
> Dougal Campbell <dougal at gunters.org>
> wp-testers mailing list
> wp-testers at lists.automattic.com
More information about the wp-testers