Permalink
Browse files

MDL-28595 explain the need to install into new db if something fails …

…during the initial install
  • Loading branch information...
1 parent f6090a3 commit 94a720f2879f798b3cef1a32aa16fd90199d580c @skodak skodak committed Sep 10, 2011
Showing with 5 additions and 0 deletions.
  1. +1 −0 lang/en/error.php
  2. +4 −0 lib/outputrenderers.php
View
@@ -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 the 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
@@ -2029,6 +2029,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)) {

0 comments on commit 94a720f

Please sign in to comment.