I just saw you’re using ESP_WiFiManager sample code. It’s better to post in a new topic, not in the very old one.
I just create a new topic just to support forum members using ESP_WiFiManager
Please repost your issue there. Many people and I certainly will try to help.