Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31167 PHP strict META
  3. MDL-33831

Strict standards warnings in Glossary

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3
    • 2.2.3
    • Glossary
    • MOODLE_22_STABLE
    • MOODLE_23_STABLE
    • w25_MDL-33831_m23_glossestrict
    • Hide
      1. Log in as teacher/admin
      2. Create a glossary or work with an existing one, some entries are needed
      3. In the glossary, navigate to Settings > Glossary settings > Export entries and export the entries to a file
      4. Go back to the course page and create a new, empty glossary
      5. Navigate to Settings > Glossary settings > Import entries and choose the file you just exported
      6. VERIFY no warnings are shown
      7. Navigate to the course page and ensure the Recent activity block is shown
      8. Click the link "Full report of recent activity..." in the Recent activity block
      9. VERIFY no warnings are shown
      Show
      Log in as teacher/admin Create a glossary or work with an existing one, some entries are needed In the glossary, navigate to Settings > Glossary settings > Export entries and export the entries to a file Go back to the course page and create a new, empty glossary Navigate to Settings > Glossary settings > Import entries and choose the file you just exported VERIFY no warnings are shown Navigate to the course page and ensure the Recent activity block is shown Click the link "Full report of recent activity..." in the Recent activity block VERIFY no warnings are shown

      I ran into a couple of warnings when testing the Glossary.

      When I imported a file of entries I saw the following report repeated many times.

      Strict Standards: Creating default object from empty value in D:\xampp\htdocs\moodle_testing\mod\glossary\import.php on line 195

      There was an error after importing entries into the glossary that is reported in MDL-33707 and MDL-33821.

      Viewing the "Full report of recent activity..." from the Recent activity block showed a page with the following two warnings repeated numerous times.

      Strict Standards: Creating default object from empty value in D:\xampp\htdocs\moodle_testing\mod\glossary\lib.php on line 408
       
      Strict Standards: Creating default object from empty value in D:\xampp\htdocs\moodle_testing\mod\glossary\lib.php on line 411

      Replication steps:

      1. Log in as teacher/admin
      2. Create a glossary or work with an existing one, some entries are needed
      3. In the glossary, navigate to Settings > Glossary settings > Export entries and export the entries to a file
      4. Go back to the course page and create a new, empty glossary
      5. Navigate to Settings > Glossary settings > Import entries and choose the file you just exported
      6. Navigate to the course page and ensure the Recent activity block is shown
      7. Click the link "Full report of recent activity..." in the Recent activity block

      Expected result: no errors shown

      Actual result: Strict standards errors shown on import and recent activity pages

            skodak Petr Skoda
            salvetore Michael de Raadt
            Dan Poltawski Dan Poltawski
            Frédéric Massart Frédéric Massart
            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.