- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cart page error: argument "name" missing
Hello,
Unfortunately my shop return an error page when click (from mini cart) the "view and edit cart" button. Installed version is CE 2.3.6, I use Porto theme (but I have tried using Luma theme, and have the same error).
Various extensions installed, but everything else work good
Test website is https://www.00up.app/magento2/ and is easy to reproduce issue: add product to cart, click (in mini cart) on view and edit cart button (is in Italian: "visualizza e modifica carrello").
Follow error page, thank you for your help!!
1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'argument': The attribute 'name' is required but missing. Line: 1166 Element 'argument': Not all fields of key identity-constraint 'blockReferenceActionArgumentName' evaluate to a node. Line: 1166 Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'argument': The attribute 'name' is required but missing. Line: 1166 Element 'argument': Not all fields of key identity-constraint 'blockReferenceActionArgumentName' evaluate to a node. Line: 1166 <pre>#1 Magento\Framework\Config\Dom->__construct('<layout xmlns:xs...', &Magento\Framework\App\Arguments\ValidationState#0000000051a9f102000000005552bc21#, array(), NULL, '/var/www/vhosts/...', '%message%\nLine: ...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121] #2 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewor...', array('<layout xmlns:xs...', &Magento\Framework\App\Arguments\ValidationState#0000000051a9f102000000005552bc21#, array(), NULL, '/var/www/vhosts/...', '%message%\nLine: ...')) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:66] #3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewor...', array('xml' => '<layout xmlns:xs...', 'schemaFile' => '/var/www/vhosts/...', 'validationState' => &Magento\Framework\App\Arguments\ValidationState#0000000051a9f102000000005552bc21#)) called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56] #4 Magento\Framework\ObjectManager\ObjectManager->create('Magento\Framewor...', array('xml' => '<layout xmlns:xs...', 'schemaFile' => '/var/www/vhosts/...', 'validationState' => &Magento\Framework\App\Arguments\ValidationState#0000000051a9f102000000005552bc21#)) called at [vendor/magento/framework/Config/DomFactory.php:43] #5 Magento\Framework\Config\DomFactory->createDom(array('xml' => '<layout xmlns:xs...', 'schemaFile' => '/var/www/vhosts/...', 'validationState' => &Magento\Framework\App\Arguments\ValidationState#0000000051a9f102000000005552bc21#)) called at [vendor/magento/framework/View/Model/Layout/Update/Validator.php:141] #6 Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:xs...', 'layout_merged', false) called at [vendor/magento/framework/View/Model/Layout/Merge.php:512] #7 Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend_...', '<body>\n <refer...') called at [vendor/magento/framework/View/Model/Layout/Merge.php:488] #8 Magento\Framework\View\Model\Layout\Merge->load(array()) called at [generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php:206] #9 Magento\Framework\View\Model\Layout\Merge\Interceptor->load() called at [vendor/magento/framework/View/Layout/Builder.php:86] #10 Magento\Framework\View\Layout\Builder->loadLayoutUpdates() called at [vendor/magento/framework/View/Layout/Builder.php:63] #11 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Page/Config.php:224] #12 Magento\Framework\View\Page\Config->build() called at [vendor/magento/framework/View/Page/Config.php:247] #13 Magento\Framework\View\Page\Config->getTitle() called at [vendor/magento/module-checkout/Controller/Cart/Index.php:57] #14 Magento\Checkout\Controller\Cart\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58] #15 Magento\Checkout\Controller\Cart\Index\Interceptor->___callParent('execute', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138] #16 Magento\Checkout\Controller\Cart\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #17 Magento\Checkout\Controller\Cart\Index\Interceptor->___callPlugins('execute', array(), array(array('amazon_login_car...'))) called at [generated/code/Magento/Checkout/Controller/Cart/Index/Interceptor.php:26] #18 Magento\Checkout\Controller\Cart\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108] #19 Magento\Framework\App\Action\Action->dispatch(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/Interception/Interceptor.php:58] #20 Magento\Checkout\Controller\Cart\Index\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#)) called at [vendor/magento/framework/Interception/Interceptor.php:138] #21 Magento\Checkout\Controller\Cart\Index\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/Interception/Interceptor.php:153] #22 Magento\Checkout\Controller\Cart\Index\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#), array(array('designLoader', 'customerNotifica...', 'catalog_app_acti...', 'tax-app-action-d...', 'weee-app-action-...', 'storeCheck', 'contextPlugin', 'customer-app-act...', 'multishipping_cl...'))) called at [generated/code/Magento/Checkout/Controller/Cart/Index/Interceptor.php:39] #23 Magento\Checkout\Controller\Cart\Index\Interceptor->dispatch(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/App/FrontController.php:186] #24 Magento\Framework\App\FrontController->processRequest(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#, &Magento\Checkout\Controller\Cart\Index\Interceptor#0000000051a9f3a0000000005552bc21#) called at [vendor/magento/framework/App/FrontController.php:118] #25 Magento\Framework\App\FrontController->dispatch(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/Interception/Interceptor.php:58] #26 Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#)) called at [vendor/magento/framework/Interception/Interceptor.php:138] #27 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99] #28 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(&Magento\Framework\App\FrontController\Interceptor#0000000051a9f17c000000005552bc21#, &Closure#0000000051a9f154000000005552bc21#, &Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/Interception/Interceptor.php:135] #29 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:73] #30 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(&Magento\Framework\App\FrontController\Interceptor#0000000051a9f17c000000005552bc21#, &Closure#0000000051a9f154000000005552bc21#, &Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/Interception/Interceptor.php:135] #31 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/Interception/Interceptor.php:153] #32 Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#), NULL) called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26] #33 Magento\Framework\App\FrontController\Interceptor->dispatch(&Magento\Framework\App\Request\Http#0000000051a9f0ee000000005552bc21#) called at [vendor/magento/framework/App/Http.php:116] #34 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24] #35 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261] #36 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000051a9f0f8000000005552bc21#) called at [index.php:39] </pre>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Cart page error: argument "name" missing
I think the error is in your checkout_cart_index.xml file, this may be overridden in your custom module or in your custom theme.
or
please refer the url to get the actual file
https://alanstorm.com/magento-2-xml-validation-errors/
Please Kudos if you like the solution
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Cart page error: argument "name" missing
Thank you!
I’ve added some commercial extensions, and I think error is generated from conflict between extensions o one extensions with issue... I have tried to check shop with LUMA theme, and have the same error, so I think problem isn’t from the theme..
do you have an idea about the right way to debug this problem? I’m new in Magento
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Cart page error: argument "name" missing
We have found the problem and fixed it!
Error is in Mageants CustomStockStatus extension code, they missed value name in argument at line 14 in file checkout_cart_item_renderers.xml
file is located in CustomStockStatus/view/frontend/layout
Thank you for your support
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Cart page error: argument "name" missing
Hi @diego_zanotti,
Could you please check whether your custom module is missing argument $name of etc/di.xml or not?
And run the below command in case your etc/di.xml is not updated:
php bin/magento cache:flush
Hope this can help you! Let me know if you need further assistance.
__________
If issue solved, Click Kudos & Accept as Solution.
LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.
Visit website: http://litextension.com/