If your PS4 controller has a charging port, you can fix it by using a household outlet and an extension cord. The outlet should be close to the controller, and the cord should be long enough to reach both ends. Plug the power cord into the outlet and plug the controller into the other end of the cord. Turn on your PS4 and wait for it to charge. Once it’s charged, you can use your controller again.