PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/stag/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/stag/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct() #1 /var/www/stag/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/stag/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/stag/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(589): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/stag/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(627): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #5 /var/www/stag/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(95): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #6 /var/www/stag/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(756): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query() #7 /var/www/stag/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1094): Zend_Db_Adapter_Abstract->fetchRow() #8 /var/www/stag/public_html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(997): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->fetchRow() #9 /var/www/stag/public_html/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(356): Magento\Eav\Model\Entity\AbstractEntity->load() #10 /var/www/stag/public_html/vendor/magento/framework/Model/AbstractModel.php(540): Magento\Customer\Model\ResourceModel\Customer\Interceptor->load() #11 /var/www/stag/public_html/generated/code/Magento/Customer/Model/Customer/Interceptor.php(734): Magento\Framework\Model\AbstractModel->load() #12 /var/www/stag/public_html/vendor/magento/module-customer/Model/CustomerRegistry.php(81): Magento\Customer\Model\Customer\Interceptor->load() #13 /var/www/stag/public_html/vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php(385): Magento\Customer\Model\CustomerRegistry->retrieve() #14 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\ResourceModel\CustomerRepository->getById() #15 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callParent() #16 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->Magento\Framework\Interception\{closure}() #17 /var/www/stag/public_html/generated/code/Magento/Customer/Model/ResourceModel/CustomerRepository/Interceptor.php(41): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callPlugins() #18 /var/www/stag/public_html/app/code/CompactCode/CustomerPriceDisplay/Helper/PriceDisplay.php(49): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->getById() #19 /var/www/stag/public_html/app/code/CompactCode/CustomerPriceDisplay/Helper/PriceDisplay.php(57): CompactCode\CustomerPriceDisplay\Helper\PriceDisplay->getCustomer() #20 /var/www/stag/public_html/app/code/CompactCode/CustomerPriceDisplay/Plugin/App/Http/Context.php(39): CompactCode\CustomerPriceDisplay\Helper\PriceDisplay->getCalculatePriceDisplay() #21 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(121): CompactCode\CustomerPriceDisplay\Plugin\App\Http\Context->beforeGetVaryString() #22 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #23 /var/www/stag/public_html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(59): Magento\Framework\App\Http\Context\Interceptor->___callPlugins() #24 /var/www/stag/public_html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #25 /var/www/stag/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(32): Magento\Framework\App\Response\Http->sendVary() #26 /var/www/stag/public_html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(29): Magento\Framework\App\Response\Http\Interceptor->sendVary() #27 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse() #28 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #29 /var/www/stag/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins() #30 /var/www/stag/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #31 /var/www/stag/public_html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode() #32 /var/www/stag/public_html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle() #33 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException() #34 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent() #35 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #36 /var/www/stag/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #37 /var/www/stag/public_html/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #38 /var/www/stag/public_html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #39 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/stag/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/stag/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/stag/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/stag/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(589): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/stag/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(627): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #4 /var/www/stag/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(95): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #5 /var/www/stag/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(756): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query() #6 /var/www/stag/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1094): Zend_Db_Adapter_Abstract->fetchRow() #7 /var/www/stag/public_html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(997): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->fetchRow() #8 /var/www/stag/public_html/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(356): Magento\Eav\Model\Entity\AbstractEntity->load() #9 /var/www/stag/public_html/vendor/magento/framework/Model/AbstractModel.php(540): Magento\Customer\Model\ResourceModel\Customer\Interceptor->load() #10 /var/www/stag/public_html/generated/code/Magento/Customer/Model/Customer/Interceptor.php(734): Magento\Framework\Model\AbstractModel->load() #11 /var/www/stag/public_html/vendor/magento/module-customer/Model/CustomerRegistry.php(81): Magento\Customer\Model\Customer\Interceptor->load() #12 /var/www/stag/public_html/vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php(385): Magento\Customer\Model\CustomerRegistry->retrieve() #13 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\ResourceModel\CustomerRepository->getById() #14 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callParent() #15 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->Magento\Framework\Interception\{closure}() #16 /var/www/stag/public_html/generated/code/Magento/Customer/Model/ResourceModel/CustomerRepository/Interceptor.php(41): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callPlugins() #17 /var/www/stag/public_html/app/code/CompactCode/CustomerPriceDisplay/Helper/PriceDisplay.php(49): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->getById() #18 /var/www/stag/public_html/app/code/CompactCode/CustomerPriceDisplay/Helper/PriceDisplay.php(57): CompactCode\CustomerPriceDisplay\Helper\PriceDisplay->getCustomer() #19 /var/www/stag/public_html/app/code/CompactCode/CustomerPriceDisplay/Plugin/App/Http/Context.php(39): CompactCode\CustomerPriceDisplay\Helper\PriceDisplay->getCalculatePriceDisplay() #20 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(121): CompactCode\CustomerPriceDisplay\Plugin\App\Http\Context->beforeGetVaryString() #21 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #22 /var/www/stag/public_html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(59): Magento\Framework\App\Http\Context\Interceptor->___callPlugins() #23 /var/www/stag/public_html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #24 /var/www/stag/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(32): Magento\Framework\App\Response\Http->sendVary() #25 /var/www/stag/public_html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(29): Magento\Framework\App\Response\Http\Interceptor->sendVary() #26 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse() #27 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #28 /var/www/stag/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins() #29 /var/www/stag/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #30 /var/www/stag/public_html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode() #31 /var/www/stag/public_html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle() #32 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException() #33 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent() #34 /var/www/stag/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #35 /var/www/stag/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #36 /var/www/stag/public_html/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #37 /var/www/stag/public_html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #38 {main}