This is the first time I hear about this.. must be if MySQL is running in some strict mode or something.. anyways, 2 options comes to my mind: 1. First option would be to edit your modx_maxigallery table and set title field default to null and remove not null. Don’t know why it’s even set to be not null.. (i’ll fix that). 2. The second option would be to edit functions.php and change:
this:
$rs1=$modx->db->query("INSERT INTO " . $pics_tbl . "(id, gal_id, filename, date, own_id) VALUES(NULL,'" . $gal_id . "','" . $name . "'," . $pic_date . ",'".$modx->getLoginUserID()."')");
to:
$rs1=$modx->db->query("INSERT INTO " . $pics_tbl . "(id, gal_id, filename, title, date, own_id) VALUES(NULL,'" . $gal_id . "','" . $name . "',''," . $pic_date . ",'".$modx->getLoginUserID()."')");
and this:
$rs1=$modx->db->query("INSERT INTO " . $pics_tbl . "(id, gal_id, filename, date) VALUES(NULL,'" . $gal_id . "','" . $name . "'," . $pic_date . ")");
to this:
$rs1=$modx->db->query("INSERT INTO " . $pics_tbl . "(id, gal_id, filename, title, date) VALUES(NULL,'" . $gal_id . "','" . $name . "',''," . $pic_date . ")");