Last modified: 2014-06-11 15:04:47 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 T43896, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41896 - help installer deal with memory_limit being too low to load installer i18n
help installer deal with memory_limit being too low to load installer i18n
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-08 16:15 UTC by Sumana Harihareswara
Modified: 2014-06-11 15:04 UTC (History)
4 users (show)

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


Attachments

Description Sumana Harihareswara 2012-11-08 16:15:57 UTC
<^demon|busy> sumanah: I don't have time for it today, but this is something we should look at later: how to deal with the installer if memory_limit is too low to load installer i18n.
Comment 1 Sumana Harihareswara 2012-11-08 16:16:52 UTC
Today a sysadmin tried to install MediaWiki and got the error:

"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1966080 bytes) in /home/a8130601/public_html/wiki/includes/installer/Installer.i18n.php on line 7114"

Solution Chad suggested: "At the very top of mw-config/index.php, add the following:

           ini_set( 'memory_limit', '100M' );

(Right after the <?php, that is)

And you're also going to want to add a similar line to your LocalSettings.php, after you've finished installing."

I presume this is one of the situations Chad wants us to eventually address. :)
Comment 2 Chad H. 2012-11-08 16:22:42 UTC
That's the exact scenario.

Basically, if your memory_limit is too low, you could fail to get past the initial installer page (where you select your language) to where we complain about memory_limit being too low during environment checks. We should probably silently raise it for the installer (if we can, more below).

We should still warn at the environment stage that we're raising the limit, so people are aware their php.ini memory_limit is too low and it's being overridden.

If you're on a super-locked-down host (ini_set() is disabled, etc), there's nothing we can do if your memory limit is too low. Best case would be to detect this scenario and bail immediately with an error.
Comment 4 Bawolff (Brian Wolff) 2013-01-04 17:13:02 UTC
>And you're also going to want to add a similar line to your LocalSettings.php,
>after you've finished installing."

Note, we already raise the memory somewhat in Setup.php which is run right after LocalSettings.php. See $wgMemoryLimit wfMemoryLimit() in GlobalFunctions.php.
Comment 5 [[kgh]] 2014-06-11 15:04:47 UTC
Doesn't the move to json files in MW 1.24 fix this issue?

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


Navigation
Links