Warning: memory_get_peak_usage() has been disabled for security reasons in

Started by wil001, May 28, 2013, 14:33:28 PM

Previous topic - Next topic

wil001


Hi, I have done a clean install, as shown in Tutorial (http://docs.virtuemart.net/tutorials/30-installation-migration-upgrade-vm-2/80-installation-of-virtuemart-2.html).
I have PHP Version 5.3.3-7 + squeeze15 and Joomla! 2.5.11 and still aparese me this error message, Warning: memory_get_peak_usage() has been disabled for security reasons in /server/www/server/html/web101/administrator/components/com_virtuemart/helpers/config.php on line 279

Locate the config.php file and line 279 is the following code:
-------------------------------------------------- -------------------------------------
function vmRam($notice,$value=NULL){
   vmdebug($notice.' used Ram '.round(memory_get_usage(TRUE)/(1024*1024),2).'M ',$value);
}

function vmRamPeak($notice,$value=NULL){
   vmdebug($notice.' memory peak '.round(memory_get_peak_usage(TRUE)/(1024*1024),2).'M ',$value);
}

-------------------------------------------------- -------------------------------------
Change the values ​​(TRUE) to (FALSE) and the error continues to appear.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

wil001

Hello Milbo,

Thank you very much for the help but in my:

Configuration / Shop / Advanced Settings / Enable debugging messages

This "No debug"

And yet I still get the message on every page where I have VirtueMart content.
Warning: memory_get_peak_usage() has been disabled for security reasons in /server/www/server/html/web101/administrator/components/com_virtuemart/helpers/config.php on line 279