Как исправить эту проблему в magento 2 apptha marketplace и добавить новую опцию? - PullRequest
0 голосов
/ 14 мая 2019

Я пытаюсь добавить новый пользовательский параметр в продукт продавца на торговой площадке Apptha.Когда я сохраняю продукт,

я получаю ошибку ниже:

{"0":"No such entity.","1":"#0 \/var\/www\/html\/beautyshop\/vendor\/magento\/module-catalog\/Model\/Product\/Option\/SaveHandler.php(57): Magento\\Catalog\\Model\\Product\\Option\\Repository->save(Object(Magento\\Catalog\\Model\\Product\\Option))\n#1 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/EntityManager\/Operation\/Update\/UpdateExtensions.php(49): Magento\\Catalog\\Model\\Product\\Option\\SaveHandler->execute(Object(Magento\\Catalog\\Model\\Product\\Interceptor), Array)\n#2 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/EntityManager\/Operation\/Update.php(109): Magento\\Framework\\EntityManager\\Operation\\Update\\UpdateExtensions->execute(Object(Magento\\Catalog\\Model\\Product\\Interceptor), Array)\n#3 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/EntityManager\/EntityManager.php(96): Magento\\Framework\\EntityManager\\Operation\\Update->execute(Object(Magento\\Catalog\\Model\\Product\\Interceptor), Array)\n#4 \/var\/www\/html\/beautyshop\/vendor\/magento\/module-catalog\/Model\/ResourceModel\/Product.php(626): Magento\\Framework\\EntityManager\\EntityManager->save(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#5 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Catalog\\Model\\ResourceModel\\Product->save(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#6 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor->___callParent('save', Array)\n#7 \/var\/www\/html\/beautyshop\/vendor\/magento\/module-catalog-search\/Model\/Indexer\/Fulltext\/Plugin\/Product.php(51): Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#8 \/var\/www\/html\/beautyshop\/vendor\/magento\/module-catalog-search\/Model\/Indexer\/Fulltext\/Plugin\/Product.php(24): Magento\\CatalogSearch\\Model\\Indexer\\Fulltext\\Plugin\\Product->addCommitCallback(Object(Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor), Object(Closure), Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#9 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\CatalogSearch\\Model\\Indexer\\Fulltext\\Plugin\\Product->aroundSave(Object(Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor), Object(Closure), Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#10 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/App\/Cache\/FlushCacheByTags.php(68): Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#11 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\Framework\\App\\Cache\\FlushCacheByTags->aroundSave(Object(Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor), Object(Closure), Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#12 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#13 \/var\/www\/html\/beautyshop\/generated\/code\/Magento\/Catalog\/Model\/ResourceModel\/Product\/Interceptor.php(273): Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor->___callPlugins('save', Array, NULL)\n#14 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Model\/AbstractModel.php(647): Magento\\Catalog\\Model\\ResourceModel\\Product\\Interceptor->save(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#15 \/var\/www\/html\/beautyshop\/generated\/code\/Magento\/Catalog\/Model\/Product\/Interceptor.php(2442): Magento\\Framework\\Model\\AbstractModel->save()\n#16 \/var\/www\/html\/beautyshop\/app\/code\/Apptha\/Marketplace\/Controller\/Product\/Savedata.php(506): Magento\\Catalog\\Model\\Product\\Interceptor->save()\n#17 \/var\/www\/html\/beautyshop\/generated\/code\/Apptha\/Marketplace\/Controller\/Product\/Savedata\/Interceptor.php(141): Apptha\\Marketplace\\Controller\\Product\\Savedata->saveCustomOption('2091', Array)\n#18 \/var\/www\/html\/beautyshop\/app\/code\/Apptha\/Marketplace\/Controller\/Product\/Savedata.php(199): Apptha\\Marketplace\\Controller\\Product\\Savedata\\Interceptor->saveCustomOption('2091', Array)\n#19 \/var\/www\/html\/beautyshop\/generated\/code\/Apptha\/Marketplace\/Controller\/Product\/Savedata\/Interceptor.php(24): Apptha\\Marketplace\\Controller\\Product\\Savedata->execute()\n#20 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/App\/Action\/Action.php(107): Apptha\\Marketplace\\Controller\\Product\\Savedata\\Interceptor->execute()\n#21 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\App\\Action\\Action->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#22 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Apptha\\Marketplace\\Controller\\Product\\Savedata\\Interceptor->___callParent('dispatch', Array)\n#23 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Apptha\\Marketplace\\Controller\\Product\\Savedata\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#24 \/var\/www\/html\/beautyshop\/generated\/code\/Apptha\/Marketplace\/Controller\/Product\/Savedata\/Interceptor.php(273): Apptha\\Marketplace\\Controller\\Product\\Savedata\\Interceptor->___callPlugins('dispatch', Array, Array)\n#25 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/App\/FrontController.php(55): Apptha\\Marketplace\\Controller\\Product\\Savedata\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#26 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\App\\FrontController->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#27 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', Array)\n#28 \/var\/www\/html\/beautyshop\/vendor\/magento\/module-store\/App\/FrontController\/Plugin\/RequestPreprocessor.php(94): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#29 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\Store\\App\\FrontController\\Plugin\\RequestPreprocessor->aroundDispatch(Object(Magento\\Framework\\App\\FrontController\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#30 \/var\/www\/html\/beautyshop\/vendor\/magento\/module-page-cache\/Model\/App\/FrontController\/BuiltinPlugin.php(73): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#31 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\PageCache\\Model\\App\\FrontController\\BuiltinPlugin->aroundDispatch(Object(Magento\\Framework\\App\\FrontController\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#32 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#33 \/var\/www\/html\/beautyshop\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(26): Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', Array, NULL)\n#34 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#35 \/var\/www\/html\/beautyshop\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#36 \/var\/www\/html\/beautyshop\/vendor\/magento\/framework\/App\/Bootstrap.php(256): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#37 \/var\/www\/html\/beautyshop\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#38 {main}","url":"\/beautyshop\/default\/marketplace\/product\/savedata\/","script_name":"\/beautyshop\/index.php"}

Я ожидаю сохранить продукт с опциями.Итак, как решить эту проблему?

...