^ Zend_Db_Statement_Exception {#116
-_previous: null
#message: "SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress"
#code: 8
#file: "/var/www/html/demasledweb/library/Zend/Db/Statement/Pdo.php"
#line: 234
-previous: PDOException {#142
#message: "SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress"
#code: "08S01"
#file: "/var/www/html/demasledweb/library/Zend/Db/Statement/Pdo.php"
#line: 228
+errorInfo: array:3 [
0 => "08S01"
1 => 1053
2 => "Server shutdown in progress"
]
trace: {
/var/www/html/demasledweb/library/Zend/Db/Statement/Pdo.php:228 {
Zend_Db_Statement_Pdo->_execute(array $params = null) …
› if ($params !== null) {
› return $this->_stmt->execute($params);
› } else {
arguments: {
$bound_input_params: []
}
}
/var/www/html/demasledweb/library/Zend/Db/Statement.php:300 {
Zend_Db_Statement->execute(array $params = null) …
› if ($this->_queryId === null) {
› return $this->_execute($params);
› }
arguments: {
$params: []
}
}
/var/www/html/demasledweb/library/Zend/Db/Adapter/Abstract.php:480 {
Zend_Db_Adapter_Abstract->query($sql, $bind = []) …
› $stmt = $this->prepare($sql);
› $stmt->execute($bind);
›
arguments: {
$params: []
}
}
/var/www/html/demasledweb/library/Zend/Db/Adapter/Pdo/Abstract.php:238 {
Zend_Db_Adapter_Pdo_Abstract->query($sql, $bind = []) …
› try {
› return parent::query($sql, $bind);
› } catch (PDOException $e) {
arguments: {
$sql: "SELECT `dp`.`porcentaje`, `dp`.`monto`, `dp`.`fecha_inicio`, `dp`.`fecha_fin` FROM `descuentos_producto` AS `dp` WHERE (id_producto=3793 AND dp.activo = 1 AND CURDATE() BETWEEN dp.fecha_inicio AND dp.fecha_fin and dp.id_cliente is null and dp.idcategoria_cliente is null)"
$bind: []
}
}
/var/www/html/demasledweb/library/Zend/Db/Adapter/Abstract.php:757 {
Zend_Db_Adapter_Abstract->fetchRow($sql, $bind = [], $fetchMode = null) …
› }
› $stmt = $this->query($sql, $bind);
› $result = $stmt->fetch($fetchMode);
arguments: {
$sql: Zend_Db_Select {#169 …}
$bind: []
}
}
/var/www/html/demasledweb/application/demasled/models/ProductoMapper.php:386 {
ProductoMapper->getDescuentoProducto($idproducto, $idcliente, $idcategoria_cliente, $precio) …
›
› $des_producto = $this->getDbTable()->getAdapter()->fetchRow($des_producto_query);
›
arguments: {
$sql: Zend_Db_Select {#169 …}
}
}
/var/www/html/demasledweb/application/demasled/controllers/CategoriaController.php:159 {
CategoriaController->indexAction() …
› $precio = !empty($precio_cliente) ? $precio_cliente[0]['precio'] : $this->view->productos[$key]['precio_general'];
› $descuento = $productoMapper->getDescuentoProducto($this->view->productos[$key]['id'], $this->view->user->id, $this->view->user->idcategoria_cliente, $precio);
›
arguments: {
$idproducto: "3793"
$idcliente: null
$idcategoria_cliente: null
$precio: "28.92"
}
}
/var/www/html/demasledweb/library/Zend/Controller/Action.php:513 {
Zend_Controller_Action->dispatch($action) …
› }
› $this->$action();
› } else {
}
/var/www/html/demasledweb/library/Zend/Controller/Dispatcher/Standard.php:295 {
Zend_Controller_Dispatcher_Standard->dispatch(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response) …
› try {
› $controller->dispatch($action);
› } catch (Exception $e) {
arguments: {
$action: "indexAction"
}
}
/var/www/html/demasledweb/library/Zend/Controller/Front.php:954 {
Zend_Controller_Front->dispatch(Zend_Controller_Request_Abstract $request = null, Zend_Controller_Response_Abstract $response = null) …
› try {
› $dispatcher->dispatch($this->_request, $this->_response);
› } catch (Exception $e) {
arguments: {
$request: Zend_Controller_Request_Http {#68 …}
$response: Zend_Controller_Response_Http {#89 …}
}
}
/var/www/html/demasledweb/library/Zend/Application/Bootstrap/Bootstrap.php:97 {
Zend_Application_Bootstrap_Bootstrap->run() …
› $front->setParam('bootstrap', $this);
› $response = $front->dispatch();
› if ($front->returnResponse()) {
}
/var/www/html/demasledweb/library/Zend/Application.php:366 {
Zend_Application->run() …
› {
› $this->getBootstrap()->run();
› }
}
/var/www/html/demasledweb/index.php:189 {
› $application->bootstrap()
› ->run();
›
}
}
}
trace: {
/var/www/html/demasledweb/library/Zend/Db/Statement/Pdo.php:234 {
Zend_Db_Statement_Pdo->_execute(array $params = null) …
› require_once 'Zend/Db/Statement/Exception.php';
› throw new Zend_Db_Statement_Exception($e->getMessage(), (int) $e->getCode(), $e);
› }
}
/var/www/html/demasledweb/library/Zend/Db/Statement.php:300 {
Zend_Db_Statement->execute(array $params = null) …
› if ($this->_queryId === null) {
› return $this->_execute($params);
› }
arguments: {
$params: []
}
}
/var/www/html/demasledweb/library/Zend/Db/Adapter/Abstract.php:480 {
Zend_Db_Adapter_Abstract->query($sql, $bind = []) …
› $stmt = $this->prepare($sql);
› $stmt->execute($bind);
›
arguments: {
$params: []
}
}
/var/www/html/demasledweb/library/Zend/Db/Adapter/Pdo/Abstract.php:238 {
Zend_Db_Adapter_Pdo_Abstract->query($sql, $bind = []) …
› try {
› return parent::query($sql, $bind);
› } catch (PDOException $e) {
arguments: {
$sql: "SELECT `dp`.`porcentaje`, `dp`.`monto`, `dp`.`fecha_inicio`, `dp`.`fecha_fin` FROM `descuentos_producto` AS `dp` WHERE (id_producto=3793 AND dp.activo = 1 AND CURDATE() BETWEEN dp.fecha_inicio AND dp.fecha_fin and dp.id_cliente is null and dp.idcategoria_cliente is null)"
$bind: []
}
}
/var/www/html/demasledweb/library/Zend/Db/Adapter/Abstract.php:757 {
Zend_Db_Adapter_Abstract->fetchRow($sql, $bind = [], $fetchMode = null) …
› }
› $stmt = $this->query($sql, $bind);
› $result = $stmt->fetch($fetchMode);
arguments: {
$sql: Zend_Db_Select {#169 …}
$bind: []
}
}
/var/www/html/demasledweb/application/demasled/models/ProductoMapper.php:386 {
ProductoMapper->getDescuentoProducto($idproducto, $idcliente, $idcategoria_cliente, $precio) …
›
› $des_producto = $this->getDbTable()->getAdapter()->fetchRow($des_producto_query);
›
arguments: {
$sql: Zend_Db_Select {#169 …}
}
}
/var/www/html/demasledweb/application/demasled/controllers/CategoriaController.php:159 {
CategoriaController->indexAction() …
› $precio = !empty($precio_cliente) ? $precio_cliente[0]['precio'] : $this->view->productos[$key]['precio_general'];
› $descuento = $productoMapper->getDescuentoProducto($this->view->productos[$key]['id'], $this->view->user->id, $this->view->user->idcategoria_cliente, $precio);
›
arguments: {
$idproducto: "3793"
$idcliente: null
$idcategoria_cliente: null
$precio: "28.92"
}
}
/var/www/html/demasledweb/library/Zend/Controller/Action.php:513 {
Zend_Controller_Action->dispatch($action) …
› }
› $this->$action();
› } else {
}
/var/www/html/demasledweb/library/Zend/Controller/Dispatcher/Standard.php:295 {
Zend_Controller_Dispatcher_Standard->dispatch(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response) …
› try {
› $controller->dispatch($action);
› } catch (Exception $e) {
arguments: {
$action: "indexAction"
}
}
/var/www/html/demasledweb/library/Zend/Controller/Front.php:954 {
Zend_Controller_Front->dispatch(Zend_Controller_Request_Abstract $request = null, Zend_Controller_Response_Abstract $response = null) …
› try {
› $dispatcher->dispatch($this->_request, $this->_response);
› } catch (Exception $e) {
arguments: {
$request: Zend_Controller_Request_Http {#68 …}
$response: Zend_Controller_Response_Http {#89 …}
}
}
/var/www/html/demasledweb/library/Zend/Application/Bootstrap/Bootstrap.php:97 {
Zend_Application_Bootstrap_Bootstrap->run() …
› $front->setParam('bootstrap', $this);
› $response = $front->dispatch();
› if ($front->returnResponse()) {
}
/var/www/html/demasledweb/library/Zend/Application.php:366 {
Zend_Application->run() …
› {
› $this->getBootstrap()->run();
› }
}
/var/www/html/demasledweb/index.php:189 {
› $application->bootstrap()
› ->run();
›
}
}
}