Re: Encode problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux