HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVED] - Out of memory - error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#66561 (In Topic #14203)
Avatar

Community saint

Sorry about raising this … AGAIN.

I know it has been raised by others previously, but I think my circumstances are different in this instance.

Background:
  • Building a brand new site
  • Very little added in the way of data
  • No problems until about 30 minutes ago
  • Able to login, being taken to start page
  • Unable to access Admin Zone
  • Unable to access Content Management
  • Unable to edit anything (probably because of the the two previous issues)

This is what I get when trying to access Admin, CMS or edit:
An error has occurred
PHP ERROR [1] Out of memory (allocated 63176704) (tried to allocate 1245184 bytes) in /home/fletch/public_html/ctr/sources/tempcode.php(1048) : eval()'d code(6) : eval()'d code(1) : runtime-created function on line 3 (version: 6.0 beta2, PHP version: 5.2.15, URL: /ctr/adminzone/index.php?page=start)

Expand: Stack trace: Stack trace:


Tried the following:
  • Ran 'upgrader' to check file integrity and to clear caches (no problems reported)
  • Checked DB via phpMyAdmin and 'repaired' and 'optimized' tables (no problems found)
  • Contacted hosts (Hostgator) who are completely bemused, can't offer an explanation, and have offered me the choice of changing my account to a VPS account or moving to a dedicated server, both of which I have declined graciously. Where have I heard that story before? And on this forum as well.



Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#66566
Avatar

Have you tried the fix posted in the main beta2 news topic? (work through the topic backwards, as the first fix posted had major issues)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#66577
Avatar

Community saint

Thanks, Chris.

The 'downloadable fix(es)' in post #66461 eventually did the trick.

But not before I re-read post #66441 where you warned
(the caches may need clearing from /upgrader.php before the fix will take effect)

Looks like everything has settled down for the moment. Just don't understand why it would all work fine initially, then suddenly decide to 'break'. I am now watching how my main site behaves in case it happens there as well.

Q. Would it be advisable to replace the two files, /sources/tempcode.php and /sources/tempcode.compiler.php, on the live site as a precaution?


P.S. I titled this thread 'Out of memory' in case others do a search for a similar error message they are faced with. Before opening this post I tried searching for that simple sequence of words, but was unable to get a hit. I guess I need to sharpen up on how I enter my search parameters!

 :$

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#66579
Avatar

Q. Would it be advisable to replace the two files, /sources/tempcode.php and /sources/tempcode.compiler.php, on the live site as a precaution?

I'm afraid I don't understand the question, didn't you do this? ("The 'downloadable fix(es)' in post #66461 eventually did the trick.")


Tempcode is incredibly complex internally and memory management issues are really complex as it's not just based on data being managed, it's also based on how much is in your ocPortal cache (either more or less in the cache can have an impact, depending on what's loading) at that point, how many users are online, how much PHP code needs to be loaded, as well as even how busy the server is at that time (how PHP frees up memory as it goes is not consistent).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#66581
Avatar

Community saint

Chris Graham said

Q. Would it be advisable to replace the two files, /sources/tempcode.php and /sources/tempcode.compiler.php, on the live site as a precaution?

I'm afraid I don't understand the question, didn't you do this? ("The 'downloadable fix(es)' in post #66461 eventually did the trick.").

Ah, I probably didn't make it clear, although I did mention that this issue happened on a site I am in the process of building.

This hasn't happened on my live site, only the one in the 'construction' stage.

But from your response I suspect I'd better replace those two files on my live site as well, before things really go TU.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: