Vidalia / moodle-format_cards

Moodle cards format
GNU General Public License v3.0
1 stars 0 forks source link

Error on installing moodle 4.1 (php 8.1) #7

Closed kirildevlion closed 1 year ago

kirildevlion commented 1 year ago

Hi we are trying to install plugin on MOODLE 4.1 (PHP 8.1) on 3 different instances and we got the same error. When we deleted the file db/install.xml the plugin was successfully installed.

-->format_cards
Default exception handler: XML database file errors found Debug: Errors found in XMLDB file: PATH attribute does not match file directory: course/format/cards/db
Error code: ddlxmlfileerror
* line 1953 of /lib/upgradelib.php: call to upgrade_plugins()
* line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()
 !!
Vidalia commented 1 year ago

Thanks for the report, I copied the install.xml from another plugin so I didn't have to type it out again but forgot to change one of the attributes, hence the error.

You need to install the plugin using install.xml because that sets up the database tables for you to be able to use section breaks. I'll push out a proper update shortly, but there's a diff for the patch here: https://github.com/Vidalia/moodle-format_cards/commit/751ba42981531b217d37d19208a2139585d27d92

Vidalia commented 1 year ago

Okay, should be fixed in v1.3.2 which is the new latest version on moodle.org. Give that a try and let me know how it goes!