? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
30 Oct 2016

Summary of Changes

Since #12494 merge we get an error in all backend pages.
image

So this PR solves the issue, and gives that error message more info (error message with "An error as occured" is the same as saying nothing ...), for when it occurs.

Testing Instructions

  • Use latest 4.0
  • See the error in the backend
  • Apply patch
  • No error ### Documentation Changes Required

None.

avatar andrepereiradasilva andrepereiradasilva - open - 30 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - change - 30 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 Oct 2016
Category Modules Administration
avatar andrepereiradasilva andrepereiradasilva - change - 30 Oct 2016
Title
[4.0] Fix An error has occurred.
[4.0] Fix "An error has occurred."
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - change - 30 Oct 2016
Title
[4.0] Fix An error has occurred.
[4.0] Fix "An error has occurred."
avatar andrepereiradasilva andrepereiradasilva - change - 30 Oct 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Oct 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Oct 2016

@wilsonge @zero-24 please check
This is related to mysql strict mode. Could be backported to staging too.

avatar wilsonge
wilsonge - comment - 30 Oct 2016

This looks good for the SQL query. Can we not print the exception message tho. Exception messages are generally hard coded to English which gives multilang issues and also probably contains more technical information that is of no use to end users. If we need to let's log the exception instead :)

avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Oct 2016

sorry george, but "An error has occurred." is nothing. What does this mean?
Is like "A warning was detected." ... or "A message exists."

If we need to let's log the exception instead :)

My first idea, but we can't the way the error page is done. Because this is an error while building the admin menu, if we trow an exception here the error page comes back without admin menu and you can't see the message.

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Oct 2016

so @wilsonge can we merge this?

avatar mbabker mbabker - change - 12 Nov 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-12 18:05:06
Closed_By mbabker
avatar mbabker mbabker - close - 12 Nov 2016
avatar mbabker mbabker - merge - 12 Nov 2016
avatar zero-24 zero-24 - close - 12 Nov 2016

Add a Comment

Login with GitHub to post a comment