MyBB Community Forums

Full Version: Code error on my forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Got this message on the top of the page over at one of my forums.

Warning: shell_exec() has been disabled for security reasons in /home/tvrebels/public_html/forum/inc/functions.php on line 1198


Any fixes?
thanks
Hi,

That function is not inside inc/functions.php. You are either 1) Running an old version of MyBB or 2) Running an modified version.

Ryan
Using latest mybb and no modifications http://tvrebels.com/forum, should I try re upping functions.php?
You can try. If the problem still occurs tell your host to turn off "Safe Mode". If they say otherwise tell them it's going to be removed in PHP 6 anyway, and it really isn't a "Safe solution " and was never intended to be used the way it's being used now on hosts.
I think you can fix it this way:

Open inc/functions.php
Find:
function get_server_load()
{
	global $lang;
After that, add:
	return $lang->unknown;

Save and upload to your forum. See if that works.