Sm-g800f unable to charge


Good day
good people can anyone help me with solution to s5 mini sm-g800f
when pug charger it shows temperature sign…..and when switched on it says unable charge please use samsung original charger …..
I have change the charging flex but it couldn’t solve the problem