GithubHelp home page GithubHelp logo

Comments (2)

TomoTsuyuki avatar TomoTsuyuki commented on May 27, 2024 1

The issue has been fixed in
https://tracker.moodle.org/browse/MDL-72924
which is deployed to Moodle 3.10+.
For older version of Moodle or Totara, need to backport to solve the issue.
moodle/moodle@086878c

from moodle-tool_heartbeat.

matthewhilton avatar matthewhilton commented on May 27, 2024

Encountered this issue in Totara 12.
Changed lib/classes/check/manager.php line 82 from
$check->component = $plugintype . '_' . $plugin;
to
$check->set_component($plugintype . '_' . $plugin);
Full stack trace:

Exception - Cannot access protected property tool_heartbeat\check\rangerequestcheck::$component

Debug info:
Error code: generalexceptionmessage
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 check API is moodle is using the correct set_component method - so this bug is unlikely due to check api or heartbeat and just with a specific backport of the check api to totara.

from moodle-tool_heartbeat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.