Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.10.7, 3.11.3, 4.0
Description
Attempting to define a third party performance check in a plugin leads to a coding error when attempting to view the Performance check report.
Exception - Cannot access protected property tool_xxx\check\enabled::$component
Stack trace:
- line 82 of /lib/classes/check/manager.php: Error thrown
- line 56 of /lib/classes/check/manager.php: call to core\check\manager::get_performance_checks()
- line 72 of /lib/classes/check/table.php: call to core\check\manager::get_checks()
- line 35 of /report/performance/index.php: call to core\check\table->__construct()
The manager attempts to directly set $check->component, whereas it is correctly accessed using the set_component() method for status and security checks