Skip to content

[4.0] Adding error handling for installer#26073

Closed
Hackwar wants to merge 5 commits intojoomla:4.0-devfrom
Hackwar:j4installerrors
Closed

[4.0] Adding error handling for installer#26073
Hackwar wants to merge 5 commits intojoomla:4.0-devfrom
Hackwar:j4installerrors

Conversation

@Hackwar
Copy link
Member

@Hackwar Hackwar commented Aug 29, 2019

When the ajax requests during installation are failing, we currently get no feedback about that in the UI. This PR adds some error handling for that. This is not perfect, but better than nothing and maybe someone can help make this better.

Testinstructions

  1. Modify /installation/src/Controller/InstallationController.php and add echo 'something'; at line 74 (This breaks the response and triggers the error)
  2. Go through the installation and fill everything, then click on Install Joomla
  3. See the loadinglayer show quickly and then disappear again and at the top of the page you get an error message.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.0-dev labels Aug 29, 2019
…4installerrors

# Conflicts:
#	installation/template/js/setup.js
#	installation/template/js/template.js
@nadjak77
Copy link
Contributor

I have tested this item ✅ successfully on 725af51

Appled patch
changed /installation/src/Controller/InstallationController.php
installed joomla
-> error message appear
work as descriped


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26073.

@rmittl
Copy link

rmittl commented Oct 19, 2019

Tested successfully ✅
Error message appears.

@Quy
Copy link
Contributor

Quy commented Oct 21, 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26073.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 21, 2019
@wilsonge
Copy link
Contributor

wilsonge commented Oct 31, 2019

Kinda unconvinced by blatting out the raw code from an end user perspective. Can we not just give that message without appending the text and console.error the raw response which would be enough for us to see it in system tests

@Quy Quy added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Nov 3, 2019
@wilsonge
Copy link
Contributor

I've pushed a modified version of this with the changes I requested above

@wilsonge wilsonge closed this Nov 30, 2019
@Quy Quy removed the RTC This Pull Request is Ready To Commit label Dec 1, 2019
@Hackwar Hackwar deleted the j4installerrors branch October 23, 2020 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators Updates Requested Indicates that this pull request needs an update from the author and should not be tested.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants