Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/lib/PDOLazyConnector.php:105 Stack trace: #0 /var/www/html/lib/PDOLazyConnector.php(105): PDO->__construct('mysql:host=mysq...', 'staging', Object(SensitiveParameterValue), Array) #1 /var/www/html/lib/PDOLazyConnector.php(37): Lib\PDOLazyConnector->__init_dbh() #2 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php(178): Lib\PDOLazyConnector->__call('prepare', Array) #3 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php(543): RedBeanPHP\Driver\RPDO->runQuery('SELECT `traduca...', Array) #4 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Adapter/DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT `traduca...', Array) #5 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/QueryWriter/AQueryWriter.php(1258): RedBeanPHP\Adapter\DBAdapter->get('SELECT `traduca...', Array) #6 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Repository.php(453): RedBeanPHP\QueryWriter\AQueryWriter->queryRecord('traducao', Array, 'deleted = 0 and...', Array) #7 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/OODB.php(333): RedBeanPHP\Repository->find('traducao', Array, 'deleted = 0 and...', Array) #8 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Finder.php(199): RedBeanPHP\OODB->find('traducao', Array, 'deleted = 0 and...', Array) #9 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(1040): RedBeanPHP\Finder->find('traducao', 'deleted = 0 and...', Array) #10 /var/www/html/lib/I18n.php(27): RedBeanPHP\Facade::find('traducao', 'deleted = 0 and...') #11 /var/www/html/lib/I18n.php(45): Lib\I18n::getI18n() #12 /var/www/html/site/hooks/view-plugins/traducao.php(8): Lib\I18n::get('funcao', 'Fun\xC3\xA7\xC3\xA3o') #13 /var/www/html/vendor/twig/twig/src/Environment.php(420) : eval()'d code(295): Lib\Hooks->{closure:{closure:/var/www/html/site/hooks/view-plugins/traducao.php:5}:6}('funcao', 'Fun\xC3\xA7\xC3\xA3o') #14 /var/www/html/vendor/twig/twig/src/Template.php(402): __TwigTemplate_bdd0e2e4329e970d6133b441faf8ed03->doDisplay(Array, Array) #15 /var/www/html/vendor/twig/twig/src/Template.php(358): Twig\Template->yield(Array, Array) #16 /var/www/html/vendor/twig/twig/src/Template.php(373): Twig\Template->display(Array) #17 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render(Array) #18 /var/www/html/vendor/twig/twig/src/Environment.php(333): Twig\TemplateWrapper->render(Array) #19 /var/www/html/lib/View.php(21): Twig\Environment->render('produto/impress...', Array) #20 /var/www/html/lib/Response.php(102): Lib\View->render('produto/impress...', Array) #21 /var/www/html/site/controllers/ProdutoController.php(129): Lib\Response->render('produto/impress...', Array) #22 [internal function]: Controller\ProdutoController->ImpressaoAction() #23 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array) #24 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array) #25 /var/www/html/lib/Router.php(213): DI\Container->call(Array, Array) #26 [internal function]: Lib\Router->init() #27 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array) #28 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array) #29 /var/www/html/index.php(188): DI\Container->call(Array) #30 {main} Next RedBeanPHP\RedException\SQL: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php:206 Stack trace: #0 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php(543): RedBeanPHP\Driver\RPDO->runQuery('SELECT `traduca...', Array) #1 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Adapter/DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT `traduca...', Array) #2 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/QueryWriter/AQueryWriter.php(1258): RedBeanPHP\Adapter\DBAdapter->get('SELECT `traduca...', Array) #3 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Repository.php(453): RedBeanPHP\QueryWriter\AQueryWriter->queryRecord('traducao', Array, 'deleted = 0 and...', Array) #4 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/OODB.php(333): RedBeanPHP\Repository->find('traducao', Array, 'deleted = 0 and...', Array) #5 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Finder.php(199): RedBeanPHP\OODB->find('traducao', Array, 'deleted = 0 and...', Array) #6 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(1040): RedBeanPHP\Finder->find('traducao', 'deleted = 0 and...', Array) #7 /var/www/html/lib/I18n.php(27): RedBeanPHP\Facade::find('traducao', 'deleted = 0 and...') #8 /var/www/html/lib/I18n.php(45): Lib\I18n::getI18n() #9 /var/www/html/site/hooks/view-plugins/traducao.php(8): Lib\I18n::get('funcao', 'Fun\xC3\xA7\xC3\xA3o') #10 /var/www/html/vendor/twig/twig/src/Environment.php(420) : eval()'d code(295): Lib\Hooks->{closure:{closure:/var/www/html/site/hooks/view-plugins/traducao.php:5}:6}('funcao', 'Fun\xC3\xA7\xC3\xA3o') #11 /var/www/html/vendor/twig/twig/src/Template.php(402): __TwigTemplate_bdd0e2e4329e970d6133b441faf8ed03->doDisplay(Array, Array) #12 /var/www/html/vendor/twig/twig/src/Template.php(358): Twig\Template->yield(Array, Array) #13 /var/www/html/vendor/twig/twig/src/Template.php(373): Twig\Template->display(Array) #14 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render(Array) #15 /var/www/html/vendor/twig/twig/src/Environment.php(333): Twig\TemplateWrapper->render(Array) #16 /var/www/html/lib/View.php(21): Twig\Environment->render('produto/impress...', Array) #17 /var/www/html/lib/Response.php(102): Lib\View->render('produto/impress...', Array) #18 /var/www/html/site/controllers/ProdutoController.php(129): Lib\Response->render('produto/impress...', Array) #19 [internal function]: Controller\ProdutoController->ImpressaoAction() #20 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array) #21 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array) #22 /var/www/html/lib/Router.php(213): DI\Container->call(Array, Array) #23 [internal function]: Lib\Router->init() #24 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array) #25 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array) #26 /var/www/html/index.php(188): DI\Container->call(Array) #27 {main} Next Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("SQLSTATE[HY000] [2002] Connection refused") in "produto/impressao.twig" at line 205. in /var/www/html/site/views/produto/impressao.twig:205 Stack trace: #0 /var/www/html/vendor/twig/twig/src/Template.php(358): Twig\Template->yield(Array, Array) #1 /var/www/html/vendor/twig/twig/src/Template.php(373): Twig\Template->display(Array) #2 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render(Array) #3 /var/www/html/vendor/twig/twig/src/Environment.php(333): Twig\TemplateWrapper->render(Array) #4 /var/www/html/lib/View.php(21): Twig\Environment->render('produto/impress...', Array) #5 /var/www/html/lib/Response.php(102): Lib\View->render('produto/impress...', Array) #6 /var/www/html/site/controllers/ProdutoController.php(129): Lib\Response->render('produto/impress...', Array) #7 [internal function]: Controller\ProdutoController->ImpressaoAction() #8 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array) #9 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array) #10 /var/www/html/lib/Router.php(213): DI\Container->call(Array, Array) #11 [internal function]: Lib\Router->init() #12 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array) #13 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array) #14 /var/www/html/index.php(188): DI\Container->call(Array) #15 {main} thrown in /var/www/html/site/views/produto/impressao.twig on line 205