When installing on Moodle 3.5, bootstrapelements throws a ddlxmlfileerror and fails to install

Issue #10 resolved
Mike Kelly created an issue

When installing the bootstrapelements plugin on Moodle 3.5 (final release), under PHP 7.1, Moodle throws the following error:

XML database file errors found
Debug info: Errors found in XMLDB file: PATH attribute does not match file directory: mod/bootstrapelements/db
Error code: ddlxmlfileerror

The error is due to line 2 in db/install.xml:

<XMLDB PATH="mod/bootstrap/db" VERSION="20150106" COMMENT="XMLDB file for Moodle mod/bootstrapelements"

Moodle is expecting the XMLDB PATH to match the module directory name. In this case it should be:

<XMLDB PATH="mod/bootstrapelements/db" VERSION="20150106" COMMENT="XMLDB file for Moodle mod/bootstrapelements"

Once the path is updated to match the module directory, the module installs and works without any apparent issue.