MyBB Community Forums

Full Version: Repeated PHP Fatal Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys

I keep getting this error from a bunch of IPs coming from China.. I'v blocked them in the firewall but they still seem to be coming through..

Every minute of the day i get these errors

[Sun Dec 11 19:43:09 2011] [error] [client 180.76.5.159] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2822190 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:42:58 2011] [error] [client 180.76.6.222] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2821826 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:42:46 2011] [error] [client 180.76.5.90] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2822248 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:42:34 2011] [error] [client 180.76.5.153] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2822117 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:42:23 2011] [error] [client 180.76.5.137] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2821828 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:42:11 2011] [error] [client 180.76.5.94] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2822357 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:42:00 2011] [error] [client 180.76.5.110] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2821917 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:41:48 2011] [error] [client 180.76.6.37] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2822184 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277
[Sun Dec 11 19:41:36 2011] [error] [client 180.76.5.99] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 2822119 bytes) in /home/superlf/public_html/forum/inc/functions.php on line 277

I dont know what this is ... some kind of attack? Only this set of IPs are producing this error, no one else.

line 277 in functions.php is

$contents = str_replace('<navigation>', build_breadcrumb(1), $contents);

which is part of the PARSE_PAGE function.

My memory limit is 128mb after talking to the host and getting them to increase the limit just in case... this has not solved the issue.

Please, any help?
That PHP error occurs when the allowed memory size is exhausted (the Random Access Memory).. That's not an attack, that's not a MyBB problem, that's your host's server problem..
There's no reason that code should be exceeding your memory limit.
That's the point Matt - and it's only happening from these China IP addresses ... The forum gets 5-7k visitors per day and i only see these errors from these China IP addresses ... and its once or twice a minute..

Strikes me as dodgy..or weird ... any suggestions?
Ask your host to increase value of max_allowed_packet attribute, that might help.