A constraint was (correctly) added to request.logid which causes utils.pm::insert_request to fail. insert_request is called from:
insert_request does not currently attempt to insert an entry to the log table before inserting into the request table but it does accept a log.id argument. However, log.id is specified as 0 in both locations where it is called. Since there is no entry in the log table with id=0, the following error is generated when attempting to insert into the request table:
insert_request either needs to be updated to first add a row to the log table or the request table needs to be modified to allow NULL logid values.