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

Error "Argument #1 ($value) must be of type Countable|array, stdClass given" when accessing to user profile with external badges

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.2.2
    • Badges

      The following error is given when trying to access the profile or add a badge to the Badgr (Canvas credentials) backpack.

       

      Exception - count(): Argument #1 ($value) must be of type Countable|array, stdClass given

      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace: * line 383 of /badges/classes/backpack_api_mapping.php: TypeError thrown

      • line 383 of /badges/classes/backpack_api_mapping.php: call to count()
      • line 341 of /badges/classes/backpack_api.php: call to core_badges\backpack_api_mapping->request()
      • line 527 of /badges/classes/backpack_api.php: call to core_badges\backpack_api->curl_request()
      • line 73 of /badges/backpack-add.php: call to core_badges\backpack_api->put_issuer()

            Votes:
            4 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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