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

Webservice API Documentation throws tool_behat autoload error (again)

    XMLWordPrintable

Details

    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • Hide

      (Copied from MDL-76760)

      1. If $CFG->dirroot/vendor/autoload.php exists, then rename it
      2. Log in as admin
      3. Navigate to Server > Web services > API documentation
      4. Confirm page loads without errors
      5. Automated tests will cover the change to external service method
      Show
      (Copied from MDL-76760 ) If $CFG->dirroot/vendor/autoload.php exists, then rename it Log in as admin Navigate to Server > Web services > API documentation Confirm page loads without errors Automated tests will cover the change to external service method

    Description

      See MDL-76760 where we already fixed this one, however it seems MDL-76583 mistakenly added the same lines back again which leads to the following error on the WS API page, if vendor/ directory isn't present:

      Exception - Failed opening required '[dirroot]/vendor/autoload.php' (include_path='[dirroot]/lib/pear:.:/usr/share/php')
       
      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:
       
          line 37 of /admin/tool/behat/classes/external/get_entity_generator.php: Error thrown
          line 145 of /lib/classes/component.php: call to include_once()
          line ? of unknownfile: call to core_component::classloader()
          line 61 of /lib/external/classes/external_api.php: call to class_exists()
          line 39 of /admin/webservice/documentation.php: call to core_external\external_api::external_function_info()
       
      Output buffer: <br /> <b>Warning</b>: require_once(/opt/moodle/master/src/vendor/autoload.php): Failed to open stream: No such file or directory in <b>/opt/moodle/master/src/admin/tool/behat/classes/external/get_entity_generator.php</b> on line <b>37</b><br /> 
      

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Carlos Castillo Carlos Castillo
              Andrew Lyons Andrew Lyons
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 50 minutes
                  50m

                  Clockify

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