Upgrade ProcessWire installer (and related site profile files) to support specification of debug mode as one of the interactive installation options. Also updated some wording in various parts of the installer.
* @todo have installer support enabling debug mode if user chooses it
*
*/
@@ -543,11 +542,35 @@ class Installer {
$this->sectionStop();
$this->sectionStart('fa-server HTTP Host Names');
$this->p("What host names will this installation run on now and in the future? Please enter one host per line. You may also choose to leave this blank to auto-detect on each request, but we recommend using this whitelist for the best security in production environments.");
$this->p("This field is recommended but not required. You can set this later by editing the file <u>/site/config.php</u> (setting \$config->httpHosts).","detail");
$this->p(
"What host names will this installation run on now and in the future? Please enter one host per line. ".
"You can also modify this setting later by editing the <code>\$config->httpHosts</code> setting in the <u>/site/config.php</u> file."
"When debug mode is enabled, errors and exceptions are visible in ProcessWire’s output. This is helpful when developing a website or testing ProcessWire. ".
"When debug mode is NOT enabled, fatal errors/exceptions halt the request with an ambiguous http 500 error, and non-fatal errors are not shown. ".
"Regardless of debug mode, fatal errors are always logged and always visible to superusers. ".
"Debug mode should not be enabled for live or production sites, but at this stage (installation) it is worthwhile to have it enabled. "
$this->alertOk("Saved configuration to ./site/config.php");
@@ -1052,7 +1092,7 @@ class Installer {
$this->sectionStart("fa-bath Cleanup");
$this->p("Directories and files listed below are no longer needed and should be removed. If you choose to leave any of them in place, you should delete them before migrating to a production environment.","detail");
$this->p($this->getRemoveableItems($wire,true));
$this->p($this->getRemoveableItems(true));
$this->sectionStop();
$this->btn("Continue",5);
@@ -1061,17 +1101,16 @@ class Installer {
/**
* Get post-install optionally removable items
*
* @param ProcessWire $wire
* @param bool $getMarkup Get markup of options/form inputs rather than array of items?
* @param bool $removeNow Allow processing of submitted form (via getMarkup) to remove items now?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.