( ! ) 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 |
# | Time | Memory | Function | Location |
1 | 0.0004 | 410880 | {main}( ) | .../index.php:0 |
2 | 0.0291 | 1895224 | App\Http\Request->execute( ) | .../index.php:40 |
3 | 0.0423 | 3872624 | call_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 |
4 | 0.0423 | 3872720 | App\Http\Controllers\ProductosController->detalleAction( $product_id = 'kj0nekjn6g' ) | .../Request.php:97 |
5 | 0.0428 | 3887024 | App\DataBase\Models\ProductModel->fromId( $id = 89 ) | .../ProductosController.php:58 |
6 | 0.0503 | 4942800 | Illuminate\Database\Query\Builder->first( $columns = ??? ) | .../ProductModel.php:50 |
7 | 0.0503 | 4942800 | Illuminate\Database\Query\Builder->get( $columns = [0 => '*'] ) | .../BuildsQueries.php:77 |
8 | 0.0503 | 4943120 | Illuminate\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 |
9 | 0.0503 | 4943120 | Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure:/home2/poliref/public_html/vendor/illuminate/database/Query/Builder.php:2117-2119}( ) | .../Builder.php:2604 |
10 | 0.0503 | 4943120 | Illuminate\Database\Query\Builder->runSelect( ) | .../Builder.php:2118 |
11 | 0.0521 | 4943944 | Illuminate\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 |
12 | 0.0521 | 4944640 | Illuminate\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 |
13 | 0.0607 | 5048504 | Illuminate\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 |
14 | 0.0607 | 5048504 | Illuminate\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 |