Even I am facing the same issue. The phone gets switched off whenver I connect to the charger
I have the same problem - plugging the charger in causes the phone to switch off without warning and getting it to come back on is hit and miss. This occurs whether the battery is fully charged or not. Leaving it for 5-10 minutes and it switches back on.