Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git.moodle.org:/git/integration

  • Loading branch information...
commit 9568a4e87b8a518c2bf3f08647a5c4d5aae84e91 2 parents 5433da6 + 4bc844f
@nebgor nebgor authored
Showing with 8 additions and 1 deletion.
  1. +1 −0  lang/en/error.php
  2. +7 −1 lib/outputrenderers.php
View
1  lang/en/error.php
@@ -250,6 +250,7 @@
$string['idnumbertaken'] = 'ID number is already used for another course';
$string['importformatnotimplement'] = 'Sorry, importing this format is not yet implemented!';
$string['incorrectext'] = 'File has an incorrect extension';
+$string['installproblem'] = 'It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix if you want to retry the installation.';
$string['internalauthpassworderror'] = 'Missing password or invalid password policy for internal authentication';
$string['invalidaccess'] = 'This page was not accessed correctly';
$string['invalidaccessparameter'] = 'Invalid access parameter';
View
8 lib/outputrenderers.php
@@ -2066,6 +2066,10 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf
$message = '<p class="errormessage">' . $message . '</p>'.
'<p class="errorcode"><a href="' . $moreinfourl . '">' .
get_string('moreinformation') . '</a></p>';
+ if (empty($CFG->rolesactive)) {
+ $message .= '<p class="errormessage">' . get_string('installproblem', 'error') . '</p>';
+ //It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix for new installation.
+ }
$output .= $this->box($message, 'errorbox');
if (debugging('', DEBUG_DEVELOPER)) {
@@ -2082,7 +2086,9 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf
}
}
- if (!empty($link)) {
+ if (empty($CFG->rolesactive)) {
+ // continue does not make much sense if moodle is not installed yet because error is most probably not recoverable
+ } else if (!empty($link)) {
$output .= $this->continue_button($link);
}
Please sign in to comment.
Something went wrong with that request. Please try again.