Getting settings saved two times in settings page with tab

The culprit is:

<?php settings_errors(); ?>

It isn’t needed and will produce a second “Settings saved.” notification if there are no errors.

Edited for formatting.

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