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

PHP notice shown when enabling first webservice protocol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 4.0
    • Web Services
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide
      1. Login as admin
      2. Increase debugging to max
      3. Navigate to Server > Web services > Manage protocols in site administration
      4. Enable Rest protocol
      5. Confirm there is no PHP notice
      6. Enable SOAP protocol
      7. Navigate to Reports > Config changes in site administration
      8. Confirm you see the following entries
        Setting New value Original value
        webserviceprotocols rest,soap rest
        webserviceprotocols rest  
      Show
      Login as admin Increase debugging to max Navigate to Server > Web services > Manage protocols in site administration Enable Rest protocol Confirm there is no PHP notice Enable SOAP protocol Navigate to Reports > Config changes in site administration Confirm you see the following entries Setting New value Original value webserviceprotocols rest,soap rest webserviceprotocols rest  

      Small regression from MDL-72720 - this line of code generates a notice, if the config value doesn't already exist: https://github.com/moodle/moodle/commit/1dfa86b4b4076d58fa66be0044ae5ef5a910c9c4#diff-7790fbe6123f9e94977e7b1388d0418be08bc0edd4a381e4171771a623360e74R81


       

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

        1. Screenshot from 2021-11-11.png
          43 kB
          Paul Holden
        2. step 5_screenshot.PNG
          47 kB
          Gladys Basiana
        3. step 8_screenshot.PNG
          28 kB
          Gladys Basiana

            pholden Paul Holden
            pholden Paul Holden
            Amaia Anabitarte Amaia Anabitarte
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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