Cancel Stalled throws a fatal error (protected CMSApplication::getContainer()) #306

Open
opened 2026-07-18 20:17:35 +00:00 by jmiller · 1 comment
Owner

Type: bug Priority: high Component: com_mokosuitebackup

Summary

Clicking Backup Records → Cancel Stalled dies with a fatal:

Call to protected method Joomla\CMS\Application\CMSApplication::getContainer() from scope Joomla\Component\MokoSuiteBackup\Administrator\Controller\BackupsController

There is therefore no working UI path to clear a stuck backup.

Root cause

BackupsController::cancelStalled() and purge() fetch the DB via $this->app->getContainer(), but CMSApplication::getContainer() is protected.

Fix

Use Factory::getContainer() (as the rest of the component already does). Both call sites corrected on branch fix/backup-cancel-stall-runbackup-updatesite.

Repro

  1. Have a backup record in running state.
  2. Backup Records → select it → Cancel Stalled → fatal.
**Type:** bug **Priority:** high **Component:** com_mokosuitebackup ### Summary Clicking **Backup Records → Cancel Stalled** dies with a fatal: > Call to protected method `Joomla\CMS\Application\CMSApplication::getContainer()` from scope `Joomla\Component\MokoSuiteBackup\Administrator\Controller\BackupsController` There is therefore **no working UI path to clear a stuck backup**. ### Root cause `BackupsController::cancelStalled()` and `purge()` fetch the DB via `$this->app->getContainer()`, but `CMSApplication::getContainer()` is `protected`. ### Fix Use `Factory::getContainer()` (as the rest of the component already does). Both call sites corrected on branch `fix/backup-cancel-stall-runbackup-updatesite`. ### Repro 1. Have a backup record in `running` state. 2. Backup Records → select it → **Cancel Stalled** → fatal.
Author
Owner

Branch created: feature/306-cancel-stalled-throws-a-fatal-error-prot

git fetch origin
git checkout feature/306-cancel-stalled-throws-a-fatal-error-prot
Branch created: [`feature/306-cancel-stalled-throws-a-fatal-error-prot`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteBackup/src/branch/feature/306-cancel-stalled-throws-a-fatal-error-prot) ```bash git fetch origin git checkout feature/306-cancel-stalled-throws-a-fatal-error-prot ```
Sign in to join this conversation.