Hi,
I had a power failure on the server at night and then users were seeing below message:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /home/jassimuser/mybluefile.com/includes/connect2db.php:11 Stack trace: #0 /home/jassimuser/mybluefile.com/includes/connect2db.php(11): PDO->__construct('mysql:host=89.1...', 'root', 'XXXXXXXXX', Array) #1 /home/jassimuser/mybluefile.com/my.php(5): include('/home/jassimuse...') #2 {main} thrown in /home/jassimuser/mybluefile.com/includes/connect2db.php on line 11
How can I prevent this error from shown and show a maintenance page instead?