-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
We have detected that when attempting to use the resource in other themes than the Moodle predefined (ex: boost), it tries to make a database entry for 'carousel' and attempts to register a string instead of an integer value.
Default exception handler: Error escribiendo a la base de datos Debug: Incorrect integer value: 'on' for column `moodle`.`mdl_mediagallery`.`carousel` at row 1
INSERT INTO mdl_mediagallery (name,mode,colltype,maxbytes,maxitems,maxgalleries,allowcomments,allowlikes,thumbnailsperpage,thumbnailsperrow,displayfullcaption,captionposition,gridcolumns,gridrows,readonlyfrom,readonlyto,source,course,intro,introformat,carousel,grid,galleryfocus,timecreated,userid) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'fsfsdf',
1 => 'standard',
2 => 'instructor',
3 => '0',
4 => 0,
5 => 0,
6 => '1',
7 => '1',
8 => '0',
9 => '2',
10 => '0',
11 => '0',
12 => '0',
13 => '0',
14 => 0,
15 => 0,
16 => 'moodle',
17 => '47089',
18 => '',
19 => '1',
20 => 'on',
21 => 0,
22 => '1',
23 => 1699466654,
24 => '14979',
)]
Error code: dmlwriteexception
* line 497 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
* line 1366 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
* line 1412 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 85 of /mod/mediagallery/lib.php: call to mysqli_native_moodle_database->insert_record()
* line 137 of /course/modlib.php: call to mediagallery_add_instance()
* line 170 of /course/modedit.php: call to add_moduleinfo()
Metadata
Metadata
Assignees
Labels
No labels