[wp-testers] Allowed memory size exhausted

Dougal Campbell dougal at gunters.org
Wed Nov 23 19:16:43 GMT 2005


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>
http://dougal.gunters.org/



More information about the wp-testers mailing list