Plugin Deactivate Self on Activation Errors

You may need to have this line in your code

require_once( ABSPATH . 'wp-admin/includes/plugin.php' );

The plugin.php file is not automatically included.

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