Do you have other problems with your phone not working? Such as poor or no updates in the Apple weather app or no searching update in the Apple store?
Are these problems occurring ONLY on wi-fi? Are the problems resolving when on the phone's provider network? (NOT WI-FI) Do you use multiple wi-fi networks. You might need to reset the wi-fi network settings on your device.
Start at your "home" network, be logged in and clear that setting, forget the network. Then re-install the settings and see if that does it. You may need to reset other locations you use if the problem reoccurs on a separate or different network from your "home" location. Good luck.