( ! ) Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home2/poliref/public_html/vendor/illuminate/database/Connection.php on line 664
( ! ) Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) (SQL: select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = 89 and `products`.`state` = 1 limit 1) in /home2/poliref/public_html/vendor/illuminate/database/Connection.php on line 664
Call Stack
#TimeMemoryFunctionLocation
10.0004410880{main}( ).../index.php:0
20.02911895224App\Http\Request->execute( ).../index.php:40
30.04233872624call_user_func_array:{/home2/poliref/public_html/App/Http/Request.php:97}( $function_name = [0 => class App\Http\Controllers\ProductosController { private $rolesAccess = [...]; private $session = class App\DataBase\Models\UserModel { ... }; private $request = class Illuminate\Http\Request { ... }; public $general = class App\DataBase\Models\GeneralModel { ... }; public $shoppingCart = class App\DataBase\Models\ShoppingCartModel { ... }; public object $category = class App\DataBase\Models\CategoryModel { ... }; public object $brand = class App\DataBase\Models\BrandModel { ... }; public object $image = class App\DataBase\Models\ProductImageModel { ... }; public $hashids = class Hashids\Hashids { ... }; public $recaptcha = class ReCaptcha\ReCaptcha { ... }; protected $manager = class Illuminate\Database\DatabaseManager { ... }; protected $container = class Illuminate\Container\Container { ... } }, 1 => 'detalleAction'], $parameters = [0 => 'kj0nekjn6g'] ).../Request.php:97
40.04233872720App\Http\Controllers\ProductosController->detalleAction( $product_id = 'kj0nekjn6g' ).../Request.php:97
50.04283887024App\DataBase\Models\ProductModel->fromId( $id = 89 ).../ProductosController.php:58
60.05034942800Illuminate\Database\Query\Builder->first( $columns = ??? ).../ProductModel.php:50
70.05034942800Illuminate\Database\Query\Builder->get( $columns = [0 => '*'] ).../BuildsQueries.php:77
80.05034943120Illuminate\Database\Query\Builder->onceWithColumns( $columns = [0 => '*'], $callback = class Closure { virtual $closure = "$this->Illuminate\Database\Query\{closure}", public $this = class Illuminate\Database\Query\Builder { public $connection = class Illuminate\Database\MySqlConnection { ... }; public $grammar = class Illuminate\Database\Query\Grammars\MySqlGrammar { ... }; public $processor = class Illuminate\Database\Query\Processors\MySqlProcessor { ... }; public $bindings = [...]; public $aggregate = NULL; public $columns = [...]; public $distinct = FALSE; public $from = 'products'; public $joins = [...]; public $wheres = [...]; public $groups = NULL; public $havings = NULL; public $orders = NULL; public $limit = 1; public $offset = NULL; public $unions = NULL; public $unionLimit = NULL; public $unionOffset = NULL; public $unionOrders = NULL; public $lock = NULL; public $operators = [...]; public $useWritePdo = FALSE } } ).../Builder.php:2119
90.05034943120Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure:/home2/poliref/public_html/vendor/illuminate/database/Query/Builder.php:2117-2119}( ).../Builder.php:2604
100.05034943120Illuminate\Database\Query\Builder->runSelect( ).../Builder.php:2118
110.05214943944Illuminate\Database\Connection->select( $query = 'select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = ? and `products`.`state` = ? limit 1', $bindings = [0 => 89, 1 => TRUE], $useReadPdo = TRUE ).../Builder.php:2130
120.05214944640Illuminate\Database\Connection->run( $query = 'select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = ? and `products`.`state` = ? limit 1', $bindings = [0 => 89, 1 => TRUE], $callback = class Closure { virtual $closure = "$this->Illuminate\Database\{closure}", public $static = ['useReadPdo' => TRUE]; public $this = class Illuminate\Database\MySqlConnection { protected $pdo = class Closure { virtual $closure = "$this->Illuminate\Database\Connectors\{closure}", ... }; protected $readPdo = NULL; protected $database = 'poliref_web'; protected $tablePrefix = ''; protected $config = [...]; protected $reconnector = class Closure { virtual $closure = "$this->Illuminate\Database\{closure}", ... }; protected $queryGrammar = class Illuminate\Database\Query\Grammars\MySqlGrammar { ... }; protected $schemaGrammar = NULL; protected $postProcessor = class Illuminate\Database\Query\Processors\MySqlProcessor { ... }; protected $events = class Illuminate\Events\Dispatcher { ... }; protected $fetchMode = 5; protected $transactions = 0; protected $recordsModified = FALSE; protected $queryLog = [...]; protected $loggingQueries = FALSE; protected $pretending = FALSE; protected $doctrineConnection = NULL }; public $parameter = ['$query' => '<required>', '$bindings' => '<required>'] } ).../Connection.php:333
130.06075048504Illuminate\Database\Connection->handleQueryException( $e = class Illuminate\Database\QueryException { protected $sql = 'select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = ? and `products`.`state` = ? limit 1'; protected $bindings = [0 => 89, 1 => 1]; protected $message = 'SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111) (SQL: select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = 89 and `products`.`state` = 1 limit 1)'; private ${Exception}string = ''; protected $code = 2002; protected $file = '/home2/poliref/public_html/vendor/illuminate/database/Connection.php'; protected $line = 664; private ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...]]; private ${Exception}previous = class PDOException { protected $message = 'SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111)'; private ${Exception}string = ''; protected $code = 2002; protected $file = '/home2/poliref/public_html/vendor/illuminate/database/Connectors/Connector.php'; protected $line = 70; private ${Exception}trace = [...]; private ${Exception}previous = NULL; public $errorInfo = [...]; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> PDOException: SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111) in /home2/poliref/public_html/vendor/illuminate/database/Connectors/Connector.php on line <i>70</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgc'... }; public $errorInfo = [0 => 'HY000', 1 => 2002, 2 => 'Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111)']; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Illuminate\\Database\\QueryException: SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111) (SQL: select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `ca'... }, $query = 'select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = ? and `products`.`state` = ? limit 1', $bindings = [0 => 89, 1 => TRUE], $callback = class Closure { virtual $closure = "$this->Illuminate\Database\{closure}", public $static = ['useReadPdo' => TRUE]; public $this = class Illuminate\Database\MySqlConnection { protected $pdo = class Closure { virtual $closure = "$this->Illuminate\Database\Connectors\{closure}", ... }; protected $readPdo = NULL; protected $database = 'poliref_web'; protected $tablePrefix = ''; protected $config = [...]; protected $reconnector = class Closure { virtual $closure = "$this->Illuminate\Database\{closure}", ... }; protected $queryGrammar = class Illuminate\Database\Query\Grammars\MySqlGrammar { ... }; protected $schemaGrammar = NULL; protected $postProcessor = class Illuminate\Database\Query\Processors\MySqlProcessor { ... }; protected $events = class Illuminate\Events\Dispatcher { ... }; protected $fetchMode = 5; protected $transactions = 0; protected $recordsModified = FALSE; protected $queryLog = [...]; protected $loggingQueries = FALSE; protected $pretending = FALSE; protected $doctrineConnection = NULL }; public $parameter = ['$query' => '<required>', '$bindings' => '<required>'] } ).../Connection.php:627
140.06075048504Illuminate\Database\Connection->tryAgainIfCausedByLostConnection( $e = class Illuminate\Database\QueryException { protected $sql = 'select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = ? and `products`.`state` = ? limit 1'; protected $bindings = [0 => 89, 1 => 1]; protected $message = 'SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111) (SQL: select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = 89 and `products`.`state` = 1 limit 1)'; private ${Exception}string = ''; protected $code = 2002; protected $file = '/home2/poliref/public_html/vendor/illuminate/database/Connection.php'; protected $line = 664; private ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...]]; private ${Exception}previous = class PDOException { protected $message = 'SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111)'; private ${Exception}string = ''; protected $code = 2002; protected $file = '/home2/poliref/public_html/vendor/illuminate/database/Connectors/Connector.php'; protected $line = 70; private ${Exception}trace = [...]; private ${Exception}previous = NULL; public $errorInfo = [...]; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> PDOException: SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111) in /home2/poliref/public_html/vendor/illuminate/database/Connectors/Connector.php on line <i>70</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgc'... }; public $errorInfo = [0 => 'HY000', 1 => 2002, 2 => 'Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111)']; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Illuminate\\Database\\QueryException: SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111) (SQL: select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `ca'... }, $query = 'select `products`.*, `categories`.`name` as `category_name`, `categories`.`father_id` as `category_father_id`, `categories`.`url` as `category_url`, `brands`.`name` as `brand` from `products` left join `categories` on `categories`.`id` = `products`.`category_id` left join `brands` on `brands`.`id` = `products`.`brand_id` where `products`.`id` = ? and `products`.`state` = ? limit 1', $bindings = [0 => 89, 1 => TRUE], $callback = class Closure { virtual $closure = "$this->Illuminate\Database\{closure}", public $static = ['useReadPdo' => TRUE]; public $this = class Illuminate\Database\MySqlConnection { protected $pdo = class Closure { virtual $closure = "$this->Illuminate\Database\Connectors\{closure}", ... }; protected $readPdo = NULL; protected $database = 'poliref_web'; protected $tablePrefix = ''; protected $config = [...]; protected $reconnector = class Closure { virtual $closure = "$this->Illuminate\Database\{closure}", ... }; protected $queryGrammar = class Illuminate\Database\Query\Grammars\MySqlGrammar { ... }; protected $schemaGrammar = NULL; protected $postProcessor = class Illuminate\Database\Query\Processors\MySqlProcessor { ... }; protected $events = class Illuminate\Events\Dispatcher { ... }; protected $fetchMode = 5; protected $transactions = 0; protected $recordsModified = FALSE; protected $queryLog = [...]; protected $loggingQueries = FALSE; protected $pretending = FALSE; protected $doctrineConnection = NULL }; public $parameter = ['$query' => '<required>', '$bindings' => '<required>'] } ).../Connection.php:718