Last modified: 2013-10-10 10:07:52 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 T28626, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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:

error_reporting(E_ALL);
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
 error_reporting(E_ALL);
 ini_set("display_errors", 1);

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

 $ 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.


Navigation
Links