MyBB Community Forums

Full Version: Fatal Error after successfully Installation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Fatal error: Cannot redeclare memory_get_peak_usage() in /usr/export/www/hosting/enoxapoc/forum2/inc/functions_compat.php on line 120

URL: http://enoxapoc.funpic.org/forum2
You'll need to ask your host, if you're getting this error it's totally ignoring if(!function_exists('memory_get_peak_usage')) which isn't right at all. If shouldn't be getting to line 120 if that function is already defined. This is the code:

if(!function_exists('memory_get_peak_usage'))
{
	function memory_get_peak_usage($real_usage=false)
	{
		return memory_get_usage($real_usage);
	}
}

It only executes this if the memory_get_peak_usage function isn't defined, so if it decides it's not defined and enters this code block, and then say it is already defined, is odd.