RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
17 Jun 2026
  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

The exception object doesn't have an errorMessage function, getMessage should be used instead.

Testing Instructions

  • Disable mail in the global Joomla configuration
  • In the file /administrator/components/com_users/src/Model/MailModel.php add after line 203 the code throw new RuntimeException('test');
  • Send a mass mail to the users

Actual result BEFORE applying this Pull Request

The following error is shown:
Call to undefined method RuntimeException::errorMessage()

Expected result AFTER applying this Pull Request

A warning message appears with text 'test'.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar laoneo laoneo - open - 17 Jun 2026
avatar laoneo laoneo - change - 17 Jun 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2026
Category Administration com_users Front End com_contact Plugins
avatar laoneo laoneo - change - 17 Jun 2026
The description was changed
avatar laoneo laoneo - edited - 17 Jun 2026
avatar laoneo laoneo - change - 17 Jun 2026
The description was changed
avatar laoneo laoneo - edited - 17 Jun 2026
avatar MacJoom MacJoom - test_item - 19 Jun 2026 - Tested successfully
avatar MacJoom
MacJoom - comment - 19 Jun 2026

I have tested this item ✅ successfully on 1588657

But you have to add (before and after applying the patch)

throw new \RuntimeException('test'); //after line 203

Note the backslash before \RuntimeException


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

avatar MacJoom
MacJoom - comment - 19 Jun 2026

I have tested this item ✅ successfully on 1588657

But you have to add (before and after applying the patch)

throw new \RuntimeException('test'); //after line 203

Note the backslash before \RuntimeException


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

avatar MacJoom
MacJoom - comment - 19 Jun 2026

I have tested this item ✅ successfully on 1588657

But you have to add (for testing, before and after applying the patch)

throw new \RuntimeException('test'); //after line 203

Note the backslash before \RuntimeException


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

avatar CSGoat0 CSGoat0 - test_item - 19 Jun 2026 - Tested successfully
avatar CSGoat0
CSGoat0 - comment - 19 Jun 2026

I have tested this item ✅ successfully on 1588657

Thanks @MacJoom for the correction.


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

avatar CSGoat0
CSGoat0 - comment - 19 Jun 2026

I have tested this item ✅ successfully on 1588657

Thanks @MacJoom for the correction.


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

avatar richard67 richard67 - change - 19 Jun 2026
Status Pending Ready to Commit
Labels Added: bug PR-5.4-dev
avatar richard67
richard67 - comment - 19 Jun 2026

RTC


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

avatar richard67
richard67 - comment - 19 Jun 2026

RTC


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

avatar richard67 richard67 - close - 21 Jun 2026
avatar richard67 richard67 - merge - 21 Jun 2026
avatar richard67 richard67 - change - 21 Jun 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-06-21 19:54:33
Closed_By richard67
Labels Added: RTC
avatar richard67
richard67 - comment - 21 Jun 2026

Thanks @laoneo for this PR, and @MacJoom and @CSGoat0 for testing.

Add a Comment

Login with GitHub to post a comment