Skip to content

Magento 2 Class not found errpr

I try to install this module modele in my Magento 2.4.6 store.

https://github.com/scriptbaker/magento2-ship-out-of-stock-items?tab=readme-ov-file

The module is installed fine and is activated.

But keeping getting this error when try to ship a order.

I have try all upgrade commands, and clean and make static content, but still getting error.

Error: Class "ScriptbakerShipOutofStockItemsObserverAlwaysShipOrder" not found in /var/www/html/magento245_final/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
Stack trace:
#0 /var/www/html/magento245_final/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject()
#1 /var/www/html/magento245_final/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryCompiled->create()
#2 /var/www/html/magento245_final/vendor/magento/framework/Event/ObserverFactory.php(36): MagentoFrameworkObjectManagerObjectManager->get()
#3 /var/www/html/magento245_final/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MagentoFrameworkEventObserverFactory->get()
#4 /var/www/html/magento245_final/vendor/magento/framework/Event/Manager.php(65): MagentoFrameworkEventInvokerInvokerDefault->dispatch()
#5 /var/www/html/magento245_final/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch()
#6 /var/www/html/magento245_final/vendor/magento/framework/Model/AbstractModel.php(710): MagentoFrameworkEventManagerProxy->dispatch()
#7 /var/www/html/magento245_final/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(390): MagentoFrameworkModelAbstractModel->beforeSave()
#8 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkModelResourceModelDbAbstractDb->save()
#9 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(138): MagentoSalesModelResourceModelOrderShipmentInterceptor->___callParent()
#10 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(153): MagentoSalesModelResourceModelOrderShipmentInterceptor->MagentoFrameworkInterception{closure}()
#11 /var/www/html/magento245_final/generated/code/Magento/Sales/Model/ResourceModel/Order/Shipment/Interceptor.php(77): MagentoSalesModelResourceModelOrderShipmentInterceptor->___callPlugins()
#12 /var/www/html/magento245_final/vendor/magento/framework/Model/AbstractModel.php(663): MagentoSalesModelResourceModelOrderShipmentInterceptor->save()
#13 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkModelAbstractModel->save()
#14 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(138): MagentoSalesModelOrderShipmentInterceptor->___callParent()
#15 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(153): MagentoSalesModelOrderShipmentInterceptor->MagentoFrameworkInterception{closure}()
#16 /var/www/html/magento245_final/generated/code/Magento/Sales/Model/Order/Shipment/Interceptor.php(23): MagentoSalesModelOrderShipmentInterceptor->___callPlugins()
#17 /var/www/html/magento245_final/vendor/magento/framework/DB/Transaction.php(134): MagentoSalesModelOrderShipmentInterceptor->save()
#18 /var/www/html/magento245_final/vendor/magento/module-shipping/Controller/Adminhtml/Order/Shipment/Save.php(95): MagentoFrameworkDBTransaction->save()
#19 /var/www/html/magento245_final/vendor/magento/module-shipping/Controller/Adminhtml/Order/Shipment/Save.php(168): MagentoShippingControllerAdminhtmlOrderShipmentSave->_saveShipment()
#20 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(58): MagentoShippingControllerAdminhtmlOrderShipmentSave->execute()
#21 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(138): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->___callParent()
#22 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(153): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->MagentoFrameworkInterception{closure}()
#23 /var/www/html/magento245_final/generated/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save/Interceptor.php(23): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->___callPlugins()
#24 /var/www/html/magento245_final/vendor/magento/framework/App/Action/Action.php(111): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->execute()
#25 /var/www/html/magento245_final/vendor/magento/module-backend/App/AbstractAction.php(151): MagentoFrameworkAppActionAction->dispatch()
#26 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch()
#27 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(138): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->___callParent()
#28 /var/www/html/magento245_final/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->MagentoFrameworkInterception{closure}()
#29 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch()
#30 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(153): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->MagentoFrameworkInterception{closure}()
#31 /var/www/html/magento245_final/generated/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save/Interceptor.php(32): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->___callPlugins()
#32 /var/www/html/magento245_final/vendor/magento/framework/App/FrontController.php(245): MagentoShippingControllerAdminhtmlOrderShipmentSaveInterceptor->dispatch()
#33 /var/www/html/magento245_final/vendor/magento/framework/App/FrontController.php(212): MagentoFrameworkAppFrontController->getActionResponse()
#34 /var/www/html/magento245_final/vendor/magento/framework/App/FrontController.php(147): MagentoFrameworkAppFrontController->processRequest()
#35 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch()
#36 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent()
#37 /var/www/html/magento245_final/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterception{closure}()
#38 /var/www/html/magento245_final/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins()
#39 /var/www/html/magento245_final/vendor/magento/framework/App/Http.php(116): MagentoFrameworkAppFrontControllerInterceptor->dispatch()
#40 /var/www/html/magento245_final/generated/code/Magento/Framework/App/Http/Interceptor.php(23): MagentoFrameworkAppHttp->launch()
#41 /var/www/html/magento245_final/vendor/magento/framework/App/Bootstrap.php(264): MagentoFrameworkAppHttpInterceptor->launch()
#42 /var/www/html/magento245_final/pub/index.php(30): MagentoFrameworkAppBootstrap->run()
#43 {main}