The bug you describe is between php and mysql.
If, during your OS update, your mysql was updated to 8.0.4 refer to:
in your pic
the ini file are /etc/php/7.0 they should ne 7.2 nop ??!!!
ARGH, did nt see you second pics …
let me think for a minutes, i come back.