Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31161

error notice in multiple plugin dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2.2
    • 2.2, 2.3
    • Installation

      Testing plugin->dependencies on moodle 2.2.

      My REGEXP question type version.php has these dependencies:

      $plugin->dependencies = array(
          'qbehaviour_regexpadaptivewithhelp'   => 2012010100,
          'qbehaviour_regexpadaptivewithhelpnopenalty'  => 2012010100,
      );

      My regexpadaptivewithhelpnopenalty behaviour has this dependency:

      $plugin->dependencies = array(
          'qbehaviour_regexpadaptivewithhelp' => 2012010100
      );

      If I install the REGEXP question type without installing any of the 2 required behaviours, on the plugins check page, in the REQUIRED column, I get a "normal" notice for the 2 missing behaviours.

      Then, if I install only the regexpadaptivewithhelpnopenalty behaviour, I get 2 notices of missing regexpadaptivewithhelp behaviour. This is normal.

      However, this scenario throws a PHP notice error:

      Notice: Trying to get property of non-object in moodle\admin\renderer.php on line 601

      Explanation:
      the condition in line 601 should not be tested if $ok is false.

            skodak Petr Skoda
            rezeau Joseph Rézeau
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Michael de Raadt Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.