News:

Looking for documentation? Take a look on our wiki

Main Menu

Joomla, vm debug memory Fatal error

Started by 2dmaster, July 08, 2016, 04:44:07 AM

Previous topic - Next topic

2dmaster

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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 );