Link to home
Start Free TrialLog in
Avatar of SiemensSEN
SiemensSEN

asked on

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

PHI.ini

memory_limit = 512M    

upload_max_filesize = 100M
suhosin.post.max_value_length=6000000
suhosin.request.max_value_length=6000000
suhosin.memory_limit = 512
-----------------------------------------------------------------------------------------------

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

Avatar of f_o_o_k_y
f_o_o_k_y
Flag of Poland image

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
FooKy
Avatar of SiemensSEN
SiemensSEN

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of f_o_o_k_y
f_o_o_k_y
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial