Last modified: 2013-10-10 10:07:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 26626 - Have a way for the installer to set all relevant debug flags by default
Have a way for the installer to set all relevant debug flags by default
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2011-01-07 18:11 UTC by Sam Reed (reedy)
Modified: 2013-10-10 10:07 UTC (History)
1 user (show)

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


Description Sam Reed (reedy) 2011-01-07 18:11:55 UTC
Have a way for the installer to set all relevant debug flags by default

Certainly useful on like the CLI installer

So in LocalSettings.php, we get near the top:

ini_set("display_errors", 1);

or even

error_reporting(E_ALL | E_STRICT);

And at the bottom...
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;

//$wgDebugLogFile  = ''; //Enter a path to use this
Comment 1 Chad H. 2011-01-28 21:10:18 UTC
Are you saying the default LocalSettings should have these sorts of things enabled?
Comment 2 Sam Reed (reedy) 2011-01-28 21:42:23 UTC
Not really, though, I'm not sure how this should be executed.

In the CLIInstaller, using maybe like --includedebug would work.

For the WebInstaller, I'm not quite so sure, it's an advanced functionality that most people won't want enabled by default...
Comment 3 Mark A. Hershberger 2011-01-28 23:18:14 UTC
I think this isn't a bad idea for the CLI installer.  Feel free to do it if you have time before me.
Comment 4 Antoine "hashar" Musso (WMF) 2013-10-10 10:07:52 UTC
Is there still any interest there?  It might useful for continuous integration. A Possibility would be to have some basic templates and let us specify which to prepend / append to the LocalSettings.php

Ie something like

 $ cat maintenance/settings/enableErrors.php
 ini_set("display_errors", 1);

 $ cat maintenance/settings/Debugging.php
 $wgShowExceptionDetails = true;
 $wgShowSQLErrors = true;
 $wgDebugDumpSql  = true;

 $ php maintenance/install.php \
   --prepend settings/enableErrors.php \
   --append settings/Debugging.php

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