PDOException Object ( [message:protected] => SQLSTATE[HY000] [2002] Connection refused [string:Exception:private] => [code:protected] => 0 [file:protected] => /var/www/agencia/vendor/catfan/medoo/src/Medoo.php [line:protected] => 478 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/agencia/src/app/BancoMedoo.php [line] => 23 [function] => __construct [class] => Medoo\Medoo [type] => -> ) [1] => Array ( [file] => /var/www/agencia/src/app/BancoMedoo.php [line] => 15 [function] => createInstance [class] => app\BancoMedoo [type] => :: ) [2] => Array ( [file] => /var/www/agencia/src/app/BancoPDO.php [line] => 27 [function] => getInstance [class] => app\BancoMedoo [type] => :: ) [3] => Array ( [file] => /var/www/agencia/src/app/BancoPDO.php [line] => 33 [function] => getInstance [class] => app\BancoPDO [type] => :: ) [4] => Array ( [file] => /var/www/agencia/src/model/WP.php [line] => 233 [function] => prepare [class] => app\BancoPDO [type] => :: ) [5] => Array ( [file] => /var/www/agencia/src/controller/BlogController.php [line] => 12 [function] => getPostBySlug [class] => model\WP [type] => :: ) [6] => Array ( [function] => index [class] => controller\BlogController [type] => :: ) [7] => Array ( [file] => /var/www/agencia/src/app/Application.php [line] => 27 [function] => call_user_func_array ) [8] => Array ( [file] => /var/www/agencia/src/app/Application.php [line] => 11 [function] => router [class] => app\Application [type] => :: ) [9] => Array ( [file] => /var/www/agencia/index.php [line] => 13 [function] => configuration [class] => app\Application [type] => :: ) ) [previous:Exception:private] => [errorInfo] => )
Fatal error: Uncaught Error: Call to a member function bindValue() on null in /var/www/agencia/src/model/WP.php:234 Stack trace: #0 /var/www/agencia/src/controller/BlogController.php(12): model\WP::getPostBySlug() #1 [internal function]: controller\BlogController::index() #2 /var/www/agencia/src/app/Application.php(27): call_user_func_array() #3 /var/www/agencia/src/app/Application.php(11): app\Application::router() #4 /var/www/agencia/index.php(13): app\Application::configuration() #5 {main} thrown in /var/www/agencia/src/model/WP.php on line 234