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.


allowed memory exhausted

Login / Search

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

Honoured member

hey there guy's,

Since today I get this message, because I know the hoster personal I asked him if there has changed anything, he told me he only restarted a httpd service and didn't change anything.

does someone have any clue how to resolve this?

I already use the recommended.htaccess.


Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 19456 bytes) in /home/tust/domains/tust.nl/public_html/sources/database.php on line 519
Back to the top
 
Posted
Rating:
#56781
Avatar

Resetting PHP may have made some config options in their php.ini come into effect.


Some hosts will alter their PHP versions to stop the memory limits being changed, but I doubt that's happening here.

In PHP safe mode ocPortal can't disable the memory limit from inside the code, which normally it will try to do. In this case either php.ini or .htaccess would need to make the setting change.

If Suhosin is on the server, an extra option, suhosin.memory_limit, puts a ceiling on what memory limit can be set either inside the code or via .htaccess (or I would guess also custom php.ini files if PHP is installed as CGI), and ocPortal 4.2 will set to that ceiling to avoid an error. Perhaps this is the problem?

On Litespeed web servers (i.e. not Apache) PHP settings in .htaccess will be ignored. On Apache they will either be read in, or you'll get an internal server error.


So those were a few things. I would guess it is Suhosin. See if you can see reference to it in your php-info and if so contact the host.


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

Honoured member

yeah he sended me some logs from suhosin before the problem accaured:

Dec 8 11:32:00 kali suhosin[10643]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')

That one has created on a user that tried to spam on my guestbook.

suhosin configs can't be changed by using htaccess I guess?
Back to the top
 
Posted
Rating:
#56783
Avatar

No, at least I don't think so. But phpinfo should at least help you identify/communicate the problem.


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

Honoured member

Talked with him again, and checked the phpinfo seems like he made a typo in the suhosin memory_limit. I changed it in the php.ini with a M (he did without) so now it works.

/me slaps host :devil:

thnx for explaining about suhosin


Last edit: by boomerirc
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: