Product saving problem in admin control panel

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.

enter image description here

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): Magento\CatalogInventory\Model\Stock\StockItemRepository->save(Object(Magento\CatalogInventory\Model\Adminhtml\Stock\Item)) #1 /home/tesefa/public_html/vendor/magento/module-catalog-inventory/Observer/SaveInventoryDataObserver.php(110): Magento\CatalogInventory\Model\StockRegistry->updateStockItemBySku('Tevere-7353-992', Object(Magento\CatalogInventory\Model\Adminhtml\Stock\Item)) #2 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Magento\CatalogInventory\Observer\SaveInventoryDataObserver->execute(Object(Magento\Framework\Event\Observer)) #3 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\CatalogInventory\Observer\SaveInventoryDataObserver), Object(Magento\Framework\Event\Observer)) #4 /home/tesefa/public_html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #5 /home/tesefa/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('catalog_product...', Array) #6 /home/tesefa/public_html/vendor/magento/framework/Model/AbstractModel.php(818): Magento\Framework\Event\Manager\Proxy->dispatch('catalog_product...', Array) #7 /home/tesefa/public_html/vendor/magento/module-catalog/Model/Product.php(928): Magento\Framework\Model\AbstractModel->afterSave() #8 /home/tesefa/public_html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(362): Magento\Catalog\Model\Product->afterSave() #9 /home/tesefa/public_html/vendor/magento/framework/EntityManager/Observer/AfterEntitySave.php(34): Magento\Catalog\Model\Product\Interceptor->afterSave() #10 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Magento\Framework\EntityManager\Observer\AfterEntitySave->execute(Object(Magento\Framework\Event\Observer)) #11 /home/tesefa/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\Framework\EntityManager\Observer\AfterEntitySave), Object(Magento\Framework\Event\Observer)) #12 /home/tesefa/public_html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #13 /home/tesefa/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('magento_catalog...', Array) #14 /home/tesefa/public_html/vendor/magento/framework/EntityManager/EventManager.php(52): Magento\Framework\Event\Manager\Proxy->dispatch('magento_catalog...', Array) #15 /home/tesefa/public_html/vendor/magento/framework/EntityManager/Operation/Update.php(110): Magento\Framework\EntityManager\EventManager->dispatchEntityEvent('Magento\Catalog...', 'save_after', Array) #16 /home/tesefa/public_html/vendor/magento/framework/EntityManager/EntityManager.php(96): Magento\Framework\EntityManager\Operation\Update->execute(Object(Magento\Catalog\Model\Product\Interceptor), Array) #17 /home/tesefa/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(626): Magento\Framework\EntityManager\EntityManager->save(Object(Magento\Catalog\Model\Product\Interceptor)) #18 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\ResourceModel\Product->save(Object(Magento\Catalog\Model\Product\Interceptor)) #19 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\ResourceModel\Product\Interceptor->___callParent('save', Array) #20 /home/tesefa/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)) #21 /home/tesefa/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)) #22 /home/tesefa/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)) #23 /home/tesefa/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)) #24 /home/tesefa/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)) #25 /home/tesefa/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)) #26 /home/tesefa/public_html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php(273): Magento\Catalog\Model\ResourceModel\Product\Interceptor->___callPlugins('save', Array, Array) #27 /home/tesefa/public_html/vendor/magento/framework/Model/AbstractModel.php(647): Magento\Catalog\Model\ResourceModel\Product\Interceptor->save(Object(Magento\Catalog\Model\Product\Interceptor)) #28 /home/tesefa/public_html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(2429): Magento\Framework\Model\AbstractModel->save() #29 /home/tesefa/public_html/vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php(110): Magento\Catalog\Model\Product\Interceptor->save() #30 /home/tesefa/public_html/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Save/Interceptor.php(24): Magento\Catalog\Controller\Adminhtml\Product\Save->execute() #31 /home/tesefa/public_html/vendor/magento/framework/App/Action/Action.php(107): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->execute() #32 /home/tesefa/public_html/vendor/magento/module-backend/App/AbstractAction.php(229): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #33 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http)) #34 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->___callParent('dispatch', Array) #35 /home/tesefa/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)) #36 /home/tesefa/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)) #37 /home/tesefa/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)) #38 /home/tesefa/public_html/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Save/Interceptor.php(39): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->___callPlugins('dispatch', Array, NULL) #39 /home/tesefa/public_html/vendor/magento/framework/App/FrontController.php(55): Magento\Catalog\Controller\Adminhtml\Product\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #40 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #41 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #42 /home/tesefa/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #43 /home/tesefa/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #44 /home/tesefa/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #45 /home/tesefa/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch() #46 /home/tesefa/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #47 {main} [] [] 

Como verificar se há um UserControl em um Panel? C# WinForms

Estou fazendo uma aplicação que tem um Panel central, e por ele estou controlando os UserControls, estou usando Clear, Add e BringToFront para manipular, eu gostaria de saber se tem alguma função para que eu consiga verificar se um UserControl específico já foi adicionado no meu Panel, um exemplo, em dois UserControls diferentes eu adiciono um mesmo UserControl no Panel, então eu quero que se eu já tiver adicionado, eu não precise adicionar de novo, apenas dou um BringToFront por que um desses dois UserControls já vai ter adicionado esse novo UserControl no Panel, quero fazer uma verificação antes de dar o comando Panel.Controls.Add()…

Pegando carona nessa questão, tem algum método para remover apenas UM UserControl do Panel? Sem ser com o Clear(), porque ele limpa o painel todo, então eu perderia algumas informações de outros UserControls que já foram abertos… Me desculpem caso tenha ficado muito difícil entender minha dúvida, agradeço se alguem puder me ajudar.

Did an auto-update and now I can’t access the displays control panel through cinnamon

WTH. I did an auto-update and my external monitor stopped being auto-detected. I went and installed lightDM (I really don’t know what lightdm is), and now it detects the monitor, but I still can’t access the GUI-based screen resolution app that ships with ubuntu. I could probably hack with xrandr but honestly I’ve had a couple of glasses of wine and this isn’t what I need right now.

I want to make my big external monitor the default monitor. I installed ARandR but look what it gives me:

enter image description here

The menu bars are wacky funhouse size. WTH. Plus when I log out and back in the settings aren’t persistent.

What’s going on here. Are the good people at canonical too busy with their kuberneets to keep this shit usable? Help! How can I make the display manager app available after the upgrade? Why doesn’t it show in cinnamon?

Here’s what xrandr says:

Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192 eDP-1 connected (normal left inverted right x axis y axis)    3200x1800     59.70 +    2880x1620     59.96    59.97      2560x1600     59.99    59.97      2560x1440     59.99    59.99    59.96    59.95      2048x1536     60.00      1920x1440     60.00      1856x1392     60.01      1792x1344     60.01      2048x1152     59.99    59.98    59.90    59.91      1920x1200     59.88    59.95      1920x1080     60.01    59.97    59.96    59.93      1600x1200     60.00      1680x1050     59.95    59.88      1600x1024     60.17      1400x1050     59.98      1600x900      59.99    59.94    59.95    59.82      1280x1024     60.02      1440x900      59.89      1400x900      59.96    59.88      1280x960      60.00      1440x810      60.00    59.97      1368x768      59.88    59.85      1360x768      59.80    59.96      1280x800      59.99    59.97    59.81    59.91      1152x864      60.00      1280x720      60.00    59.99    59.86    59.74      1024x768      60.04    60.00      960x720       60.00      928x696       60.05      896x672       60.01      1024x576      59.95    59.96    59.90    59.82      960x600       59.93    60.00      960x540       59.96    59.99    59.63    59.82      800x600       60.00    60.32    56.25      840x525       60.01    59.88      864x486       59.92    59.57      800x512       60.17      700x525       59.98      800x450       59.95    59.82      640x512       60.02      720x450       59.89      700x450       59.96    59.88      640x480       60.00    59.94      720x405       59.51    58.99      684x384       59.88    59.85      680x384       59.80    59.96      640x400       59.88    59.98      576x432       60.06      640x360       59.86    59.83    59.84    59.32      512x384       60.00      512x288       60.00    59.92      480x270       59.63    59.82      400x300       60.32    56.34      432x243       59.92    59.57      320x240       60.05      360x202       59.51    59.13      320x180       59.84    59.32   DP-1 disconnected (normal left inverted right x axis y axis) HDMI-1 disconnected (normal left inverted right x axis y axis) HDMI-2 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 608mm x 345mm    3840x2160     30.00 +  25.00    24.00    29.97    23.98      2560x1440     59.95*     1920x1080     60.00    50.00    59.94    30.00    24.00    29.97    23.98      1680x1050     59.88      1600x900      60.00      1280x1024     75.02    60.02      1440x900      59.90      1280x800      59.91      1152x864      75.00      1280x720      60.00    50.00    59.94      1024x768      75.03    70.07    60.00      832x624       74.55      800x600       72.19    75.00    60.32    56.25      720x576       50.00      720x480       60.00    59.94      640x480       75.00    72.81    66.67    60.00    59.94      720x400       70.08   

Magento2.2.5 admin panel not able to get to cms page or static blocks

when I go into the admin panel and then try to get to any cms page or static block (in the admin panel) I get a 500 error which is the below error. Also in the admin panel if I try to go to any cart price rule the below error occurs.

Also on the site when you go to any category the top category image does not seem to load.

When I look in the server logs I see the error Uncaught exception ‘Error’ with message ‘Cannot instantiate interface Magento\Framework\Config\ReaderInterface’ in /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111

How do you add a region to a panel

Novice question on Panels – I’ve inherited a D7 site with Panels 7.x-3.9.

I’m using a system page: node_view, with a variant for the content type I’m working on.

The layout has a number of regions – and just to be clear, by regions, I mean the $ plugin['regions'] array in the template’s .inc file.

What I can’t figure out is how to add new regions.

(I want to add group some fields together so I can insert them using $ content[‘foo’] in the template.)

Modifying the existing region names updates the descriptions used /admin/structure/pages/nojs/operation/node_view/handlers/node_view__panel_context_[UUID]/content

But any extra regions I add don’t appear (having done drush cc all) and they also don’t appear when creating a brand new variant using the same template.

Am I missing something in the UI (I’m logged in as user 1)?

(Thanks)

magenot2 admin panel add new category error Integrity constraint violation

below error when magenot2 admin panel add new category

[2019-04-08 22:36:22] main.CRITICAL: SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘entity_id’ cannot be null, query was: INSERT INTO catalog_category_entity (entity_id, attribute_set_id, parent_id, created_at, updated_at, path, position, level, children_count) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) {“exception”:”[object] (Zend_Db_Statement_Exception(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘entity_id’ cannot be null, query was: INSERT INTO catalog_category_entity (entity_id, attribute_set_id, parent_id, created_at, updated_at, path, position, level, children_count) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) at /home/domains//vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:235, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘entity_id’ cannot be null at /home/domains/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228)”} []

So give me solution.