Extension Name: Container Guard
Author: [hidden]
Extension Description:
One broken extension can no longer switch off all your other extensions. When an extension breaks phpBB (an error in its service configuration, a missing class or a fatal PHP error), phpBB normally switches off every extension until the error is fixed. With Container Guard only the faulty extension is left out and the board keeps working.
- Visitors see a short "One moment please" page that reloads by itself, then the board works again without that extension.
- Founders get a bell notification and an e-mail. Extra groups can be chosen in the ACP.
- A red notice in the ACP names the extension and the error.
- The ACP page (Maintenance -> Container Guard) lists the extensions that are left out, with a Load again button, and keeps a history that you can clear.
- An extension is loaded again by itself as soon as the file that failed changes, or when the cache is purged.
- It checks that the changed phpBB files are still in order and can restore them with one click after a phpBB update.
Needs the [hidden] 1.0.4 or newer, installed and enabled. Container Guard uses it to change four phpBB files.
[hidden] [hidden]
[hidden]
- New "Clear history" button (with confirmation) that removes the lines of extensions that are loaded again. Extensions that are still left out stay in the list.
[hidden]
- Load again now marks the extension as loaded again at once, so when it breaks again you get a new notification and a new line in the history (at most once an hour per extension and reason).
[hidden]
- An extension that is loaded again and breaks again now gives a new notification, at most once an hour.
[hidden]
- Friendly "One moment please" page at the first failure instead of a plain error.
- Updating through the File Manager works: the first request after the update replaces the older changes in the phpBB files.
Requirements:
- phpBB 3.3.x or 4.0.x, PHP 7.1.3 or newer
- [hidden] 1.0.4 or newer, installed and enabled
- The web server user can write to four phpBB files that Container Guard changes (the container builder, the ACP functions file, the ACP header template and the ACP language file).
Screenshots:
[hidden]
The ACP start page shows that the protection is active and which extensions are left out
[hidden]
The Container Guard page with the protection state, the extensions that are left out, the groups to notify and the history
[hidden]
The self-check of the four phpBB files that Container Guard changes
[hidden]
Extensions that are left out, with the reason and a button to load them again
[hidden]
Choosing extra groups that get a notification when an extension is left out
[hidden]
The history of extensions that were left out and loaded again
[hidden]
Founders get a notification for every extension that is left out
[hidden]
Every member can switch the notification and the e-mail off in the notification settings
[hidden]
The admin log gets a line each time an extension is left out or loaded again
[hidden]
After Load again the extension is tried at once and the page confirms it
Extension Download:
[hidden]
Installation:
Update through the File Manager, or replace the files with FTP and open any page once: the first request after the update replaces the older changes in the phpBB files by itself.
Uninstall:
Author: [hidden]
Extension Description:
One broken extension can no longer switch off all your other extensions. When an extension breaks phpBB (an error in its service configuration, a missing class or a fatal PHP error), phpBB normally switches off every extension until the error is fixed. With Container Guard only the faulty extension is left out and the board keeps working.
- Visitors see a short "One moment please" page that reloads by itself, then the board works again without that extension.
- Founders get a bell notification and an e-mail. Extra groups can be chosen in the ACP.
- A red notice in the ACP names the extension and the error.
- The ACP page (Maintenance -> Container Guard) lists the extensions that are left out, with a Load again button, and keeps a history that you can clear.
- An extension is loaded again by itself as soon as the file that failed changes, or when the cache is purged.
- It checks that the changed phpBB files are still in order and can restore them with one click after a phpBB update.
Needs the [hidden] 1.0.4 or newer, installed and enabled. Container Guard uses it to change four phpBB files.
[hidden] [hidden]
[hidden]
- New "Clear history" button (with confirmation) that removes the lines of extensions that are loaded again. Extensions that are still left out stay in the list.
[hidden]
- Load again now marks the extension as loaded again at once, so when it breaks again you get a new notification and a new line in the history (at most once an hour per extension and reason).
[hidden]
- An extension that is loaded again and breaks again now gives a new notification, at most once an hour.
[hidden]
- Friendly "One moment please" page at the first failure instead of a plain error.
- Updating through the File Manager works: the first request after the update replaces the older changes in the phpBB files.
Requirements:
- phpBB 3.3.x or 4.0.x, PHP 7.1.3 or newer
- [hidden] 1.0.4 or newer, installed and enabled
- The web server user can write to four phpBB files that Container Guard changes (the container builder, the ACP functions file, the ACP header template and the ACP language file).
Screenshots:
[hidden]
The ACP start page shows that the protection is active and which extensions are left out
[hidden]
The Container Guard page with the protection state, the extensions that are left out, the groups to notify and the history
[hidden]
The self-check of the four phpBB files that Container Guard changes
[hidden]
Extensions that are left out, with the reason and a button to load them again
[hidden]
Choosing extra groups that get a notification when an extension is left out
[hidden]
The history of extensions that were left out and loaded again
[hidden]
Founders get a notification for every extension that is left out
[hidden]
Every member can switch the notification and the e-mail off in the notification settings
[hidden]
The admin log gets a line each time an extension is left out or loaded again
[hidden]
After Load again the extension is tried at once and the page confirms it
Extension Download:
[hidden]
Installation:
- Install and enable the [hidden] first.
- Download the latest release.
- Unzip the downloaded release, and change the name of the folder to `containerguard`.
- In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
- Copy the `containerguard` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
(your forum root)/ext/dmzx/containerguard/composer.json - Navigate in the ACP to `Customise -> Manage extensions`
- Look for `Container Guard` under the Disabled Extensions list, and click its `Enable` link.
Update through the File Manager, or replace the files with FTP and open any page once: the first request after the update replaces the older changes in the phpBB files by itself.
Uninstall:
- Navigate in the ACP to `Customise -> Manage extensions`
- Click `Disable` for `Container Guard`, then `Delete Data`. This puts the original phpBB files back. The Editor extension must still be enabled then.
- Delete the `containerguard` folder from `/ext/dmzx/`.

