ArgumentCountError: Too few arguments to function Magento\InventoryCatalog\Plugin\CatalogInventory\Helper\Stock\AdaptAssignStatusToProductPlugin::beforeAssignStatusToProduct(), 2 passed in /var/www/html/vendor/magento/framework/Interception/Interceptor.php on line 121 and exactly 3 expected in /var/www/html/vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Helper/Stock/AdaptAssignStatusToProductPlugin.php:71 Stack trace: #0 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): Magento\InventoryCatalog\Plugin\CatalogInventory\Helper\Stock\AdaptAssignStatusToProductPlugin->beforeAssignStatusToProduct(Object(Magento\CatalogInventory\Helper\Stock\Interceptor), Object(Magento\Catalog\Model\Product\Interceptor)) #1 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\CatalogInventory\Helper\Stock\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Catalog\Model\Product\Interceptor)) #2 /var/www/html/generated/code/Magento/CatalogInventory/Helper/Stock/Interceptor.php(26): Magento\CatalogInventory\Helper\Stock\Interceptor->___callPlugins('assignStatusToP...', Array, Array) #3 /var/www/html/vendor/magento/module-catalog-inventory/Observer/AddInventoryDataObserver.php(37): Magento\CatalogInventory\Helper\Stock\Interceptor->assignStatusToProduct(Object(Magento\Catalog\Model\Product\Interceptor)) #4 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\CatalogInventory\Observer\AddInventoryDataObserver->execute(Object(Magento\Framework\Event\Observer)) #5 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\CatalogInventory\Observer\AddInventoryDataObserver), Object(Magento\Framework\Event\Observer)) #6 /var/www/html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #7 /var/www/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('catalog_product...', Array) #8 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(581): Magento\Framework\Event\Manager\Proxy->dispatch('catalog_product...', Array) #9 /var/www/html/vendor/magento/module-catalog/Model/Product.php(1098): Magento\Framework\Model\AbstractModel->_afterLoad() #10 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(605): Magento\Catalog\Model\Product->_afterLoad() #11 /var/www/html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(2403): Magento\Framework\Model\AbstractModel->afterLoad() #12 /var/www/html/vendor/magento/framework/EntityManager/Observer/AfterEntityLoad.php(34): Magento\Catalog\Model\Product\Interceptor->afterLoad() #13 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\Framework\EntityManager\Observer\AfterEntityLoad->execute(Object(Magento\Framework\Event\Observer)) #14 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\Framework\EntityManager\Observer\AfterEntityLoad), Object(Magento\Framework\Event\Observer)) #15 /var/www/html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #16 /var/www/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('magento_catalog...', Array) #17 /var/www/html/vendor/magento/framework/EntityManager/EventManager.php(51): Magento\Framework\Event\Manager\Proxy->dispatch('magento_catalog...', Array) #18 /var/www/html/vendor/magento/framework/EntityManager/Operation/Read.php(119): Magento\Framework\EntityManager\EventManager->dispatchEntityEvent('Magento\\Catalog...', 'load_after', Array) #19 /var/www/html/vendor/magento/framework/EntityManager/EntityManager.php(70): Magento\Framework\EntityManager\Operation\Read->execute(Object(Magento\Catalog\Model\Product\Interceptor), 7, Array) #20 /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(716): Magento\Framework\EntityManager\EntityManager->load(Object(Magento\Catalog\Model\Product\Interceptor), 7) #21 /var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php(258): Magento\Catalog\Model\ResourceModel\Product->load(Object(Magento\Catalog\Model\Product\Interceptor), 7, NULL) #22 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(540): Magento\Catalog\Model\ResourceModel\Product\Interceptor->load(Object(Magento\Catalog\Model\Product\Interceptor), 7, NULL) #23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Model\AbstractModel->load(7) #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Product\Interceptor->___callParent('load', Array) #25 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Product\Interceptor->Magento\Framework\Interception\{closure}(7) #26 /var/www/html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(2379): Magento\Catalog\Model\Product\Interceptor->___callPlugins('load', Array, Array) #27 /var/www/html/vendor/magento/module-catalog/Model/ProductRepository.php(308): Magento\Catalog\Model\Product\Interceptor->load(7) #28 /var/www/html/generated/code/Magento/Catalog/Model/ProductRepository/Interceptor.php(37): Magento\Catalog\Model\ProductRepository->getById(7, false, '1', false) #29 /var/www/html/generated/code/Magento/Catalog/Api/ProductRepositoryInterface/Proxy.php(111): Magento\Catalog\Model\ProductRepository\Interceptor->getById(7, false, '1', false) #30 /var/www/html/vendor/magento/module-catalog/Helper/Product.php(430): Magento\Catalog\Api\ProductRepositoryInterface\Proxy->getById(7, false, '1') #31 /var/www/html/generated/code/Magento/Catalog/Helper/Product/Interceptor.php(219): Magento\Catalog\Helper\Product->initProduct(7, Object(Magento\Catalog\Controller\Product\View\Interceptor), Object(Magento\Framework\DataObject)) #32 /var/www/html/vendor/magento/module-catalog/Helper/Product/View.php(277): Magento\Catalog\Helper\Product\Interceptor->initProduct(7, Object(Magento\Catalog\Controller\Product\View\Interceptor), Object(Magento\Framework\DataObject)) #33 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Helper\Product\View->prepareAndRender(Object(Magento\Framework\View\Result\Page\Interceptor), 7, Object(Magento\Catalog\Controller\Product\View\Interceptor), Object(Magento\Framework\DataObject)) #34 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Helper\Product\View\Interceptor->___callParent('prepareAndRende...', Array) #35 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Helper\Product\View\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\View\Result\Page\Interceptor), 7, Object(Magento\Catalog\Controller\Product\View\Interceptor), Object(Magento\Framework\DataObject)) #36 /var/www/html/generated/code/Magento/Catalog/Helper/Product/View/Interceptor.php(39): Magento\Catalog\Helper\Product\View\Interceptor->___callPlugins('prepareAndRende...', Array, Array) #37 /var/www/html/vendor/magento/module-catalog/Controller/Product/View.php(140): Magento\Catalog\Helper\Product\View\Interceptor->prepareAndRender(Object(Magento\Framework\View\Result\Page\Interceptor), 7, Object(Magento\Catalog\Controller\Product\View\Interceptor), Object(Magento\Framework\DataObject)) #38 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Controller\Product\View->execute() #39 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Product\View\Interceptor->___callParent('execute', Array) #40 /var/www/html/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #41 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute(Object(Magento\Catalog\Controller\Product\View\Interceptor), Object(Closure)) #42 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #43 /var/www/html/generated/code/Magento/Catalog/Controller/Product/View/Interceptor.php(26): Magento\Catalog\Controller\Product\View\Interceptor->___callPlugins('execute', Array, Array) #44 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\Catalog\Controller\Product\View\Interceptor->execute() #45 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #46 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Product\View\Interceptor->___callParent('dispatch', Array) #47 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #48 /var/www/html/generated/code/Magento/Catalog/Controller/Product/View/Interceptor.php(39): Magento\Catalog\Controller\Product\View\Interceptor->___callPlugins('dispatch', Array, Array) #49 /var/www/html/vendor/magento/framework/App/FrontController.php(186): Magento\Catalog\Controller\Product\View\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #50 /var/www/html/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Magento\Catalog\Controller\Product\View\Interceptor)) #51 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #52 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #53 /var/www/html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #54 /var/www/html/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)) #55 /var/www/html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(75): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #56 /var/www/html/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)) #57 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #58 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL) #59 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #60 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch() #61 /var/www/html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->launch() #62 /var/www/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #63 {main}