Another memory post

Permalink
Hello All,

I am running a Bitnami Concrete5 stack using Ubuntu version 12.04. I was modifying my header nav and then boom "Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 512 bytes) in /opt/bitnami/apps/concrete5/htdocs/concrete/libraries/loader.php on line 116" I have tried modifying my memory limit in the php.ini I slowly moved it up until it hit 2048m and I still have the issue. I'm thinking there is something more serious going on. Any help would be greatly appreciated as I am quite new to this whole thing.

thank you.

 
mkly replied on at Permalink Reply
mkly
It's probably the Page object via a PageList. This can be an autonav, pagelist, dashboard page search(set to 500) or other Page object related items.

edit: Oh I didn't read you post. Yes, the autonav is kind of heavy if you are pulling a lot of pages. Change the autonav to only show one level and/or change your directory structure.
sfarrell replied on at Permalink Reply
Hmm, we only have 4 pages in the site right now. Can the auto nav really be that intense? also I can't get into the site editor because of this error. It happens when I go to load the app. is there a way to modify these settings server side?
mkly replied on at Permalink Reply
mkly
Do you mean that you can't go into edit mode for that page? If so you can go to the sitemap(Dashboard->Full Sitemap) in the dashboard and click on the page with the issue and select "Versions". Change the version to an earlier version and (*important)delete the latest version that is giving you trouble. Then you should be able go back to that page and edit it.

Yes, you have far too few pages for that to be causing you a problem. It's possible that you have some other issue going on.
sfarrell replied on at Permalink Reply
Unfortunately I get the error when trying to load any part of my site. I would really like to avoid doing a full re-install as it would send all the work we have put into it down the tube. I'm at a bit of a loss as to what went wrong.
sfarrell replied on at Permalink Reply
Is there a way to revert changes at the server level?
mkly replied on at Permalink Reply
mkly
You can go into the database and change some records. But I'm not sure I would know the best way to tell you, as I'm not sure what is causing the problem in the first place.

What happens if you go to
http://example.com/index.php/dashboard

(replace example.com with your location)
sfarrell replied on at Permalink Reply
Oh man I got so excited for a minute. It loaded the login page but when I entered my credentials it just goes to a white screen.
mkly replied on at Permalink Reply
mkly
Ok from the same browser go to
http://example.com/index.php/dashboard/sitemap/full
sfarrell replied on at Permalink Reply
White screen again. I also just tried /index.php/dashboard/system/
xaritas replied on at Permalink Reply
What blocks or packages do you have installed?

With such a small site you must have a recursive function somewhere that is blowing up your stack. Install xdebug and using tracing to figure out where you memory is blowing up. Alternatively just start logging or printing memory_get_usage()/memory_get_peak_usage() everywhere in your code until you figure out where it is blowing up.
sfarrell replied on at Permalink Reply
I will give that a try. thank you
sfarrell replied on at Permalink Reply
Spoke too soon, way over my head. Is there a more straight forward way to monitor what's using the memory? I'm thinking I am going to notch this up to a testament for backing up my files a little more regularly... :-/