Skip to content

[5.x] wrong email text if update notification task is runned from cron/cli #47256

@alikon

Description

@alikon

What happened?

  1. enable Task Joomla! Update Notification
  2. use cron job to schedule the tasks run with something like cli/joomla.php scheduler:run >/dev/null 2>&1
  3. the email you receive is something like that:

title
Joomla! Update available for ******** – https://joomla.invalid/set/by/console/application/

This email IS NOT sent by the Joomla! project. It is sent automatically by your own site,
******* - https://joomla.invalid/set/by/console/application/

================================================================================
UPDATE INFORMATION

Your site has discovered that there is an updated version of Joomla! available.

Joomla! version currently installed: 5.4.2
Joomla! version available for installation: 5.4.3

This email is sent to you by your site to remind you of this fact.
The Joomla! project will never contact you directly about available updates of Joomla! on your site.

================================================================================
UPDATE INSTRUCTIONS

To install the update on ******* please select the following link. (If the URL is not a link, copy & paste it to your browser).

Update link: https://joomla.invalid/set/by/console/application/administrator/index.php?option=com_joomlaupdate

Release News can be found here: https://www.joomla.org/announcements/release-news/

================================================================================
WHY AM I RECEIVING THIS EMAIL?

This email has been automatically sent by a plugin provided by Joomla!, the software which powers your site.
This plugin looks for updated versions of Joomla! and sends an email notification to its administrators.
You will receive several similar emails from your site until you either update the software or disable these emails.

Version

5.4

Expected result

even from cli report the correct sitename and the correct url to update

Actual result

wrong sitename and url

System Information

not only 5.x happen on 6.x too

Additional Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions