[Mediawiki-l] Upload Problem, depending on filesize
Brion Vibber
brion at wikimedia.org
Thu Jul 5 13:32:11 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Florian Pöck wrote:
[snip]
> ** memory_limit = 128M
>
> If i try to upload a file > 3000 KB to my wiki it results in the
> following error-message:
>
> >> Fatal error: Allowed memory size of 20971520 bytes exhausted (tried
> >> to allocate 7168001 bytes) in
> >> /usr/share/mediawiki1.7/includes/Sanitizer.php on line 928
Are these image files or some other kind of files? Is image resizing
support enabled? Are you using the GD library (default) or ImageMagick
(with $wgUseImageMagick enabled)?
If using GD resizing, it may be counting more memory usage against you.
However, the reference to which part of the code is using memory and how
much seems unusual. That makes it sounds like you have a very large
*page text* which is being processed.
You also have the memory_limit being set to 20 megabytes; that was
probably due to the limit being low when you installed the software, and
overrides your newly changed server settings. Remove the line for that
from your LocalSettings.php to try letting the larger memory_limit through.
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGjPLbwRnhpk1wk44RAtAlAJoCK7mYmn9QJIKLOWgyjt/Kka+RPQCgoRT2
/LM11q4yvCajKulC/JArLj4=
=cp8K
-----END PGP SIGNATURE-----
More information about the MediaWiki-l
mailing list