Thanks for your advice.
Brought it to a repair shop just now. Hope they will fix it.
Upgrading isn't the problem. Already got me a new phone. Hope to sell it when it works!
Re: HTC One m8 won't charge
To fill in on my problem.
I found out that when I do not fully insert the plug into the micro usb port it charges for 5 ~ 6 seconds.