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] - FATAL_EXIT call in tempcode.php

Login / Search

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

Community saint

Got the following errors when attempting to run 'Manage theme images' under theme management in Admin zone:
Fatal error: Out of memory (allocated 65273856) (tried to allocate 311296 bytes) in /home/fletch/public_html/anglo/sources/tempcode.php(1504) : eval()'d code on line 7
and after clearing caches, etc.
Fatal error: Out of memory (allocated 64749568) (tried to allocate 311296 bytes) in /home/fletch/public_html/anglo/sources/tempcode.php(1483) : eval()'d code(5) : runtime-created function on line 10
Both error messages reference tempcode.php , but I think this is misleading as the lines apparently referenced (1504 & 1483) are the calls to do the 'fatal_exit'.

If this is a server problem I would be happy to call their attention to it, but I'd rather be reassured first that it is not an error in the script itself.

Would be grateful for an explanation.

Thanks.

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

Community saint

Fletch, I had this same issue and asked Chris is private:

Chris Graham said

Hi Eric, I suspect someone has set memory_limit=256 instead of memory_limit=256M. Or it could be a suhosin memory limit section.
I ended up opening a ticket with my webhost and it was their end. They ended up increasing the limit on all my sites since they all for falling ill to the evil exhausted memory. I ended up figuring it wasn't ocPortal because I built a site that isn't running ocPortal and the memory was also exhausted on that one as well.

Not sure if this is the exact same issue, tho. Very similar.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#62394
Avatar

Community saint

Hi Fletch and Eric! I'm now getting the same issue with my sites after having to move from my own server to a shared hosted one. Fletch, definitely follow Eric's suggestion to contact your host and have them up the mem limits for PHP (and maybe MySQL itself) and the problem should go away.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#62398
Avatar

Community saint

Thanks for the responses, guys.

Contacted my hosts who are sympathetic, but point out that I am exceeding the limit by a huge margin, and that they cannot do anything as their shared hosting allocation is 64MB and the script exceeds it.

I can change my hosting package, at a price, but that's the only solution they offer! Not a solution I am going to pursue any time soon.

I checked further and found that I am able to access the default images to edit (after a dire warning from ocP, which I'm sure you've seen), but the moment I try to edit my user-theme it all goes tits-up.

I guess i need to now take a real close look at what I have in the way of 'duplicate' images in my user-theme and delete them. It is possible I have a load of unused images resulting from the import/merge process I've just undertaken.

Once again - thanks!

 :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
 
Posted
Rating:
#62434
Avatar

Actually we're talking about two issues here. Eric's was a server misconfiguration, this is actually a screen in ocPortal that is really using excessive memory. I'll see if I can optimise it 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:
#62435
Avatar

Attachment
adminzone/pages/modules/admin_themes.php
» Download: admin_themes.php (71 Kb, 120 downloads so far)


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

Community saint

Thanks, Chris.

Took it for a run. No alarms or error messages. I guess this can be closed.

 :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: