Please Log in to join the conversation.
Hi read the notes below
when i want to insert any plan in CB SUBS backend that prompt me the error
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 610739 bytes) in www/libraries/joomla/document/html/html.php on line 389
RESPONSE:
PHP has built-in safeguard to prevent runaway scripts from taking down the whole system. One aspect of this is to limit memory that can be allocated for each running script. For AbleCommunity, we've setup the memory limit to 48MB. IMHO, this limit is already very huge. If our script is hitting this limit, such as the case below, there are 2 ways to fix this:
1. Bump maximum allowed memory from 48M to something bigger ... like 64M or greater.
2. Optimize the script so that the script doesn't need more than 48M.
Personally, I feel reluctant on bumping up 48M memory limit to a script. Remember when the whole computer had only 64MB memory? That's for the whole computer (including OS). If our script is hitting 48MB just to process some pages, then there has to be some optimization (IMHO) that we can do so that the memory requirement for a script can be within 48MB. Doing this will also mean that the script takes less resources and as such, more scalable for higher traffic.
Theree are cases, however, that when it's absolutely necessary for a sript to hit 48MB memory. In that case, there's no other option than to bump the maximum allowed memory.
I NEED GUIDANCE FROM NICK If we can improve the script to require less memory for PHP SCRIPT.
THANK YOU,
RIZWAN
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.