RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
18 Oct 2025

Pull Request for Issue #46308 .

Summary of Changes

Fix data type for AutoupdateRegisterState must be of type int, string given
This happens only on updated sites, because the param entry for update_status is not present in database and so the default parameter of ->get() is used.

Now the same integer default value is used like here (Unsubscribed):

$registrationState = AutoupdateRegisterState::tryFrom($params->get('autoupdate_status', 0));

enum AutoupdateRegisterState: int
{
case Unsubscribe = -1;
case Unsubscribed = 0;
case Subscribe = 1;
case Subscribed = 2;
}

Testing Instructions

  • Update Joomla form 5.3.x to 5.4.x
  • Run test for Update Notification task

Actual result BEFORE applying this Pull Request

Scheduled task fails
image

PHP error message in server response
image

Task is locked
image

Expected result AFTER applying this Pull Request

Scheduled task should work
image

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar heelc29 heelc29 - open - 18 Oct 2025
avatar heelc29 heelc29 - change - 18 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Oct 2025
Category Front End Plugins
avatar heelc29 heelc29 - change - 18 Oct 2025
The description was changed
avatar heelc29 heelc29 - edited - 18 Oct 2025
avatar richard67 richard67 - test_item - 18 Oct 2025 - Tested successfully
avatar richard67
richard67 - comment - 18 Oct 2025

I have tested this item βœ… successfully on f5aa259


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

avatar alikon alikon - test_item - 18 Oct 2025 - Tested successfully
avatar alikon
alikon - comment - 18 Oct 2025

I have tested this item βœ… successfully on f5aa259


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

avatar alikon alikon - change - 18 Oct 2025
Status Pending Ready to Commit
avatar alikon
alikon - comment - 18 Oct 2025

RTC


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

avatar richard67 richard67 - change - 18 Oct 2025
Labels Added: RTC bug PR-5.4-dev
avatar muhme
muhme - comment - 19 Oct 2025

βœ… Final test before merge with JBT recreate 5.3.3 (as for 5.3.4 composer i failed)

  • Manual updated by upload with nightly 5.4-dev, Scheduled Task 'Update Notification' fails with 'No content was returned.'
  • Second test with PRs update package and there are no more problems running the Scheduled Task 'Update Notification'
avatar muhme muhme - change - 19 Oct 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-10-19 05:16:22
Closed_By muhme
avatar muhme muhme - close - 19 Oct 2025
avatar muhme muhme - merge - 19 Oct 2025
avatar muhme
muhme - comment - 19 Oct 2025

Thank you @heelc29 for your contribution. Thank you @richard67 and @alikon for testing.

avatar Sieger66
Sieger66 - comment - 2 Dec 2025

I think after update to 5.4.0 it have many sites with locked task "Update Notification" and this block all other tasks in the Task Scheduler.
I do not know it is usefull to do

UPDATE `#__scheduler_tasks` SET `locked`=NULL WHERE `type`='update.notification';

with the next Joomla-Update-Version to fix this problem?

PR #46315 not change locked status of "Update Notification" of the Task Scheduler in the database.

avatar richard67
richard67 - comment - 2 Dec 2025

I don’t think we should do that for all sites on update.

By the way, you can also unlock the locked tasks which have that running man icon by clicking on that icon.

avatar Sieger66
Sieger66 - comment - 2 Dec 2025

I know this all.
But on many amateur websites the not executed Scheduler Task "Session GC" overload the database if all tasks in the Task Scheduler are blocked by locked task "Update Notification".

Other minimal solution: Information after next Joomla-Update to check the Task Scheduler of locked tasks and unlock information.

I think it is better to do anything before many amateur websites crashed with full database.

avatar muhme
muhme - comment - 10 Dec 2025

@Sieger66 I have tested this by setting up a site with 5.3 and configuring all three default scheduled tasks to run every minute.

After manually updating to 5.4.0, the Update Notification task remained stuck, while the other two tasks continued running normally.

When updating to 5.4.1 via file upload, the stuck Update Notification task fixed itself, and all three tasks ran again without any manual intervention. For my setup, this means no additional information seems necessary.

Thank you very much for your helpful comment! πŸ™

Add a Comment

Login with GitHub to post a comment