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.


Critical error - bailing out

Login / Search

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

Community saint

My site was humming along fine at 11pm last night and then this morning at 6am I get the following error:
This is an error that has been elevated to critical error status because it occured during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occured before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) [/home/xxxxxxxx/public_html/xxxxxxx/sources/tempcode.php at 926]

eLief tech support first said I was maxing out memory but the Resource Usage report shows differently:


Memory never exceeds 20% and that was hours earlier. The CPU spikes out when trying to enter the front page. This also happens on my test site which has had no changes made to it.

eLief insists that nothing has changed on their end and say the issue is with the script which has not changed.

I can get to the Admin zone.

Any one have any thoughts on what could be wrong? Has allowing members to join my site broken it (oh wait, this happens on the test site too which is locked down with a directory password).

Thanks for any help.

Bob






Last edit: by BobS
Back to the top
 
Posted
Rating:
#74089
Avatar

Taking a look now.


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:
#74090
Avatar

Community saint

Another question. Is there a way to not include the file path for regular users?

Bob
Back to the top
 
Posted
Rating:
#74093
Avatar

Good point, will make it relative in next patch.


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:
#74095
Avatar

Community saint

Chris Graham said

Taking a look now.
Thank you Chris.

I am not sure if this is helpful or not but I can access the Admin Zone but if I try to "Edit members", I get the same error.
Back to the top
 
Posted
Rating:
#74097
Avatar

Taken off side_calendar block, now working out why it did this.


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:
#74099
Avatar

Think I've found the gaff..

Code

for ($hap_i=0;$hap_i<count($happenings);$hap_i++)
{
   ...
   if (...)
   {
      $happenings[]=...;
   }
}

That looks like an infinite loop trigger if ever there was one. Analysing further.


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:
#74100
Avatar

Community saint

Thanks, Chris.

eLief killed off all processes so the site is back up and running.

This is what Richard had to say:
 killed off all process on your account and the site is back up now. It looks like there was a stuck process running in the background constantly, most likely from your cron job. I'd recommend to let it keep running to see if it causes it again(currently set to every 15 minutes). There's most likely some code in your site somewhere that isn't being closed properly.

Thanks for your help.

Bob

Back to the top
 
Posted
Rating:
#74101
Avatar

I think that's probably wrong. I deserve the credit for fixing it and the disgrace for causing it ;). Definitely a big issue in the side_calendar block, probably it's a timebomb kind of bug, something about the date and event recurrence. Still debugging.


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:
#74102
Avatar

Fixed. Was nasty side effect from a recent fix. We altered the code to show multi-day run-on events across cells, but it went haywire for events with no end date. Sorry about that.


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:
#74106
Avatar

Community saint

I've got confidence you will find it. After all, you are a "programming god" who works without sleeping.

Bob
Back to the top
 
Posted
Rating:
#74109
Avatar

Did find it -- fix was put up for you :).


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:
#74118
Avatar

Community saint

Thanks again, Chris.

You are right that it was triggered by a date. Today would have been the artist's 102 birthday.

Bob
Back to the top
 
Posted
Rating:
#74120
Avatar

It's 1st September actually, we rolled over month.


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:
#74123
Avatar

Community saint

Chris Graham said

It's 1st September actually, we rolled over month.
Exactly…he was born 9/1/1909 or as you would have it 1.9.1909.

Bob
Back to the top
 
Posted
Rating:
#74124
Avatar

Just saying 5th September would be same issue – he moved into view when the month changed.

Just to be clear :).


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:
#74126
Avatar

Community saint

Gotcha.

I am just glad it is fixed because I was really panicked this morning. I sent out a batch of invitations and people being greeting by that error message.

Any ways, thanks for the quick fix.

Thanks to eLief support for killing all processes and getting the site up quickly too.

Bob
Back to the top
 
Posted
Rating:
#74145
Avatar

Community saint

Chris-

What file{s) do I need to copy to my test site to get rid of this error?

I need to work on those title field there.

Thanks for your help.

Bob
Back to the top
 
Posted
Rating:
#74146
Avatar

sources/blocks/side_calendar.php


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: