Magento Asked by Venkatesha on February 12, 2021
I have already uploaded the product details in to magento, but whenever i try to make any small change (example: quantity) it does not work and it gives me this error:
Unable to save Stock Item
I have already tried several times and i always get this error message. Can you guys help me with this issue.
VAR/SYSTEM.LOG ERROR DETAILS:
[2018-02-21 04:36:22] main.CRITICAL: Exception message: Unable to save Stock Item
Trace: #0 /home/tesefa/public_html/vendor/magento/module-catalog-inventory/Model/StockRegistry.php(180): MagentoCatalogInventoryModelStockStockItemRepository->save(Object(MagentoCatalogInventoryModelAdminhtmlStockItem))
#1 /home/tesefa/public_html/vendor/magento/module-catalog-inventory/Observer/SaveInventoryDataObserver.php(110): MagentoCatalogInventoryModelStockRegistry->updateStockItemBySku('Tevere-7353-992', Object(MagentoCatalogInventoryModelAdminhtmlStockItem))
#2 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoCatalogInventoryObserverSaveInventoryDataObserver->execute(Object(MagentoFrameworkEventObserver))
#3 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoCatalogInventoryObserverSaveInventoryDataObserver), Object(MagentoFrameworkEventObserver))
#4 /home/tesefa/public_html/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#5 /home/tesefa/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('catalog_product...', Array)
#6 /home/tesefa/public_html/vendor/magento/framework/Model/AbstractModel.php(818): MagentoFrameworkEventManagerProxy->dispatch('catalog_product...', Array)
#7 /home/tesefa/public_html/vendor/magento/module-catalog/Model/Product.php(928): MagentoFrameworkModelAbstractModel->afterSave()
#8 /home/tesefa/public_html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(362): MagentoCatalogModelProduct->afterSave()
#9 /home/tesefa/public_html/vendor/magento/framework/EntityManager/Observer/AfterEntitySave.php(34): MagentoCatalogModelProductInterceptor->afterSave()
#10 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoFrameworkEntityManagerObserverAfterEntitySave->execute(Object(MagentoFrameworkEventObserver))
#11 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(MagentoFrameworkEntityManagerObserverAfterEntitySave), Object(MagentoFrameworkEventObserver))
#12 /home/tesefa/public_html/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch(Array, Object(MagentoFrameworkEventObserver))
#13 /home/tesefa/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch('magento_catalog...', Array)
#14 /home/tesefa/public_html/vendor/magento/framework/EntityManager/EventManager.php(52): MagentoFrameworkEventManagerProxy->dispatch('magento_catalog...', Array)
#15 /home/tesefa/public_html/vendor/magento/framework/EntityManager/Operation/Update.php(110): MagentoFrameworkEntityManagerEventManager->dispatchEntityEvent('Magento\Catalog...', 'save_after', Array)
#16 /home/tesefa/public_html/vendor/magento/framework/EntityManager/EntityManager.php(96): MagentoFrameworkEntityManagerOperationUpdate->execute(Object(MagentoCatalogModelProductInterceptor), Array)
#17 /home/tesefa/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(626): MagentoFrameworkEntityManagerEntityManager->save(Object(MagentoCatalogModelProductInterceptor))
#18 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCatalogModelResourceModelProduct->save(Object(MagentoCatalogModelProductInterceptor))
#19 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogModelResourceModelProductInterceptor->___callParent('save', Array)
#20 /home/tesefa/public_html/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Product.php(51): MagentoCatalogModelResourceModelProductInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoCatalogModelProductInterceptor))
#21 /home/tesefa/public_html/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Plugin/Product.php(24): MagentoCatalogSearchModelIndexerFulltextPluginProduct->addCommitCallback(Object(MagentoCatalogModelResourceModelProductInterceptor), Object(Closure), Object(MagentoCatalogModelProductInterceptor))
#22 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(135): MagentoCatalogSearchModelIndexerFulltextPluginProduct->aroundSave(Object(MagentoCatalogModelResourceModelProductInterceptor), Object(Closure), Object(MagentoCatalogModelProductInterceptor))
#23 /home/tesefa/public_html/vendor/magento/framework/App/Cache/FlushCacheByTags.php(68): MagentoCatalogModelResourceModelProductInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoCatalogModelProductInterceptor))
#24 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(135): MagentoFrameworkAppCacheFlushCacheByTags->aroundSave(Object(MagentoCatalogModelResourceModelProductInterceptor), Object(Closure), Object(MagentoCatalogModelProductInterceptor))
#25 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogModelResourceModelProductInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoCatalogModelProductInterceptor))
#26 /home/tesefa/public_html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php(273): MagentoCatalogModelResourceModelProductInterceptor->___callPlugins('save', Array, Array)
#27 /home/tesefa/public_html/vendor/magento/framework/Model/AbstractModel.php(647): MagentoCatalogModelResourceModelProductInterceptor->save(Object(MagentoCatalogModelProductInterceptor))
#28 /home/tesefa/public_html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(2429): MagentoFrameworkModelAbstractModel->save()
#29 /home/tesefa/public_html/vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php(110): MagentoCatalogModelProductInterceptor->save()
#30 /home/tesefa/public_html/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Save/Interceptor.php(24): MagentoCatalogControllerAdminhtmlProductSave->execute()
#31 /home/tesefa/public_html/vendor/magento/framework/App/Action/Action.php(107): MagentoCatalogControllerAdminhtmlProductSaveInterceptor->execute()
#32 /home/tesefa/public_html/vendor/magento/module-backend/App/AbstractAction.php(229): MagentoFrameworkAppActionAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#33 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#34 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCatalogControllerAdminhtmlProductSaveInterceptor->___callParent('dispatch', Array)
#35 /home/tesefa/public_html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): MagentoCatalogControllerAdminhtmlProductSaveInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
#36 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch(Object(MagentoCatalogControllerAdminhtmlProductSaveInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#37 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCatalogControllerAdminhtmlProductSaveInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
#38 /home/tesefa/public_html/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Save/Interceptor.php(39): MagentoCatalogControllerAdminhtmlProductSaveInterceptor->___callPlugins('dispatch', Array, NULL)
#39 /home/tesefa/public_html/vendor/magento/framework/App/FrontController.php(55): MagentoCatalogControllerAdminhtmlProductSaveInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#40 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))
#41 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent('dispatch', Array)
#42 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
#43 /home/tesefa/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins('dispatch', Array, Array)
#44 /home/tesefa/public_html/vendor/magento/framework/App/Http.php(135): MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#45 /home/tesefa/public_html/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()
#46 /home/tesefa/public_html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))
#47 {main} [] []
Please re-index the data by running below command after navigating to Magento root directory:
php bin/magento indexer:reindex
Flush the cache(php bin/magento cache:flush
) and then try saving the product again.
Answered by mighty_hk on February 12, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP