Skip to content

error when attempting to access the Catalog > Products page in the Magento Admin Panel #39774

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

Closed
1 of 5 tasks
heipi33 opened this issue Mar 27, 2025 · 4 comments
Closed
1 of 5 tasks
Assignees
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.7-p4 Indicates original Magento version for the Issue report.

Comments

@heipi33
Copy link

heipi33 commented Mar 27, 2025

Preconditions and environment

  • Magento version 2.4.7p4
  • Anything else that would help a developer reproduce the bug

When attempting to access the Catalog > Products page in the Magento Admin Panel, I encounter the following error message:
main.CRITICAL: Error: Cannot instantiate interface Magento\InventoryConfigurationApi\Model\IsSourceItemManagementAllowedForProductTypeInterface

Steps to reproduce

Steps to Reproduce:

  1. I pulled the Magento source code from GitHub and followed the standard installation process.
  2. I ran the following commands, but they didn’t solve the issue:
    php bin/magento setup:di:compile  
    php bin/magento setup:static-content:deploy  
    php bin/magento indexer:reindex  
  3. Despite running those commands, I still encounter the error when accessing the Admin Panel > Catalog > Products page:
    Error: Cannot instantiate interface Magento\InventoryConfigurationApi\Model\IsSourceItemManagementAllowedForProductTypeInterface
    

Additional Issue:
Every time I try to access the Magento Admin Panel, it doesn't redirect to the dashboard automatically. I have to manually re-run these commands for the admin area to function correctly:

php bin/magento setup:upgrade  
php bin/magento setup:di:compile  
php bin/magento setup:static-content:deploy  
php bin/magento indexer:reindex  

Expected result

What I Need Help With:

  • How can I properly resolve the issue related to instantiating the interface?
  • Why does the admin panel fail to redirect to the dashboard unless I re-run all the setup commands each time?

Any help or suggestions would be greatly appreciated.

Actual result

[2025-03-27T19:19:25.034465+00:00] main.CRITICAL: Error: Cannot instantiate interface Magento\InventoryConfigurationApi\Model\IsSourceItemManagementAllowedForProductTypeInterface in E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\Factory\Dynamic\Developer.php:50
Stack trace:
#0 E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\ObjectManager.php(73): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create()
#1 E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\Factory\AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager->get()
#2 E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\Factory\AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument()
#3 E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\Factory\AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument()
#4 E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\Factory\Dynamic\Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime()
#5 E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\Factory\Dynamic\Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments()
#6 E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\ObjectManager.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create()
#7 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Element\UiComponentFactory.php(173): Magento\Framework\ObjectManager\ObjectManager->create()
#8 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Element\UiComponentFactory.php(150): Magento\Framework\View\Element\UiComponentFactory->createChildComponent()
#9 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Element\UiComponentFactory.php(247): Magento\Framework\View\Element\UiComponentFactory->createChildComponent()
#10 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout\Generator\UiComponent.php(137): Magento\Framework\View\Element\UiComponentFactory->create()
#11 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout\Generator\UiComponent.php(103): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent()
#12 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout\GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\UiComponent->process()
#13 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process()
#14 E:\World\magento\code\magento\generated\code\Magento\Framework\View\Layout\Interceptor.php(68): Magento\Framework\View\Layout->generateElements()
#15 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout\Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#16 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Page\Builder.php(65): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#17 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout\Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#18 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout.php(271): Magento\Framework\View\Layout\Builder->build()
#19 E:\World\magento\code\magento\lib\internal\Magento\Framework\View\Layout.php(896): Magento\Framework\View\Layout->build()
#20 E:\World\magento\code\magento\generated\code\Magento\Framework\View\Layout\Interceptor.php(293): Magento\Framework\View\Layout->getBlock()
#21 E:\World\magento\code\magento\app\code\Magento\Backend\Model\View\Result\Page.php(26): Magento\Framework\View\Layout\Interceptor->getBlock()
#22 E:\World\magento\code\magento\generated\code\Magento\Backend\Model\View\Result\Page\Interceptor.php(23): Magento\Backend\Model\View\Result\Page->setActiveMenu()
#23 E:\World\magento\code\magento\app\code\Magento\Catalog\Controller\Adminhtml\Product\Index.php(41): Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu()
#24 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(58): Magento\Catalog\Controller\Adminhtml\Product\Index->execute()
#25 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(138): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callParent()
#26 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(153): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception{closure}()
#27 E:\World\magento\code\magento\generated\code\Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor.php(23): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callPlugins()
#28 E:\World\magento\code\magento\lib\internal\Magento\Framework\App\Action\Action.php(111): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->execute()
#29 E:\World\magento\code\magento\app\code\Magento\Backend\App\AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch()
#30 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch()
#31 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(138): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callParent()
#32 E:\World\magento\code\magento\app\code\Magento\Backend\App\Action\Plugin\Authentication.php(145): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception{closure}()
#33 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch()
#34 E:\World\magento\code\magento\app\code\Webkul\Marketplace\Plugin\App\Action\Context.php(56): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception{closure}()
#35 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(135): Webkul\Marketplace\Plugin\App\Action\Context->aroundDispatch()
#36 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(153): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception{closure}()
#37 E:\World\magento\code\magento\generated\code\Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor.php(32): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callPlugins()
#38 E:\World\magento\code\magento\lib\internal\Magento\Framework\App\FrontController.php(245): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->dispatch()
#39 E:\World\magento\code\magento\lib\internal\Magento\Framework\App\FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
#40 E:\World\magento\code\magento\lib\internal\Magento\Framework\App\FrontController.php(146): Magento\Framework\App\FrontController->processRequest()
#41 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
#42 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
#43 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()
#44 E:\World\magento\code\magento\generated\code\Magento\Framework\App\FrontController\Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
#45 E:\World\magento\code\magento\lib\internal\Magento\Framework\App\Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
#46 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(58): Magento\Framework\App\Http->launch()
#47 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent()
#48 E:\World\magento\code\magento\app\code\Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor.php(38): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception{closure}()
#49 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(135): Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->aroundLaunch()
#50 E:\World\magento\code\magento\lib\internal\Magento\Framework\Interception\Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception{closure}()
#51 E:\World\magento\code\magento\generated\code\Magento\Framework\App\Http\Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins()
#52 E:\World\magento\code\magento\lib\internal\Magento\Framework\App\Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#53 E:\World\magento\code\magento\pub\index.php(30): Magento\Framework\App\Bootstrap->run()
#54 {main} {"exception":"[object] (Error(code: 0): Cannot instantiate interface Magento\InventoryConfigurationApi\Model\IsSourceItemManagementAllowedForProductTypeInterface at E:\World\magento\code\magento\lib\internal\Magento\Framework\ObjectManager\Factory\Dynamic\Developer.php:50)"} []

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Copy link

m2-assistant bot commented Mar 27, 2025

Hi @heipi33. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

@engcom-Bravo engcom-Bravo self-assigned this Mar 28, 2025
Copy link

m2-assistant bot commented Mar 28, 2025

Hi @engcom-Bravo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Bravo engcom-Bravo added the Reported on 2.4.7-p4 Indicates original Magento version for the Issue report. label Mar 28, 2025
@engcom-Bravo
Copy link
Contributor

Hi @heipi33,

Thanks for your reporting and collaboration.

We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.kindly refer the screenshots.

Image

We are able to accees the Catalog > Products page in the Magento Admin Panel without errors.

Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible.

Thanks.

@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Mar 28, 2025
@github-project-automation github-project-automation bot moved this to Ready for Confirmation in Issue Confirmation and Triage Board Mar 28, 2025
@engcom-Bravo engcom-Bravo moved this from Ready for Confirmation to Needs Update in Issue Confirmation and Triage Board Mar 28, 2025
@engcom-Bravo
Copy link
Contributor

Hi @heipi33,

This issue is being closed since it has not been updated in a long time.Please feel free to reopen or raise a new ticket if the issue still exists.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.7-p4 Indicates original Magento version for the Issue report.
Projects
None yet
Development

No branches or pull requests

2 participants