-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
3.1.2, 3.4, 3.5.3
-
MOODLE_31_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
wip-
MDL-56650-master
Moodle 3.1.2+ (Build: 20161027)
How to reproduce:
Create a stub 'mod/something1' plugin. Install it.
Try to add an activity of type 'something1'.
You will get:
Can not find data record in database table modules.
|
|
More information about this error |
|
Debug info: SELECT * FROM {modules} WHERE name = ?
|
[array (
|
0 => 'something', |
)]
|
Error code: invalidrecord
|
Stack trace:
|
line 1502 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown |
line 1478 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select() |
line 425 of /course/modlib.php: call to moodle_database->get_record() |
line 63 of /course/modedit.php: call to can_add_moduleinfo() |
But if you name your plugin 'something' (without a number at the end), then everything works.
- duplicates
-
MDL-67707 Create a new H5P activity
-
- Closed
-