Unable to connect to database: SQLSTATE[HY000] [2002] Connection refused
Warning: Invalid argument supplied for foreach() in /home/amirite/amirite/app/amirite.php on line 1321

Fatal error: Uncaught exception 'Exception' with message 'Database instance default has not been initialized.' in /home/amirite/amirite/app/Amirite/Database.php:49 Stack trace: #0 /home/amirite/amirite/app/posts.php(988): Amirite\Database::getInstance() #1 /home/amirite/amirite/app/amirite.php(1560): posts::getWhoVotedOnAPost('721371') #2 /home/amirite/amirite/app/amirite.php(317): amirite->preparePostToReturn(Array, Array) #3 /home/amirite/amirite/sites/amiritesite.php(179): amirite->getPosts(Array) #4 /home/amirite/amirite/www/post.php(18): amiritesite->getPosts(Array) #5 {main} thrown in /home/amirite/amirite/app/Amirite/Database.php on line 49