User tests: Successful: Unsuccessful:
The default admin language and the selected user language are correctly taken into consideration to determine the correct language for an autoupdate notification mail.
Notification mail is sent in EN, ignoring the selected default language.
Notification mail is sent in the selected non-en language.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_joomlaupdate |
@brianteeman good catch. Lesson learned: FIRST coffee, THEN code.
Labels |
Added:
PR-5.4-dev
|
I have tested this item ✅ successfully on 8d16414
From what I see, the change here is not enough yet. You would need to do the same with how we handle mail template language in User - Joomla plugin https://github.com/joomla/joomla-cms/blob/5.4-dev/plugins/user/joomla/src/Extension/Joomla.php#L216-L228
My quick test with current code:
Result:
Labels |
Added:
bug
|
@tecpromotion Could you test again and in addition test also the scenario described in @joomdonation 's comment #46050 (comment) ? Thanks in advance.
@SniperSister Now PHPStan complains about direct access to the $language
property of the Factory class. Could you change that? If it is not possible or reasonable to change it, you have to update the phpstan-baseline.neon
file with ./libraries/vendor/bin/phpstan -b
to add exclusions for these cases.
I have tested this item ✅ successfully on 6c08ecf
I have tested this with several languages.
For the German language, we have a total of 5 language packs:
I then changed the subject line in the emails and received different emails.
Done @richard67
Done @richard67
@SniperSister Where?
I've restored the previous human test result in the issue tracker as the commits which have invalidated the test count were just a change of the phpstan baseline file and code style.
@tecpromotion Sorry to bother you again. Could you test again after the last changes? That would be really great. Thanks in advance, and thanks for previous tests.
I have tested this item ✅ successfully on 8220078
I have tested this item 🔴 unsuccessfully on 8220078
Tested with public available site
admin
from installation, no PHP error log entries, Joomla log entries as usuallyCould someone else please retest with setting Administrator default language as e.g. German?
I have tested this item ✅ successfully on 8220078
❌ Enabled Automated Updates > Email sent in English: 'Your site has been successfully automatically updated from 5.4.0-beta3-dev+pr.46050 to 5.4.115.'
@muhme you can't test the PR like this. The 5.4.115 does not include the fix and therefore it will fall back to the EN mail. See test instrucitons.
@SniperSister Can it be tested by using the first code snippet from the testing instructions of PR #45721 to trigger the notification mail?
@richard67 the code snippet, an API call, or reaching out to me - whatever works :)
@SniperSister Can it be tested by using the first code snippet from the testing instructions of PR #45721 to trigger the notification mail?
I also used that instructions for testing.
I also used that instructions for testing.
Admin Application and API application differ in setup, might be worth to actually trigger the notification via curl instead to make sure the app context does not influence the result:
--header 'X-JUpdate-Token: YOUR_UPDATE_TOKEN'```
I also used that instructions for testing.
Admin Application and API application differ in setup, might be worth to actually trigger the notification via curl instead to make sure the app context does not influence the result:
curl --location --request POST 'http//YOUR_SITE/api/index.php/v1/joomlaupdate/notificationSuccess' --header 'X-JUpdate-Token: YOUR_UPDATE_TOKEN'
It really depends on the active language of the current running application. The issue will happen if:
I do not understand how the auto update trigger that email yet but I can see the potential issue by reading logic the code. But if no one else see the issue, you can ignore it.
I have not tested this item.
It really depends on the active language of the current running application. The issue will happen if:
- The user language is the same with the language of the current running application
- And the backend language is different
I do not understand how the auto update trigger that email yet but I can see the potential issue by reading logic the code. But if no one else see the issue, you can ignore it.
I have expanded my test scenario.
I now have six differently configured users.
The starting point is an English backend
One user now uses the backend default language and also receives the email in English.
One user has explicitly set English as the backend language and also receives the email in English.
One user has de-DE as their language and receives the email in German (de-de).
One user has de-AT as their language and receives the email in German (de-at).
One user has de-CH as their language and receives the email in German (de-ch).
@joomdonation which case is not covered and can be tested by me?
@tecpromotion Please try with the case :
I'm unsure if you can re-procedure the issue because as I said, I test it by calling the code to send notification directly as described in #45721 (So I logged in using the super user account to trigger the code, mean the active application at that time running on English)
@tecpromotion Please try with the case :
- Backend set to German
- Only one active super user account
- That user account has backend language set to English
I'm unsure if you can re-procedure the issue because as I said, I test it by calling the code to send notification directly as described in #45721 (So I logged in using the super user account to trigger the code, mean the active application at that time running on English)
Result: The email is in German (default backend language), but the only user has English as the backend language in their profile.
thx @joomdonation
@joomdonation Could you give it a final test and submit a test result?
@tecpromotion Could you submit a test result? I assume you have already tested with the latest change.
I have tested this item ✅ successfully on b3393a4
If you also want the versions to be displayed in the update email, you can use this command.
curl --location --request POST 'https://YOUR_SITE/api/index.php/v1/joomlaupdate/notificationSuccess' \
--data '{"toVersion":"5.4.115","fromVersion":"5.4.105"}' \
--header 'X-JUpdate-Token: YOUR_UPDATE_TOKEN'
I have tested this item ✅ successfully on b3393a4
The final test has now worked with several variants in the language pack configuration.
Thanks @joomdonation and everyone else.
Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
Labels |
Added:
RTC
|
Final test before merge with manual installation in public available site
chown -R root:root public_html
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-09-11 09:16:37 |
Closed_By | ⇒ | muhme |
Thank you @SniperSister for your contribution. Thank you @brianteeman, @joomdonation and @richard67 for supporting. Thank you @joomdonation and @tecpromotion for testing.
I made PR #46071 to clean up/improve code further. As you are familiar with update notification email, it would be great if you can help testing it @tecpromotion, @muhme. Thanks !
have you got the before and after the wrong way around?