Page 1 of 1

[SOLVED] Fatal error: Allowed memory size of 134217728

Posted: Wed Oct 23, 2013 2:31 pm
by genestevo
When I log in as administrator at http://www.historypoints.org I get the following message when I try to load Content>Pages
"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8417108 bytes) in /home/mochdren/public_html/subdom_hp/admin/listcontent.php on line 1208"
So Far I Have:-
* Checked System Information and found CMS Config Setting and notice that php_memory_limit shows nothing at all.
* Checked line 1208 and this is what I find:
return $headoflist . $thelist . $footer .'</form></div>';
the full content from line 1204 to 1213 is:
<?php
$footer = ob_get_contents();
ob_end_clean();

return $headoflist . $thelist . $footer .'</form></div>';
}

echo $themeObject->ShowMessage('', 'message');
echo $themeObject->ShowErrors('' ,'error');
?>
* In admin Log I found "Module is not properly cleaning input params" against Dewplayer and Twitter. Searched, found and implemented a fix for Twitter (but can't find similar for Dewplayer)
* Cleared Cache (several times)
* Cleared FF Browser cache as initially issue didn't appear with IE 10. Now though issue shows on: FF, IE, Chrome, Opera and Safari
* Via Search I found references to increasing memory via config.php but on opening this file there is no reference to memory settings in this file. There are also references to php.ini but I can't find this anywhere in my system.
* Reset my machine to a previous windows restore point which predates the issue.
* Curiously if I log-in using a colleagues details (Editor privileges) and "Collapse All Pages", the content loads without issue. Also I notice that in Site Admin>Cache and content, the Content Status dialogue shows 2,775 pages found. Could this be the problem as I typically work with current pages set to "Expand All Section".
As you can see I'm using 1.11.4 "Fernandina" so would you recommend a clean install of 1.11.9 or should I wait a bit for the finished version of CMSMS 2.0.
Thanks in advance for your patience.
Eugene.

Re: Fatal error: Allowed memory size of 134217728 bytes exha

Posted: Wed Oct 23, 2013 2:50 pm
by calguy1000
add &collapse=1 to the listcontent URL.

This probably comes from having too many pages, and having all of them 'open'. which chews up alot of memory.

Re: Fatal error: Allowed memory size of 134217728 bytes exha

Posted: Wed Oct 23, 2013 5:23 pm
by genestevo
Thank you so much CallGuy. I'd never have worked that out in a million years.
Suppose I need to show a bit more restraint regarding what I expect to see at any one time.
Your help is very much appreciated.

Re: [SOLVED] Fatal error: Allowed memory size of 134217728

Posted: Wed Oct 23, 2013 5:29 pm
by calguy1000
Upgrading to CMSMS 1.11.9 will help with the issue. CMSMS 2.0 will be much better as it supports pagination in this area, so (at most) 500 pages can be visible in the content list at one time.

Re: [SOLVED] Fatal error: Allowed memory size of 134217728

Posted: Wed Oct 23, 2013 6:11 pm
by genestevo
Thanks for that, better get my finger out then ;)