MyBB Community Forums

Full Version: 500 Internal Server Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Lately, I am getting this error a lot.

At first, I asked host why -> they told me I have errors in htaccess/PHP files, I checked and it were all OK.

But, now I checked the error_log file and it says this:

[10-Jun-2011 20:33:38] PHP Fatal error:  Out of memory (allocated 262144) (tried to allocate 261900 bytes) in Unknown on line 0
[10-Jun-2011 20:34:58] PHP Fatal error:  Out of memory (allocated 7864320) (tried to allocate 164332 bytes) in /home/xxx/public_html/forum/inc/plugins/hide.php on line 198
[10-Jun-2011 20:35:04] PHP Fatal error:  Out of memory (allocated 1048576) (tried to allocate 19456 bytes) in /home/xxx/public_html/forum/inc/functions.php on line 2436
[10-Jun-2011 20:35:08] PHP Fatal error:  Out of memory (allocated 4980736) (tried to allocate 19456 bytes) in /home/xxx/public_html/forum/inc/functions_user.php on line 99
[10-Jun-2011 20:35:11] PHP Fatal error:  Out of memory (allocated 4456448) (tried to allocate 57 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:35:13] PHP Fatal error:  Out of memory (allocated 3670016) (tried to allocate 209381 bytes) in /home/xxx/public_html/forum/inc/db_mysql.php on line 419
[10-Jun-2011 20:35:15] PHP Fatal error:  Out of memory (allocated 3670016) (tried to allocate 209381 bytes) in /home/xxx/public_html/forum/inc/db_mysql.php on line 419
[10-Jun-2011 20:35:16] PHP Fatal error:  Out of memory (allocated 3407872) (tried to allocate 4 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:36:33] PHP Fatal error:  Out of memory (allocated 6553600) (tried to allocate 101204 bytes) in /home/xxx/public_html/forum/index.php(343) : eval()'d code on line 15
[10-Jun-2011 20:37:25] PHP Fatal error:  Out of memory (allocated 2883584) (tried to allocate 20 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:37:36] PHP Fatal error:  Out of memory (allocated 4718592) (tried to allocate 77824 bytes) in /home/xxx/public_html/forum/inc/settings.php on line 135
[10-Jun-2011 20:38:00] PHP Fatal error:  Out of memory (allocated 4456448) (tried to allocate 57 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:38:06] PHP Fatal error:  Out of memory (allocated 5242880) (tried to allocate 27 bytes) in /home/xxx/public_html/forum/inc/languages/english/global.lang.php on line 387
[10-Jun-2011 20:38:10] PHP Fatal error:  Out of memory (allocated 6029312) (tried to allocate 55538 bytes) in /home/xxx/public_html/forum/inc/functions.php on line 276
[10-Jun-2011 20:39:00] PHP Fatal error:  Out of memory (allocated 4980736) (tried to allocate 77824 bytes) in /home/xxx/public_html/forum/inc/plugins/reportrep.php on line 380
[10-Jun-2011 20:39:28] PHP Fatal error:  Out of memory (allocated 3932160) (tried to allocate 52 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:39:35] PHP Fatal error:  Out of memory (allocated 1310720) (tried to allocate 19456 bytes) in /home/xxx/public_html/forum/inc/functions.php on line 4156
[10-Jun-2011 20:40:15] PHP Fatal error:  Out of memory (allocated 2883584) (tried to allocate 20 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:40:18] PHP Fatal error:  Out of memory (allocated 1048576) (tried to allocate 1245184 bytes) in /home/xxx/public_html/forum/member.php on line 1666
[10-Jun-2011 20:40:22] PHP Fatal error:  Out of memory (allocated 524288) (tried to allocate 311296 bytes) in /home/xxx/public_html/forum/member.php on line 433
[10-Jun-2011 20:40:25] PHP Fatal error:  Out of memory (allocated 2883584) (tried to allocate 44 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:40:25] PHP Fatal error:  Out of memory (allocated 2621440) (tried to allocate 4104 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:40:27] PHP Fatal error:  Out of memory (allocated 3407872) (tried to allocate 44 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:40:55] PHP Fatal error:  Out of memory (allocated 2621440) (tried to allocate 4104 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:41:22] PHP Fatal error:  Out of memory (allocated 4718592) (tried to allocate 77824 bytes) in /home/xxx/public_html/forum/inc/settings.php on line 135
[10-Jun-2011 20:41:50] PHP Fatal error:  Out of memory (allocated 3407872) (tried to allocate 50 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:42:11] PHP Fatal error:  Out of memory (allocated 1048576) (tried to allocate 311296 bytes) in /home/xxx/public_html/forum/global.php on line 491
[10-Jun-2011 20:45:51] PHP Fatal error:  Out of memory (allocated 4194304) (tried to allocate 39 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:45:52] PHP Fatal error:  Out of memory (allocated 4194304) (tried to allocate 50 bytes) in /home/xxx/public_html/forum/inc/class_datacache.php on line 83
[10-Jun-2011 20:45:54] PHP Fatal error:  Out of memory (allocated 6291456) (tried to allocate 128 bytes) in /home/xxx/public_html/forum/inc/functions.php on line 1262

Could it be cause they limited something in PHP so it's out of memory all the time?

Thanks in advance!
Your host needs to increase the max_user_connections setting.
Thank you faviouz, is that all that is needed? Because my host keeps telling me I reach high CPU all the time.

I have about 150 visitors each 60 minutes. (Result from past 60 minutes who's online)
I believe so, yes. Just point them at the server error logs and they'll know what to do.

They might come back to you saying MyBB is stuck in a loop or isn't closing all of its connections, but as far as I know, that is not the case. However, now that I read the server error logs a bit more carefully, two plugins are mentioned. And these might be stuck in a loop or not closing all of its connections, causing the internal server error. The plugins are hide.php and reportrep.php, they should have a similar name in the Admin CP.

Try disabling those two plugins before contacting your web host, and see if that fixes it.
(2011-06-11, 01:48 PM)faviouz Wrote: [ -> ]I believe so, yes. Just point them at the server error logs and they'll know what to do.

They might come back to you saying MyBB is stuck in a loop or isn't closing all of its connections, but as far as I know, that is not the case. However, now that I read the server error logs a bit more carefully, two plugins are mentioned. And these might be stuck in a loop or not closing all of its connections, causing the internal server error. The plugins are hide.php and reportrep.php, they should have a similar name in the Admin CP.

Try disabling those two plugins before contacting your web host, and see if that fixes it.

How do I disable them if the forum is not available?
Are you able to access FTP?
(2011-06-11, 02:04 PM)pyridine Wrote: [ -> ]Are you able to access FTP?

Yes, I can access FTP.
Can you not access the Admin CP?

If not, then in your FTP, navigate to /inc/plugins/, find and delete the following files: hide.php, reportrep.php.
(2011-06-11, 02:13 PM)faviouz Wrote: [ -> ]Can you not access the Admin CP?

If not, then in your FTP, navigate to /inc/plugins/, find and delete the following files: hide.php, reportrep.php.

I removed the files and still nothing. The same error.

But I don't understand how would these plugins cause this when I have them for over 2 months and it was working fine until now?

And no, I can't access any part of the site. I get the same 500 error.
That's not a good way of doing it tbh.

In ./inc/init.php, find:
define("TIME_NOW", time()); 

Add after:
define("NO_PLUGINS", 1); 

It will disable your plugins so you can login to the ACP and permanently disable them. (Remove the line after you're done)
Pages: 1 2