VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: 2dmaster on July 08, 2016, 04:44:07 AM

Title: Joomla, vm debug memory Fatal error
Post by: 2dmaster on July 08, 2016, 04:44:07 AM
joomla 3.5.1, virtuemart 3.0.17.2,  when enable !j debug mode get error. How to fix it ? i have vps server centos
Fatal error: Allowed memory size of 272629760 bytes exhausted (tried to allocate 284095 bytes) in /plugins/system/debug/debug.php on line 1213
Title: Re: Joomla, vm debug memory Fatal error
Post by: GJC Web Design on July 08, 2016, 10:16:41 AM
You can only try to increase it - check with host  .. but joomla debug can use a huge amount of memory on a busy page

265MB is "adequate" in most circumstances
Title: Re: Joomla, vm debug memory Fatal error
Post by: GJC Web Design on July 08, 2016, 21:22:28 PM
obviously hasn't worked ->   Fatal error:  Allowed memory size of 272629760 bytes exhausted

whether u can raise the limit depends on what your host allows
Title: Re: Joomla, vm debug memory Fatal error
Post by: Studio 42 on July 09, 2016, 22:15:52 PM
Base code to include a module
(this can be used at any file, any time ...)

<?php
//MODULE_POSITION is the module position to render
$modules JModuleHelper::getModules("MODULE_POSITION");
$attribs   = array('style => 'xhtml')
if(count($modules) > 0) { ?>

<div>
<?php foreach($modules as $module)   echo JModuleHelper::renderModule($module$attribs); ?>
</div>
<?php ?>


more in Joomla doc : https://docs.joomla.org/JModuleHelper/getModules

or
$module = JModuleHelper::getModule( 'mod_login' );

$registry = new JRegistry();
$params = $registry->loadString($module->params);
echo JModuleHelper::renderModule($module, $params );