MyBB Community Forums

Full Version: problem with safe mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all. I just update from mybb 1.2.6 to 1.2.7 I get an error at the top of my pages. the error becuase there is safe mode on
Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /home/pepo/public_html/inc/functions.php on line 1198
I just comment out this lines in functions.php
	else if(function_exists("shell_exec"))
	{
		$load = explode(' ', `uptime`);
		$serverload[0] = $load[count($load)-1];
	}
it's temproly solution, so what is the right fix?
Edit: another problem, almost of times whene I going to any forum, it's show blank page till I do a refresh!
I get this error too, is this a problem?!

/edit: This error only comes up using firefox
I started sharing the same error after updating. It appears at the top of the page after I've logged in. I also get this error with IE (Not that I'd mind that since IE messes up my page anyway Big Grin)
Please use the attached inc/functions.php.

(The MyBB download and changed files archives have both been updated)

Regards,
Chris
thx that fixed it Smile
yup fixed thnx