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

Warning when displaying badges

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-71315-master
    • Hide

      Requirements

      1. Run your site with public access (use ngrok or similar).

      Setup badges

      1. Login as admin.
      2. Go to "Site administration | Badges | Add a new badge" and create a badge at site level.
      3. Add criteria to the badge so it can be manually issued by role.
      4. Enable the badge.
      5. Issue the badge to the admin user.

      Setup IMS Global DC service (IMS OBv2.1)

      1. Login as admin.
      2. Go to "Site administration / Server / OAuth 2 services".
      3. Create a "IMS OBv2.1" service with the following information:
      4. Save changes. 
      5. Go to "Site administration / Badges / Manage backpacks".
      6. Click the "Add a new backpack" button and create a new backpack with the following information:
      7. Save changes.

       

      Testing scenario

      1. Login as admin.
      2. Go to Dashboard / Preferences / Badges / Backpack settings.
      3. Select "https://dc.imsglobal.org" as "Backpack provider".
      4. Click button "Connect to backpack".
      5. Login using one of the existing users (alice or bob).
      6. Click button "Yes, Allow".
      7. Check the "Backpack has been connected" message is displayed.
      8. Go to the user profile.
      9. Click over the badge image.
      10. Check the "Add to backpack" button is displayed.
      11. Check no warning is displayed any more.
      Show
      Requirements Run your site with public access (use ngrok or similar). Setup badges Login as admin. Go to "Site administration | Badges | Add a new badge" and create a badge at site level. Add criteria to the badge so it can be manually issued by role. Enable the badge. Issue the badge to the admin user. Setup IMS Global DC service (IMS OBv2.1) Login as admin. Go to "Site administration / Server / OAuth 2 services". Create a "IMS OBv2.1" service with the following information: Name: "IMS Global" Service base URL:  https://dc.imsglobal.org/ Save changes.  Go to "Site administration / Badges / Manage backpacks". Click the "Add a new backpack" button and create a new backpack with the following information: Backpack API URL:  https://dc.imsglobal.org/obprovider/ims/ob/v2p1 Backpack URL:  https://dc.imsglobal.org API version supported: Open Badges v2.1 OAuth2 services: IMS Global Save changes.   Testing scenario Login as admin. Go to Dashboard / Preferences / Badges / Backpack settings. Select "https://dc.imsglobal.org" as "Backpack provider". Click button "Connect to backpack". Login using one of the existing users (alice or bob). Click button "Yes, Allow". Check  the "Backpack has been connected" message is displayed. Go to the user profile. Click over the badge image. Check the "Add to backpack" button is displayed. Check no warning is displayed any more.
    • Moppies Kanban

      When accessing a badge from the user profile (badges/badge.php?hash=xxxx), the following error is displayed:

      Warning: Use of undefined constant assertion - assumed 'assertion' (this will throw an Error in a future version of PHP) in moodle/badges/renderer.php on line 360

      This is a regression caused by MDL-69792 because there is a missing $ before the assertion var in badges/renderer.php.

        1. MDL-71119.png
          143 kB
          Gladys Basiana

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Jun Pataleta Jun Pataleta
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 20 minutes
                3h 20m

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