Why is PS4 controller charging when not plugged in?

Solution 1:

Try to reset the controller. Get a paperclip or something like that and insert its tip into the reset hole behind the controller. Press and hold the tiny reset button with the tip and try repairing the gamepad with the console.