Hello Guys,
I am using Magento 2.3.4 and I got the error bellow after click on Catalog item in Admin Panel.
Did you know that erro?
Regards,
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): The attribute with a "sw_menu_block_top_content" attributeCode doesn't exist. Verify the attribute and try again. Exception #0 (Magento\Framework\Exception\NoSuchEntityException): The attribute with a "sw_menu_block_top_content" attributeCode doesn't exist. Verify the attribute and try again. <pre>#1 Magento\Catalog\Model\Category\AttributeRepository->get('sw_menu_block_to...') called at [vendor/magento/module-catalog/Ui/Component/Category/Form/Element/Wysiwyg.php:64] #2 Magento\Catalog\Ui\Component\Category\Form\Element\Wysiwyg->__construct(&Magento\Framework\View\Element\UiComponent\Context#000000001dcca0fb00000000499daea7#, &Magento\Framework\Data\FormFactory#000000001dcca64f00000000499daea7#, &Magento\Cms\Model\Wysiwyg\Config#000000001dcca8a800000000499daea7#, &Magento\Framework\View\Layout\Interceptor#000000001dcca8ec00000000499daea7#, &Magento\Backend\Helper\Data#000000001dccac7700000000499daea7#, &Magento\Catalog\Model\Category\AttributeRepository#000000001dccad2400000000499daea7#, array(), array('config' => array('elementTmpl' => 'ui/content/conte...', 'component' => 'Magento_Ui/js/fo...', 'template' => 'ui/content/conte...'), 'name' => 'sw_menu_block_to...', 'template' => 'ui/content/conte...'), array('class' => 'Magento\Catalog\...', 'formElement' => 'wysiwyg', 'label' => 'Top Block', 'template' => 'ui/form/field', 'sortOrder' => 90, 'rows' => 3)) called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121] #3 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Catalog\...', array(&Magento\Framework\View\Element\UiComponent\Context#000000001dcca0fb00000000499daea7#, &Magento\Framework\Data\FormFactory#000000001dcca64f00000000499daea7#, &Magento\Cms\Model\Wysiwyg\Config#000000001dcca8a800000000499daea7#, &Magento\Framework\View\Layout\Interceptor#000000001dcca8ec00000000499daea7#, &Magento\Backend\Helper\Data#000000001dccac7700000000499daea7#, &Magento\Catalog\Model\Category
Solved! Go to Solution.
Yours instructions did not work.
So I did remove modulde Smartwave_megamenu from table setup_module on database and ran
setup:upgrade
setup:di:compile
Now, it's work.
@visol069 kindly try following
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f chmod -R 777 var generated
if this does not resolve the issue then kindly check your theme/ custom module's code you should have used sw_menu_block_top_content attribute into a phtml file but that attribute is not added for products.
so if you need that kindly add that from the admin area or remove the code from phtml file if you don't need that.
you can check that by the following command
grep -r sw_menu_block_top_content app
I hope it helps!
Hello @visol069
Seems like this attribute was created from any module and later deleted, just simply create an attribute from admin :-
Store > Attributes > Product > New attribute
and put same attribute code for that.
There are some products which have that attribute value.
if you don't need that, you can cleanup that later.
Hope it helps !
Yours instructions did not work.
So I did remove module Smartwave_megamenu from table setup_module on database and ran
setup:upgrade
setup:di:compile
Now, it's work.
Hello @visol069 ,
Please check the attributes global value in db if attribute exists. It must be set to 1.
check the value of is_global in catalog_eav_attribute.
It must be 1.
Clean the cache and re-index.
Thank you