[BUGFIX] Hint for 'Check for broken extensions' if install tool crashes 59/54559/5
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 28 Nov 2017 17:55:34 +0000 (18:55 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Tue, 28 Nov 2017 19:50:58 +0000 (20:50 +0100)
If the install tool crashes in cards that load ext_* files from extensions,
it currently clears html body and only renders a message "Something went wrong".

This will later become a recovery view which can analyze where and how the
error happened to show the user good option on how to resurrect the instance.

For now, the message is extended a bit linking to the "Upgrade" menu saying
one should use the "Check for broken extensions". This way - until a bigger
solution evolved - we at least have a link to click on, and the user does not
need to fiddle with the url bar of the browser. This is especially useful
in install tool standalone mode where the whole content including the left
main menu is currently substituted by the error message.

Change-Id: I8e1c450949d9f00f8c2e0e1e95a847979973c124
Resolves: #82922
Releases: master
Reviewed-on: https://review.typo3.org/54559
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>

index ef446d3..dbf09e6 100644 (file)
@@ -125,8 +125,12 @@ define([
                        } else {
                                // @todo Recovery tests should be started here
-                               message = InfoBox.render(Severity.error, 'Something went wrong', '');
-                               $(this.selectorBody).empty().append(message);
+                               var url = this.getUrl(undefined, 'upgrade');
+                               message = '<div class="t3js-infobox callout callout-sm callout-danger"><div class="callout-body">'
+                                               + 'Something went wrong. Please use <b><a href="' + url + '">Check for broken'
+                                               + ' extensions</a></b> to see if a loaded extension breaks this part of the install tool'
+                                               + ' and unload it.</div></div>';
+                               $(this.selectorBody).empty().html(message);