PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct() #1 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote() #5 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1529): Zend_Db_Adapter_Abstract->quoteInto() #6 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Select.php(1031): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto() #7 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Select.php(496): Zend_Db_Select->_where() #8 /var/www/html/vendor/magento/framework/DB/Select.php(127): Zend_Db_Select->where() #9 /var/www/html/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(382): Magento\Framework\DB\Select->where() #10 /var/www/html/vendor/magento/module-eav/Model/ResourceModel/Entity/Attribute.php(112): Magento\Framework\Model\ResourceModel\Db\AbstractDb->_getLoadSelect() #11 /var/www/html/vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php(269): Magento\Eav\Model\ResourceModel\Entity\Attribute->loadByCode() #12 /var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php(572): Magento\Eav\Model\Entity\Attribute\AbstractAttribute->loadByCode() #13 /var/www/html/vendor/magento/module-eav/Model/Config.php(912): Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->loadByCode() #14 /var/www/html/vendor/magento/module-eav/Model/Config.php(697): Magento\Eav\Model\Config->createAttributeByAttributeCode() #15 /var/www/html/vendor/magento/module-eav/Model/Config.php(563): Magento\Eav\Model\Config->initUserDefinedAttribute() #16 /var/www/html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(426): Magento\Eav\Model\Config->getAttribute() #17 /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(1783): Magento\Eav\Model\Entity\AbstractEntity->getAttribute() #18 /var/www/html/app/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection.php(436): Magento\Catalog\Model\ResourceModel\Product\Collection->addAttributeToSort() #19 /var/www/html/generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php(131): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection->addAttributeToSort() #20 /var/www/html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1571): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->addAttributeToSort() #21 /var/www/html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(927): Magento\Eav\Model\Entity\Collection\AbstractCollection->_renderOrders() #22 /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(833): Magento\Eav\Model\Entity\Collection\AbstractCollection->load() #23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\ResourceModel\Product\Collection->load() #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callParent() #25 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->Magento\Framework\Interception\{closure}() #26 /var/www/html/generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php(302): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callPlugins() #27 /var/www/html/vendor/magento/module-catalog/Block/Product/ListProduct.php(205): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->load() #28 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1110): Magento\Catalog\Block\Product\ListProduct->_beforeToHtml() #29 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #30 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #31 /var/www/html/generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor.php(617): Magento\Framework\View\Element\AbstractBlock->toHtml() #32 /var/www/html/app/code/WeltPixel/GoogleTagManager/Block/Search.php(20): Magento\Catalog\Block\Product\ListProduct\Interceptor->toHtml() #33 [internal function]: WeltPixel\GoogleTagManager\Block\Search->getProductCollection() #34 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(94): call_user_func_array() #35 /var/www/html/app/code/WeltPixel/GoogleTagManager/view/frontend/templates/search.phtml(5): Magento\Framework\View\TemplateEngine\Php->__call() #36 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('/var/www/html/a...') #37 /var/www/html/vendor/magento/framework/View/Element/Template.php(273): Magento\Framework\View\TemplateEngine\Php->render() #38 /var/www/html/vendor/magento/framework/View/Element/Template.php(303): Magento\Framework\View\Element\Template->fetchView() #39 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Magento\Framework\View\Element\Template->_toHtml() #40 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #41 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #42 /var/www/html/app/code/WeltPixel/GoogleTagManager/Helper/Data.php(436): Magento\Framework\View\Element\AbstractBlock->toHtml() #43 /var/www/html/app/code/WeltPixel/GoogleTagManager/Helper/Data.php(340): WeltPixel\GoogleTagManager\Helper\Data->addSearchResultPageInformation() #44 /var/www/html/app/code/WeltPixel/GoogleTagManager/Plugin/ResponseHttp.php(31): WeltPixel\GoogleTagManager\Helper\Data->getDataLayerScript() #45 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): WeltPixel\GoogleTagManager\Plugin\ResponseHttp->beforeSendResponse() #46 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #47 /var/www/html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins() #48 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #49 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode() #50 /var/www/html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle() #51 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException() #52 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent() #53 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #54 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #55 /var/www/html/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #56 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #57 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote() #4 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1529): Zend_Db_Adapter_Abstract->quoteInto() #5 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Select.php(1031): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto() #6 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Select.php(496): Zend_Db_Select->_where() #7 /var/www/html/vendor/magento/framework/DB/Select.php(127): Zend_Db_Select->where() #8 /var/www/html/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(382): Magento\Framework\DB\Select->where() #9 /var/www/html/vendor/magento/module-eav/Model/ResourceModel/Entity/Attribute.php(112): Magento\Framework\Model\ResourceModel\Db\AbstractDb->_getLoadSelect() #10 /var/www/html/vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php(269): Magento\Eav\Model\ResourceModel\Entity\Attribute->loadByCode() #11 /var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php(572): Magento\Eav\Model\Entity\Attribute\AbstractAttribute->loadByCode() #12 /var/www/html/vendor/magento/module-eav/Model/Config.php(912): Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->loadByCode() #13 /var/www/html/vendor/magento/module-eav/Model/Config.php(697): Magento\Eav\Model\Config->createAttributeByAttributeCode() #14 /var/www/html/vendor/magento/module-eav/Model/Config.php(563): Magento\Eav\Model\Config->initUserDefinedAttribute() #15 /var/www/html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(426): Magento\Eav\Model\Config->getAttribute() #16 /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(1783): Magento\Eav\Model\Entity\AbstractEntity->getAttribute() #17 /var/www/html/app/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection.php(436): Magento\Catalog\Model\ResourceModel\Product\Collection->addAttributeToSort() #18 /var/www/html/generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php(131): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection->addAttributeToSort() #19 /var/www/html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1571): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->addAttributeToSort() #20 /var/www/html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(927): Magento\Eav\Model\Entity\Collection\AbstractCollection->_renderOrders() #21 /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(833): Magento\Eav\Model\Entity\Collection\AbstractCollection->load() #22 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\ResourceModel\Product\Collection->load() #23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callParent() #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->Magento\Framework\Interception\{closure}() #25 /var/www/html/generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php(302): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callPlugins() #26 /var/www/html/vendor/magento/module-catalog/Block/Product/ListProduct.php(205): Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->load() #27 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1110): Magento\Catalog\Block\Product\ListProduct->_beforeToHtml() #28 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #29 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #30 /var/www/html/generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor.php(617): Magento\Framework\View\Element\AbstractBlock->toHtml() #31 /var/www/html/app/code/WeltPixel/GoogleTagManager/Block/Search.php(20): Magento\Catalog\Block\Product\ListProduct\Interceptor->toHtml() #32 [internal function]: WeltPixel\GoogleTagManager\Block\Search->getProductCollection() #33 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(94): call_user_func_array() #34 /var/www/html/app/code/WeltPixel/GoogleTagManager/view/frontend/templates/search.phtml(5): Magento\Framework\View\TemplateEngine\Php->__call() #35 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('/var/www/html/a...') #36 /var/www/html/vendor/magento/framework/View/Element/Template.php(273): Magento\Framework\View\TemplateEngine\Php->render() #37 /var/www/html/vendor/magento/framework/View/Element/Template.php(303): Magento\Framework\View\Element\Template->fetchView() #38 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Magento\Framework\View\Element\Template->_toHtml() #39 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #40 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #41 /var/www/html/app/code/WeltPixel/GoogleTagManager/Helper/Data.php(436): Magento\Framework\View\Element\AbstractBlock->toHtml() #42 /var/www/html/app/code/WeltPixel/GoogleTagManager/Helper/Data.php(340): WeltPixel\GoogleTagManager\Helper\Data->addSearchResultPageInformation() #43 /var/www/html/app/code/WeltPixel/GoogleTagManager/Plugin/ResponseHttp.php(31): WeltPixel\GoogleTagManager\Helper\Data->getDataLayerScript() #44 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): WeltPixel\GoogleTagManager\Plugin\ResponseHttp->beforeSendResponse() #45 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #46 /var/www/html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins() #47 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #48 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode() #49 /var/www/html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle() #50 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException() #51 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent() #52 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #53 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #54 /var/www/html/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #55 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #56 {main}