-
Bug
-
Resolution: Fixed
-
Critical
-
4.1
-
MOODLE_401_STABLE
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-76760-401 -
-
1
-
Team Hedgehog Sprint 1.3
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.