Warning when attempting to edit/add custom post type

Check your add_media_metaboxes() function. The first parameter is wrong and mostly likely just miss spelled.

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