cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot create a manual order

Cannot create a manual order

When I try to create a manual order, I'm getting the error message below:

 

 

Error: Cannot instantiate abstract class Magento\Framework\Model\ResourceModel\AbstractResource in /home/user/public/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace:
#0 /home/user/public/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create()
#1 /home/user/public/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager->get()
#2 /home/user/public/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument()
#3 /home/user/public/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument()
#4 /home/user/public/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime()
#5 /home/user/public/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments()
#6 /home/user/public/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create()
#7 /home/user/public/vendor/magento/module-payment/Model/Method/Factory.php(40): Magento\Framework\ObjectManager\ObjectManager->create()
#8 /home/user/public/vendor/magento/module-payment/Helper/Data.php(136): Magento\Payment\Model\Method\Factory->create()
#9 /home/user/public/vendor/magento/module-payment/Model/PaymentMethodList.php(47): Magento\Payment\Helper\Data->getMethodInstance()
#10 [internal function]: Magento\Payment\Model\PaymentMethodList->Magento\Payment\Model\{closure}()
#11 /home/user/public/vendor/magento/module-payment/Model/PaymentMethodList.php(45): array_map()
#12 /home/user/public/vendor/magento/module-payment/Model/PaymentMethodList.php(88): Magento\Payment\Model\PaymentMethodList->getList()
#13 /home/user/public/vendor/magento/module-payment/Block/Form/Container.php(154): Magento\Payment\Model\PaymentMethodList->getActiveList()
#14 /home/user/public/vendor/magento/module-payment/Block/Form/Container.php(77): Magento\Payment\Block\Form\Container->getMethods()
#15 /home/user/public/vendor/magento/framework/View/Element/AbstractBlock.php(272): Magento\Payment\Block\Form\Container->_prepareLayout()
#16 /home/user/public/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Framework\View\Element\AbstractBlock->setLayout()
#17 /home/user/public/vendor/magento/framework/View/Layout/GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\Block->process()
#18 /home/user/public/vendor/magento/framework/View/Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process()
#19 /home/user/public/generated/code/Magento/Framework/View/Layout/Interceptor.php(68): Magento\Framework\View\Layout->generateElements()
#20 /home/user/public/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#21 /home/user/public/vendor/magento/framework/View/Page/Builder.php(65): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#22 /home/user/public/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#23 /home/user/public/vendor/magento/framework/View/Layout.php(271): Magento\Framework\View\Layout\Builder->build()
#24 /home/user/public/vendor/magento/framework/View/Layout.php(896): Magento\Framework\View\Layout->build()
#25 /home/user/public/generated/code/Magento/Framework/View/Layout/Interceptor.php(293): Magento\Framework\View\Layout->getBlock()
#26 /home/user/public/vendor/magento/module-backend/Model/View/Result/Page.php(26): Magento\Framework\View\Layout\Interceptor->getBlock()
#27 /home/user/public/generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(23): Magento\Backend\Model\View\Result\Page->setActiveMenu()
#28 /home/user/public/vendor/magento/module-sales/Controller/Adminhtml/Order/Create/Index.php(32): Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu()
#29 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Sales\Controller\Adminhtml\Order\Create\Index->execute()
#30 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->___callParent()
#31 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->Magento\Framework\Interception\{closure}()
#32 /home/user/public/generated/code/Magento/Sales/Controller/Adminhtml/Order/Create/Index/Interceptor.php(23): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->___callPlugins()
#33 /home/user/public/vendor/magento/framework/App/Action/Action.php(111): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->execute()
#34 /home/user/public/vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch()
#35 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch()
#36 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->___callParent()
#37 /home/user/public/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->Magento\Framework\Interception\{closure}()
#38 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch()
#39 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->Magento\Framework\Interception\{closure}()
#40 /home/user/public/generated/code/Magento/Sales/Controller/Adminhtml/Order/Create/Index/Interceptor.php(32): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->___callPlugins()
#41 /home/user/public/vendor/magento/framework/App/FrontController.php(245): Magento\Sales\Controller\Adminhtml\Order\Create\Index\Interceptor->dispatch()
#42 /home/user/public/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
#43 /home/user/public/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest()
#44 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
#45 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
#46 /home/user/public/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
#47 /home/user/public/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
#48 /home/user/public/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
#49 /home/user/public/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#50 /home/user/public/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#51 {main}
3 REPLIES 3

Re: Cannot create a manual order

Re: Cannot create a manual order

Ok, where should I look? What is the location of the file I need to check to?

 

This is the code in line

 

return new $type();

 

        return $this->resolveArgumentsInRuntime($requestedType, $parameters, $arguments);
    }

    /**
     * Create instance with call time arguments
     *
     * @param string $requestedType
     * @param array $arguments
     * @return object
     * @throws \Exception
     */
    public function create($requestedType, array $arguments = [])
    {
        $type = $this->config->getInstanceType($requestedType);
        $parameters = $this->definitions->getParameters($type);
        if ($parameters == null) {
            return new $type();
        }
        if (isset($this->creationStack[$requestedType])) {
            $lastFound = end($this->creationStack);
            $this->creationStack = [];
            throw new \LogicException("Circular dependency: {$requestedType} depends on {$lastFound} and vice versa.");
        }
        $this->creationStack[$requestedType] = $requestedType;
        try {
            $args = $this->_resolveArguments($requestedType, $parameters, $arguments);
            unset($this->creationStack[$requestedType]);
        } catch (\Exception $e) {
            unset($this->creationStack[$requestedType]);
            throw $e;
        }

        return $this->createObject($type, $args);

 

Re: Cannot create a manual order

I don't know your codebase. The problem is with one of your extensions or custom code that uses Magento\Framework\Model\ResourceModel\AbstractResource

Founder at https://agency418.com