409 error (Conflict) when trying to insert an image into a post

The problem was with ModSecurity settings blocking some of the WordPress scripts.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)