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

During phpunit install, there are few PHP warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.6
    • Unit tests
    • MOODLE_26_STABLE

      I ran "mdk phpunit -u lib/tests/environment_tests.php"
      Just after the PHPunit database is installed there are many PHP warnings:

      -->tinymce_wrap
      ++ Success ++
      PHP Notice: Undefined property: stdClass::$format in /home/jerome/moodles/integration_master/moodle/course/format/lib.php on line 171

      Notice: Undefined property: stdClass::$format in /home/jerome/moodles/integration_master/moodle/course/format/lib.php on line 171
      ++ Format plugin format_ is not found. Using default format_weeks ++

      • line 118 of /course/format/lib.php: call to debugging()
      • line 179 of /course/format/lib.php: call to format_base::get_format_or_default()
      • line 35 of /course/format/lib.php: call to format_base::instance()
      • line 3591 of /lib/adminlib.php: call to course_get_format()
      • line 6433 of /lib/adminlib.php: call to admin_setting_sitesetselect->write_setting()
      • line 6419 of /lib/adminlib.php: call to admin_apply_default_settings()
      • line 6419 of /lib/adminlib.php: call to admin_apply_default_settings()
      • line 501 of /lib/installlib.php: call to admin_apply_default_settings()
      • line 443 of /lib/phpunit/classes/util.php: call to install_cli_database()
      • line 154 of /admin/tool/phpunit/cli/util.php: call to phpunit_util::install_site()
        PHP Notice: Undefined property: stdClass::$fullname in /home/jerome/moodles/integration_master/moodle/admin/settings/badges.php on line 47

      Notice: Undefined property: stdClass::$fullname in /home/jerome/moodles/integration_master/moodle/admin/settings/badges.php on line 47
      PHP Notice: Undefined property: stdClass::$timecreated in /home/jerome/moodles/integration_master/moodle/admin/settings/badges.php on line 57

      Notice: Undefined property: stdClass::$timecreated in /home/jerome/moodles/integration_master/moodle/admin/settings/badges.php on line 57
      PHP Notice: Undefined property: stdClass::$format in /home/jerome/moodles/integration_master/moodle/course/format/lib.php on line 171

      Notice: Undefined property: stdClass::$format in /home/jerome/moodles/integration_master/moodle/course/format/lib.php on line 171
      PHP Notice: Undefined property: stdClass::$format in /home/jerome/moodles/integration_master/moodle/course/format/lib.php on line 171

      Notice: Undefined property: stdClass::$format in /home/jerome/moodles/integration_master/moodle/course/format/lib.php on line 171
      PHPUnit ready!
      Executing vendor/bin/phpunit lib/tests/environment_test.php

            Unassigned Unassigned
            jerome Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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