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

Webservice API Documentation throws tool_behat autoload error

    XMLWordPrintable

Details

    • 1
    • Team Hedgehog Sprint 1.3

    Description

      Hi there,

      I just downloaded the latest stable Moodle (4.1+) release for Windows and setup the plain default platform installation.

      When trying to view available webservice functions at Site administration > Server > Web services: API Documentation, I run into the following error:

      Warning: require_once(<MOODLEROOT>\server\moodle/vendor/autoload.php): failed to open stream: No such file or directory in <MOODLEROOT>\server\moodle\admin\tool\behat\classes\external\get_entity_generator.php on line 31 

       

      From what I've gathered, this bug was only introduced a few days ago in this commit which added get_entity_generator.php.

      The problematic lines look like this:
       

      30 require_once($CFG->libdir . '/externallib.php');
      31 require_once($CFG->dirroot . '/vendor/autoload.php'); // Ensure we can load Behat and Facebook namespaces in behat libraries.
      32 require_once($CFG->libdir . '/tests/behat/behat_data_generators.php');

      In line 31, tool_behat is trying to load a script from the vendor directory, which doesn't exist in my Moodle instance.

      Attachments

        1. 311.gif
          311.gif
          158 kB
        2. 39.gif
          39.gif
          211 kB
        3. 400.gif
          400.gif
          225 kB
        4. 401.gif
          401.gif
          185 kB
        5. Master.gif
          Master.gif
          215 kB

        Issue Links

          Activity

            People

              pholden Paul Holden
              doodlezucc Theo Wiese
              Meirza Meirza
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              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 - 2 hours, 20 minutes
                  2h 20m

                  Clockify

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