On Wed, 2011-08-24 at 08:51 -0400, Yehuda Katz wrote: > On Wed, Aug 24, 2011 at 8:39 AM, Josu Lazkano > <josu.lazkano@xxxxxxxxxxxxxxxxxx> wrote: > > [Wed Aug 24 14:32:45 2011] [error] [client 84.88.76.10] PHP > Fatal error: > Allowed memory size of 20971520 bytes exhausted (tried to > allocate 30720 > bytes) in /var/wikifarm/wiki/includes/Xml.php on line 593, > referer: > http://mydomain/ > > I just check the memory limit on PHP5 and it has enough: > > $ cat /etc/php5/apache2/php.ini | grep memory_limit > memory_limit = 128M > > And this the line 593 on > the /var/wikifarm/wiki/includes/Xml.php: > > self::encodeJsVar( $elt ); > > > You should use phpinfo() to check what the actual memory limit is. It > is possible that something in the application or a different > configuration file changes the memory limit (it looks like 21MB is the > limit it is hitting). > I would put phpinfo();die(); right before the self::encodeJsVar call > and look for memory_limit in the output. > > > - Yehuda Thanks Yehuda, I try it but there is no luck, I added this lines on the code before the error line: phpinfo(); die(); But the error continue and there is no any info on the page. If I just put the "phpinfo();" on a file, it show the PHP info and the memory size is 128MB: http://dl.dropbox.com/u/1541853/memory.png I don't know if it is related to Apache or PHP, where I must look for it? Thanks and best regards.