wp-admin/admin-ajax.php 400 Bad request (chrome console)

To simplify your process and prevent redundant conditional checks just stack the two actions on top of each other.

wp_ajax_ runs for authenticated users and thus does the conditional check of is_user_logged_in() anyway. wp_ajax_nopriv_ does the same thing, but looks for unauthenticated users.

The actions themselves run the conditions anyway, so you needn’t run it again:

function get_update_clickCount() {
  //your code here
}
add_action( 'wp_ajax_get_update_clickCount', 'get_update_clickCount' );
add_action( 'wp_ajax_nopriv_get_update_clickCount', 'get_update_clickCount' );

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