I can see the errors; probably the server needed to heat up on your side.
Seems like there is a problem with name resolution for the database servers, as there is no record for almost any of them on InfinityFree’s domain. It used to work before that because for name resolutions they used to use Byet’s DNS servers; can you try to use sql305.byetcluster.com as host instead and see if it works?
For any others having this issue: replace 305 with the database server number.
EDIT: If anyone else is having that issue, that is also explained in this outage topic:
Just checked again and there is definitely this error:
mysqli::__construct(): php_network_getaddresses: getaddrinfo for sql305.infinityfree.com failed: Name or service not known in **/home/vol11_1/epizy.com/epiz_32472215/bluewinds.rf.gd/htdocs/classes/DatabaseConnection.php** on line **16**
Considering the fact that code is unchanged since weeks and the errors randomly keep changing on their own, I would assume this is part of server upgrade. Will wait a day or two. Since there is absolutely nothing wrong on my side.
To collect logs for you, I tried to reconnect and it worked this time, weird.
Anyways, I updated the code and it works when using sql305.byetcluster.com
So is it the official server name instead of sql305.infinityfree.com or is it a cheap temporary workaround?
Which one to consider now? And why it suddenly changed?