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('preencha-o-form...', 'Preencha o form...')
#13 /var/www/html/vendor/twig/twig/src/Environment.php(420) : eval()'d code(52): Lib\Hooks->{closure:{closure:/var/www/html/site/hooks/view-plugins/traducao.php:5}:6}('preencha-o-form...', 'Preencha o form...')
#14 /var/www/html/vendor/twig/twig/src/Template.php(402): __TwigTemplate_6e330e00a067c0bea1568ae169f9e310->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('contato/ajax.tw...', Array)
#20 /var/www/html/lib/Response.php(102): Lib\View->render('contato/ajax.tw...', Array)
#21 /var/www/html/site/controllers/ContatoController.php(20): Lib\Response->render('contato/ajax.tw...', Array)
#22 [internal function]: Controller\ContatoController::AjaxAction(Object(Lib\Request), Object(Lib\Response))
#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('preencha-o-form...', 'Preencha o form...')
#10 /var/www/html/vendor/twig/twig/src/Environment.php(420) : eval()'d code(52): Lib\Hooks->{closure:{closure:/var/www/html/site/hooks/view-plugins/traducao.php:5}:6}('preencha-o-form...', 'Preencha o form...')
#11 /var/www/html/vendor/twig/twig/src/Template.php(402): __TwigTemplate_6e330e00a067c0bea1568ae169f9e310->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('contato/ajax.tw...', Array)
#17 /var/www/html/lib/Response.php(102): Lib\View->render('contato/ajax.tw...', Array)
#18 /var/www/html/site/controllers/ContatoController.php(20): Lib\Response->render('contato/ajax.tw...', Array)
#19 [internal function]: Controller\ContatoController::AjaxAction(Object(Lib\Request), Object(Lib\Response))
#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 "contato/ajax.twig" at line 4. in /var/www/html/site/views/contato/ajax.twig:4
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('contato/ajax.tw...', Array)
#5 /var/www/html/lib/Response.php(102): Lib\View->render('contato/ajax.tw...', Array)
#6 /var/www/html/site/controllers/ContatoController.php(20): Lib\Response->render('contato/ajax.tw...', Array)
#7 [internal function]: Controller\ContatoController::AjaxAction(Object(Lib\Request), Object(Lib\Response))
#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/contato/ajax.twig on line 4