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/d ump
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/ maintenanc e/Maintena nce.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/ LocalSetti ngs.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/ maintenanc e/Maintena nce.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_len gth=600000 0
suhosin.request.max_value_ length=600 0000
suhosin.memory_limit = 512
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------
Wiki Setting file
ini_set( 'memory_limit', '512M' );
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/d
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/
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/
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/
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_len
suhosin.request.max_value_
suhosin.memory_limit = 512
--------------------------
Wiki Setting file
ini_set( 'memory_limit', '512M' );
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
4294967295 / 1024 (kb) / 1024 (mb) /1024 (gb) = 3,9 GB
Best Regards
FooKy