exception 'DbMysqlException' with message 'SQLSTATE[08004] [1040] Too many connections' in /var/www/lib/DbMysql.php:308 Stack trace: #0 /var/www/lib/DbMysql.php(53): DbMysqlException::createError(Object(PDOException)) #1 /var/www/lib/DbMysql.php(163): DbMysql->connect() #2 /var/www/lib/DbMysql.php(148): DbMysql->selectQuery('SELECT id FROM ...', 0) #3 /var/www/fizzy/classes/discount.php(88): DbMysql->selectSingleRow('SELECT id FROM ...', 0) #4 /var/www/fizzy/classes/shopping_cart.php(96): discount->get_discount(0) #5 /var/www/fizzy/classes/shopping_cart.php(388): shopping_cart->calculate_bulk_discount() #6 /var/www/fizzy/classes/shopping_cart.php(84): shopping_cart->update() #7 /var/www/fizzy/classes/fizzy.php(63): shopping_cart->__construct(Object(DbMysql)) #8 /var/www/fizzy/hooks/pre_hook_setup_fizzy.php(14): fizzy->__construct(Object(DbMysql), Object(Memcached)) #9 /var/www/lib/sfw/Sfw.php(267): pre_hook_setup_fizzy() #10 /var/www/lib/sfw/Sfw.php(132): Sfw->run_pre_hooks() #11 /var/www/fizzy/html/index.php(28): Sfw->process_request() #12 {main}