Php memory Limit exceeded -- WIKI

Hello ,
  I have MediaWiki install and I get a white page when I tried to upload an image file  > 100 KB. I have change many setting but I get the same error.

I get a White page when I tried to import a file (file size ~ 560 KB).

This is error I get when I tried to do it from the shell

/maintenance # php importImages.php /export/apps/autoscripts/dump
ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/export/apps/privatewiki/maintenance/Maintenance.php', line 398)
ALERT - script tried to increase memory_limit to 536870912 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/export/apps/privatewiki/LocalSettings.php', line 28)
ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/export/apps/privatewiki/maintenance/Maintenance.php', line 663)
Import Images

Importing OSV TM high number of errored calls - dat message flow.JPG...done.

Found: 1
Added: 1

here what I have


memory_limit = 512M    

upload_max_filesize = 100M
suhosin.memory_limit = 512

Wiki Setting file
ini_set( 'memory_limit', '512M' );

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You have something wrong with your script. Its trying to increase memor limit to more than 4GB

4294967295 / 1024 (kb) / 1024 (mb) /1024 (gb) = 3,9 GB

Best Regards
SiemensSENAuthor Commented:
Thanks but this is a mediawiki module and  it seems to be setting the memory limit to -1.

ini_set(memory_limit ,-1);

So, I am sure what I need tio do here. Could the suhosin module cause an issue?

Thanks for your help
leave this setting
Wiki Setting file
ini_set( 'memory_limit', '512M' );


try to change
 suhosin.memory_limit = 512
suhosin.memory_limit = 512M

If this does not do a trick than change both memory limits to:
memory_limit = 640M    
suhosin.memory_limit = 640M

Best Regards

Best Regards

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
Who is your hosting provider?  Ask them to remove Suhosin from your server immediately and never put it back on your server, ever.  I have had a couple of run-ins with Suhosin in the past, and they always resulted in some kind of arbitrary, ridiculous injected error in the edge cases.  Suhosin never provided any meaningful security, but it provided plenty of headaches.  Example:  I have a form that works a little like an excel spreadsheet, taking many inputs.  Suhosin assumed this was some kind of attack and silently discarded half of the input.  

You're lucky that you are seeing some of the Suhosin-caused error messages!  It can be very difficult to find all the places where Suhosin can cause damage.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.