Last modified: 2011-04-30 01:21:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23402, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21402 - OOM Error in SearchUpdate.php when uploading
OOM Error in SearchUpdate.php when uploading
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.15.x
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-04 02:29 UTC by David
Modified: 2011-04-30 01:21 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description David 2009-11-04 02:29:04 UTC
'Clean' install of MW 1.15.1 on CentOS 5.3, Apache 2.2.3, uploading a file appears to fail with a blank page, although the image does show up under Recent Changes.  Checking ssl_error_log shows the following

[Wed Nov 04 02:08:42 2009] [error] [client A.B.C.D] PHP Fatal error:  Allowed memory size of 20971520 bytes exhausted (tried to allocate 92160 bytes) in /var/www/html/wiki/includes/SearchUpdate.php on line 91, referer: https://domain.tld/wiki/index.php/Special:Upload

Tried changing memory_limit to 128M (from 64M)in /etc/php.ini, but that didn't help.  

Tried commenting out line 91 of SearchUpdate.php, but that just resulted in the same error occurring on line 97.

Tried multiple files, ranging in size from 428 bytes to 615K, same results.  Made sure
Comment 1 OverlordQ 2009-11-04 02:46:20 UTC
Since it's reporting a memory size of 20M despite php.ini being set to 64M, there's likely a spurious ini_set('memory_limit','20M') in your LocalSettings.php file, remove this line and it should be fine.

Marking invalid as it's a configuration problem not an actual bug.
Comment 2 David 2009-11-04 02:56:33 UTC
You're correct--the default LocalSettings.php had ini_set('memory_limit','20M')--shouldn't that be considered a bug, and removed in the next version?
Comment 3 Max Semenik 2009-11-04 18:21:39 UTC
Already resolved in trunk

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links