2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`asgardsss_production_24`.`mageplaza_productattachments_log`, CONSTRAINT `MAGEPLAZA_PRDATTACHMENTS_LOG_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entit), query was: INSERT INTO `mageplaza_productattachments_log` (`file_id`, `customer_id`, `product_id`, `file_action`, `store_id`, `customer_group`, `created_at`) VALUES (?, ?, ?, ?, ?, ?, '2024-03-28 22:24:17') Exception #1 (PDOException): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`asgardsss_production_24`.`mageplaza_productattachments_log`, CONSTRAINT `MAGEPLAZA_PRDATTACHMENTS_LOG_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entit) Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`asgardsss_production_24`.`mageplaza_productattachments_log`, CONSTRAINT `MAGEPLAZA_PRDATTACHMENTS_LOG_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entit), query was: INSERT INTO `mageplaza_productattachments_log` (`file_id`, `customer_id`, `product_id`, `file_action`, `store_id`, `customer_group`, `created_at`) VALUES (?, ?, ?, ?, ?, ?, '2024-03-28 22:24:17')
#1 Magento\Framework\DB\Statement\Pdo\Mysql->_execute() called at [vendor/magento/zendframework1/library/Zend/Db/Statement.php:303] #2 Zend_Db_Statement->execute() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:480] #3 Zend_Db_Adapter_Abstract->query() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:238] #4 Zend_Db_Adapter_Pdo_Abstract->query() called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:560] #5 Magento\Framework\DB\Adapter\Pdo\Mysql->_query() called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:627] #6 Magento\Framework\DB\Adapter\Pdo\Mysql->query() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:576] #7 Zend_Db_Adapter_Abstract->insert() called at [vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php:781] #8 Magento\Framework\Model\ResourceModel\Db\AbstractDb->saveNewObject() called at [vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php:421] #9 Magento\Framework\Model\ResourceModel\Db\AbstractDb->save() called at [vendor/magento/framework/Model/AbstractModel.php:655] #10 Magento\Framework\Model\AbstractModel->save() called at [vendor/mageplaza/module-product-attachments/Controller/File/ViewOnline.php:171] #11 Mageplaza\ProductAttachments\Controller\File\ViewOnline->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58] #12 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #13 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #14 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callPlugins() called at [generated/code/Mageplaza/ProductAttachments/Controller/File/ViewOnline/Interceptor.php:23] #15 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111] #16 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #17 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #18 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #19 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callPlugins() called at [generated/code/Mageplaza/ProductAttachments/Controller/File/ViewOnline/Interceptor.php:32] #20 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245] #21 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212] #22 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:147] #23 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #24 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #25 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99] #26 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135] #27 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:75] #28 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135] #29 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #30 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23] #31 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116] #32 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #33 Magento\Framework\App\Http\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #34 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #35 Magento\Framework\App\Http\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23] #36 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264] #37 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]Exception #1 (PDOException): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`asgardsss_production_24`.`mageplaza_productattachments_log`, CONSTRAINT `MAGEPLAZA_PRDATTACHMENTS_LOG_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entit)
#1 Magento\Framework\DB\Statement\Pdo\Mysql->Magento\Framework\DB\Statement\Pdo\{closure}() called at [vendor/magento/framework/DB/Statement/Pdo/Mysql.php:107] #2 Magento\Framework\DB\Statement\Pdo\Mysql->tryExecute() called at [vendor/magento/framework/DB/Statement/Pdo/Mysql.php:92] #3 Magento\Framework\DB\Statement\Pdo\Mysql->_execute() called at [vendor/magento/zendframework1/library/Zend/Db/Statement.php:303] #4 Zend_Db_Statement->execute() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:480] #5 Zend_Db_Adapter_Abstract->query() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:238] #6 Zend_Db_Adapter_Pdo_Abstract->query() called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:560] #7 Magento\Framework\DB\Adapter\Pdo\Mysql->_query() called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:627] #8 Magento\Framework\DB\Adapter\Pdo\Mysql->query() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:576] #9 Zend_Db_Adapter_Abstract->insert() called at [vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php:781] #10 Magento\Framework\Model\ResourceModel\Db\AbstractDb->saveNewObject() called at [vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php:421] #11 Magento\Framework\Model\ResourceModel\Db\AbstractDb->save() called at [vendor/magento/framework/Model/AbstractModel.php:655] #12 Magento\Framework\Model\AbstractModel->save() called at [vendor/mageplaza/module-product-attachments/Controller/File/ViewOnline.php:171] #13 Mageplaza\ProductAttachments\Controller\File\ViewOnline->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58] #14 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #15 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #16 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callPlugins() called at [generated/code/Mageplaza/ProductAttachments/Controller/File/ViewOnline/Interceptor.php:23] #17 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111] #18 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #19 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #20 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #21 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->___callPlugins() called at [generated/code/Mageplaza/ProductAttachments/Controller/File/ViewOnline/Interceptor.php:32] #22 Mageplaza\ProductAttachments\Controller\File\ViewOnline\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245] #23 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212] #24 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:147] #25 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #26 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #27 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99] #28 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135] #29 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:75] #30 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135] #31 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #32 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23] #33 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116] #34 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #35 Magento\Framework\App\Http\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #36 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #37 Magento\Framework\App\Http\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23] #38 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264] #39 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]