Erro: getConnection() SQLSTATE[HY000] [2006] MySQL server has gone away
Fatal error: Uncaught Error: Call to a member function query() on null in /home/commerce/public_html/dao/FormapagtoDao.class.php:1082 Stack trace: #0 /home/commerce/public_html/controller/FormapagtoController.class.php(111): FormapagtoDao->listarOnde2('formapagto.loja...') #1 /home/commerce/public_html/mediaplus/controller/Checkoutplus.class.php(4751): FormapagtoController->listarOnde2('formapagto.loja...') #2 /home/commerce/public_html/loja/template/config-init.php(249): Checkoutplus->get_dadospagamento() #3 /home/commerce/public_html/loja/produto.php(6): include('/home/commerce/...') #4 /home/commerce/public_html/index.php(836): require('/home/commerce/...') #5 {main} thrown in /home/commerce/public_html/dao/FormapagtoDao.class.php on line 1082