Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required argument $sourceData of Meta\Catalog\Model\Config\Source\Product\GoogleProductCategory #90

Open
davirs opened this issue Oct 21, 2024 · 2 comments

Comments

@davirs
Copy link

davirs commented Oct 21, 2024

After disabling the extension, an error is generated on the product page in the administrative panel.
I believe the way the attributes were installed must be different.

It is common, especially in stage, to have to deactivate all extensions, Facebook does not allow this without error.

php 8.2
meta 1.3.4

` exception(s):
Exception #0 (BadMethodCallException): Missing required argument $sourceData of Meta\Catalog\Model\Config\Source\Product\GoogleProductCategory.

Exception #0 (BadMethodCallException): Missing required argument $sourceData of Meta\Catalog\Model\Config\Source\Product\GoogleProductCategory.

#1 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34]
#2 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59]
#3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#4 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
#5 Magento\Framework\Validator\UniversalFactory->create() called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
#6 Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource() called at [generated/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php:824]
#7 Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->getSource() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:684]
#8 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->setupAttributeMeta() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#9 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#10 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#11 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/Interceptor.php:59]
#12 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav\Interceptor->setupAttributeMeta() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:398]
#13 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->getContainerChildren() called at [generated/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/Interceptor.php:41]
#14 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav\Interceptor->getContainerChildren() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:373]
#15 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->addContainerChildren() called at [generated/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/Interceptor.php:32]
#16 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav\Interceptor->addContainerChildren() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:349]
#17 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->getAttributesMeta() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php:309]
#18 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav->modifyMeta() called at [generated/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/Interceptor.php:23]
#19 Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav\Interceptor->modifyMeta() called at [vendor/magento/module-catalog/Ui/DataProvider/Product/Form/ProductDataProvider.php:73]
#20 Magento\Catalog\Ui\DataProvider\Product\Form\ProductDataProvider->getMeta() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:330]
#21 Magento\Framework\View\Element\UiComponentFactory->mergeMetadata() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:231]
#22 Magento\Framework\View\Element\UiComponentFactory->create() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:137]
#23 Magento\Framework\View\Layout\Generator\UiComponent->generateComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:103]
#24 Magento\Framework\View\Layout\Generator\UiComponent->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:93]
#25 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:365]
#26 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:68]
#27 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#28 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:65]
#29 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#30 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Layout.php:271]
#31 Magento\Framework\View\Layout->build() called at [vendor/magento/framework/View/Layout.php:896]
#32 Magento\Framework\View\Layout->getBlock() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:293]
#33 Magento\Framework\View\Layout\Interceptor->getBlock() called at [vendor/magento/module-backend/Model/View/Result/Page.php:26]
#34 Magento\Backend\Model\View\Result\Page->setActiveMenu() called at [generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php:23]
#35 Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu() called at [vendor/magento/module-catalog/Controller/Adminhtml/Product/Edit.php:82]
#36 Magento\Catalog\Controller\Adminhtml\Product\Edit->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#37 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#38 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#39 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Controller/Adminhtml/Product/Edit/Interceptor.php:23]
#40 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#41 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:151]
#42 Magento\Backend\App\AbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#43 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#44 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:145]
#45 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#46 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#47 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Controller/Adminhtml/Product/Edit/Interceptor.php:32]
#48 Magento\Catalog\Controller\Adminhtml\Product\Edit\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
#49 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
#50 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:146]
#51 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#52 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#53 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#54 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#55 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#56 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#57 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#58 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]`
@asavale1
Copy link
Contributor

asavale1 commented Dec 5, 2024

@davirs we were not able to reproduce this issue, can you please provide more details on the magento version you are on, and the steps that you took to disable the module. Also did you disable all the meta modules or just the Meta_Catalog module?

@vncnt-mb
Copy link

Hello 👋
We got the same error here,
I don't know if I can help you with this but, after installing the version 1.3.5; API & google_product_category attribute page on backend give this exception:

1 exception(s):
Exception #0 (BadMethodCallException): Missing required argument $sourceData of Meta\Catalog\Model\Config\Source\Product\GoogleProductCategory.

Exception #0 (BadMethodCallException): Missing required argument $sourceData of Meta\Catalog\Model\Config\Source\Product\GoogleProductCategory.
<pre>#1 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34]
...

Looking at the code, the constructor of the model in error request a required property, that magento cannot provide, concerning the source of the eav attribute

The only ''workaround'' I found is to remove the class on source column in eav_attributes google_product_category

Technical informations
Magento 2.4.7-p3
PHP : 8.3

Thanks 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants