[SOLVED] Expand all pages caused out of memory

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

[SOLVED] Expand all pages caused out of memory

Post by starbits »

Hi,
I clicked "expand all pages" on a site with a very large number of pages and got an out of memory error.  The rest of the admin functions correctly for that user name, but I can no longer view the content/pages.  Is there some way in the database that I can reset my preference to "collapse all pages" so I can get that working again?
Thanks,
Steve
Last edited by starbits on Fri Sep 25, 2009 1:52 pm, edited 1 time in total.
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Expand all pages caused out of memory

Post by baresi »

Adding this to your .htaccess file will probably help

php_value memory_limit 128M
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Expand all pages caused out of memory

Post by Jeff »

Go into you *_userprefs table and look for the preference "collapse". Clearing the blob field should collapse all the pages again.

Remember as with ALL database modifications, BACKUP FIRST!!!!

jeff

P.S. As suggested it would be wise to up your memory as well.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: [SOLVED] Expand all pages caused out of memory

Post by starbits »

Thanks guys,
The .htaccess method gave me a 500 server error but the database mod worked fine.  I will contact my host about raising the PHP memory limit.
I appreciate the help!
Pierre M.

Re: [SOLVED] Expand all pages caused out of memory

Post by Pierre M. »

Hello Steve,

next time please tell us more about "a very large number of pages" and your new working memory settings. Other people ask what the limit is and we say the limit is the current user interface rather than hard limit.

Pierre M.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: [SOLVED] Expand all pages caused out of memory

Post by starbits »

Sorry Pierre,

I have not yet updated my memory, I have simply refrained from expanding all pages.  At the time of failure I had approximately 800 pages, and the server has a 64M memory limit on PHP. 

That is actually not a lot of pages;  when the site goes live we will need to double that.  Most of the pages are a catalog (using the Cataloger Module) so most pages are Content Type: Item rather than normal content (if that matters).  But I think a 1600 item catalog should be able to be accommodated.

When we finish all the data entry, I may run some speed tests.  If I do, I will let you know.

Regards,
STeve
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: [SOLVED] Expand all pages caused out of memory

Post by Rolf »

starbits wrote: I will contact my host about raising the PHP memory limit.
Why don't you try the config.php file:

Code: Select all

# If you are experiencing propblems with php memory limit errors, then you may
# want to try enabling and/or adjusting this setting.
# Note: Your server may not allow the application to override memory limits.
$config['php_memory_limit'] = '128M';
Grtz. Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: [SOLVED] Expand all pages caused out of memory

Post by starbits »

Thanks Rolf,
I got my host to do it.
Steve
Post Reply

Return to “CMSMS Core”