phpBB won’t draw attention to new entries in this log, yet the errors in this log are typically important and require prompt analysis and correction. For example, if phpBB can’t send an email, a notification will typically appear in phpBB’s error log. Unless an admin checks this log, however, the error will be ignored. To see the error log: ACP > Maintenance > Forum logs > Error log
A notification is sent to all applicable admins except to the admin triggering the error, who should see it when it occurs. By default, no email notification is sent. However, the extension allows an admin with the privilege to get an email notification too. This setting must be enabled: UCP > Board preferences > Edit notification options > Admin log error notification. See screenshot.
This extension is in beta status and should not be used on a production board. It can be downloaded from its page or from the GitHub branch. If downloaded from GitHub, place it in an
/ext/phpbbservices/notifyonerror
folder.This extension can be hard to test unless you can trigger an actual error. For testing then you might want to change the code temporarily to have it notify you when any entry is added to the admin log. Just make sure to revert these changes after testing.
Change
/event/main_listener.php
, line 83 from:Code: Select all
if ($vars['mode'] === 'critical') // Change this to 'admin' to test. Submitting any ACP form will then trigger the error.
Code: Select all
if ($vars['mode'] === 'admin') // Change this to 'admin' to test. Submitting any ACP form will then trigger the error.