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

PHP undefined property notice when viewing users webservice documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.11.5
    • 3.11.4
    • Web Services
    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • Hide
      1. Log in as admin
      2. Navigate to Advanced features in site administration
      3. Tick Enable web services and save changes
      4. Navigate to Server > Web services > Manage protocols in site administration
      5. Tick Web services documentation and save changes
      6. Create a test user
      7. Navigate to Users > Permissions > Assign system roles in site administration
      8. Assign test user to Manager role
      9. Navigate to Server > Web services > Manage tokens in site administration
      10. Create token for test user
      11. Log out
      12. Log in as test user
      13. Select Preferences from user menu
      14. Press User account > Security keys
      15. Press Documentation link for web service
      16. Confirm you don't see the following notice on the page:

        Notice: Undefined property: stdClass::$webserviceprotocols in /var/www/html/webservice/lib.php on line 911
        

      Show
      Log in as admin Navigate to Advanced features in site administration Tick Enable web services and save changes Navigate to Server > Web services > Manage protocols in site administration Tick Web services documentation and save changes Create a test user Navigate to Users > Permissions > Assign system roles in site administration Assign test user to Manager role Navigate to Server > Web services > Manage tokens in site administration Create token for test user Log out Log in as test user Select Preferences from user menu Press User account > Security keys Press Documentation link for web service Confirm you don't see the following notice on the page: Notice: Undefined property: stdClass::$webserviceprotocols in /var/www/html/webservice/lib.php on line 911

    Description

      As caught by andelacruz while testing MDL-73564, commented here: https://tracker.moodle.org/browse/MDL-73564?focusedCommentId=895903&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-895903

      Notice: Undefined property: stdClass::$webserviceprotocols in /var/www/html/webservice/lib.php on line 911
      

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Mikel Martín Corrales Mikel Martín Corrales
              Andrew Lyons Andrew Lyons
              Angelia Dela Cruz Angelia Dela Cruz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 55 minutes
                  55m

                  Clockify

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