cancel
Showing results for 
Search instead for 
Did you mean: 

Configurable product error: "Something went wrong while saving option."

Configurable product error: "Something went wrong while saving option."

Heya,

 

I've ran into a very special problem that I can't seem to find much discussion about whilst searching.

 

I get the following error: "Something went wrong while saving option.", while trying to update a configurable product. There is no problem when I create the configurable product, only when trying to update it (I'm trying to update the description)

 

I've read from another forum that the problem was related to Apache's mod_security blocking the POST-request, so I have contacted the hosting provider to see if this is the cause and I'm awaiting a response from them.

 

Here's the stack trace from the debug.log;

 

[2018-12-18 13:23:12] main.DEBUG: cache_invalidate:  {"method":"POST","url":"https://hudpleiegrossisten.no/hpglogin/catalog/product/save/id/5686/type/configurable/store/0/set/24/key/c4e915e630df93378e09f3c429e74f77e84728587a74c0512ed4e465220b1d6c/back/edit","invalidateInfo":{"tags":["cat_p_5686"],"mode":"matchingAnyTag"}} []
[2018-12-18 13:23:12] main.DEBUG: cache_invalidate:  {"method":"POST","url":"https://hudpleiegrossisten.no/hpglogin/catalog/product/save/id/5686/type/configurable/store/0/set/24/key/c4e915e630df93378e09f3c429e74f77e84728587a74c0512ed4e465220b1d6c/back/edit","invalidateInfo":{"tags":["configurable_5686","COLLECTION_DATA"],"mode":"matchingTag"}} []
[2018-12-18 13:23:12] main.CRITICAL: Something went wrong while saving option. {"exception":"[object] (Magento\\Framework\\Exception\\CouldNotSaveException(code: 0): Something went wrong while saving option. at /home/middampw/public_html/vendor/magento/module-configurable-product/Model/OptionRepository.php:216)"} []
[2018-12-18 13:23:12] main.CRITICAL: Exception message: Something went wrong while saving option.
Trace: #0 /home/middampw/public_html/vendor/magento/module-configurable-product/Model/Product/SaveHandler.php(100): Magento\ConfigurableProduct\Model\OptionRepository->save('Mesogold', Object(Magento\ConfigurableProduct\Model\Product\Type\Configurable\Attribute))
#1 /home/middampw/public_html/vendor/magento/module-configurable-product/Model/Product/SaveHandler.php(68): Magento\ConfigurableProduct\Model\Product\SaveHandler->saveConfigurableProductAttributes(Object(Magento\Catalog\Model\Product\Interceptor), Array)
#2 /home/middampw/public_html/vendor/magento/framework/EntityManager/Operation/Update/UpdateExtensions.php(49): Magento\ConfigurableProduct\Model\Product\SaveHandler->execute(Object(Magento\Catalog\Model\Product\Interceptor), Array)
#3 /home/middampw/public_html/vendor/magento/framework/EntityManager/Operation/Update.php(109): Magento\Framework\EntityManager\Operation\Update\UpdateExtensions->execute(Object(Magento\Catalog\Model\Product\Interceptor), Array)
#4 /home/middampw/public_html/vendor/magento/framework/EntityManager/EntityManager.php(96): Magento\Framework\EntityManager\Operation\Update->execute(Object(Magento\Catalog\Model\Product\Interceptor), Array)
#5 /home/middampw/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(655): Magento\Framework\EntityManager\EntityManager->save(Object(Magento\Catalog\Model\Product\Interceptor))
#6 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\ResourceModel\Product->save(Object(Magento\Catalog\Model\Product\Interceptor))
#7 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\ResourceModel\Product\Interceptor->___callParent('save', Array)
#8 /home/middampw/public_html/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))
#9 /home/middampw/public_html/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))
#10 /home/middampw/public_html/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))
#11 /home/middampw/public_html/vendor/magento/framework/App/Cache/FlushCacheByTags.php(68): Magento\Catalog\Model\ResourceModel\Product\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor))
#12 /home/middampw/public_html/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))
#13 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\ResourceModel\Product\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor))
#14 /home/middampw/public_html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php(273): Magento\Catalog\Model\ResourceModel\Product\Interceptor->___callPlugins('save', Array, Array)
#15 /home/middampw/public_html/vendor/magento/framework/Model/AbstractModel.php(647): Magento\Catalog\Model\ResourceModel\Product\Interceptor->save(Object(Magento\Catalog\Model\Product\Interceptor))
#16 /home/middampw/public_html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(2442): Magento\Framework\Model\AbstractModel->save()
#17 /home/middampw/public_html/vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php(111): Magento\Catalog\Model\Product\Interceptor->save()
#18 /home/middampw/public_html/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Save/Interceptor.php(24): Magento\Catalog\Controller\Adminhtml\Product\Save->execute()
#19 /home/middampw/public_html/vendor/magento/framework/App/Action/Action.php(107): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->execute()
#20 /home/middampw/public_html/vendor/magento/module-backend/App/AbstractAction.php(229): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#21 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#22 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->___callParent('dispatch', Array)
#23 /home/middampw/public_html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#24 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#25 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#26 /home/middampw/public_html/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Save/Interceptor.php(39): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->___callPlugins('dispatch', Array, NULL)
#27 /home/middampw/public_html/vendor/magento/framework/App/FrontController.php(55): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#28 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#29 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#30 /home/middampw/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#31 /home/middampw/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#32 /home/middampw/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#33 /home/middampw/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#34 /home/middampw/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#35 /home/middampw/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#36 {main} [] []

This problem is only occuring while trying to update a configurable product and does not appear anywhere else on the site.

 

Would be of great help to get any kind of input on this.

 

Thanks a million,

 

Joakim

1 REPLY 1

Re: Configurable product error: "Something went wrong while saving option."

I tried disabling Mod Security for the domain, but that did unfortunately not solve the issue at hand.