magento / magento/magento2-sample-data

Unable to run magento after "sampledata:deploy"

Open
#183 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
212
Forks
266
PR merge metrics
No merged PRs in 30d

Description

Version: 2.4.7

I am using following docker container https://hub.docker.com/r/bitnami/magento magento was running.
I tried to install sample data, every command was successful:
```
bin/magento sampledata:deploy
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
bin/magento cache:flush
```

Result:

```
Error: Class "Magento\ThemeSampleData\Plugin\View\Page\Config" not found in /bitnami/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
Stack trace:
#0 /bitnami/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject()
#1 /bitnami/magento/vendor/magento/framework/ObjectManager/ObjectManager.php(73): Magento\Framework\ObjectManager\Factory\Compiled->create()
#2 /bitnami/magento/vendor/magento/framework/Interception/PluginList/PluginList.php(173): Magento\Framework\ObjectManager\ObjectManager->get()
#3 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(144): Magento\Framework\Interception\PluginList\PluginList->getPlugin()
#4 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Page\Config\Interceptor->Magento\Framework\Interception\{closure}()
#5 /bitnami/magento/generated/code/Magento/Framework/View/Page/Config/Interceptor.php(23): Magento\Framework\View\Page\Config\Interceptor->___callPlugins()
#6 /bitnami/magento/vendor/magento/framework/View/Page/Config/Renderer.php(138): Magento\Framework\View\Page\Config\Interceptor->getIncludes()
#7 /bitnami/magento/vendor/magento/framework/View/Result/Page.php(252): Magento\Framework\View\Page\Config\Renderer->renderHeadContent()
#8 /bitnami/magento/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render()
#9 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult()
#10 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent()
#11 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}()
#12 /bitnami/magento/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(95): Magento\Framework\View\Result\Page\Interceptor->___callPlugins()
#13 /bitnami/magento/vendor/magento/framework/App/Http.php(120): Magento\Framework\View\Result\Page\Interceptor->renderResult()
#14 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch()
#15 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent()
#16 /bitnami/magento/vendor/magento/module-application-performance-monitor/Plugin/ApplicationPerformanceMonitor.php(38): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}()
#17 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(135): Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->aroundLaunch()
#18 /bitnami/magento/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}()
#19 /bitnami/magento/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins()
#20 /bitnami/magento/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#21 /bitnami/magento/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#22 {main}
```

Missing class exist on disk:

![image](https://github.com/user-attachments/assets/462a233e-7f96-4e4e-8ca1-ec36976a89c6)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed bin/magento sampledata:deploy and setup commands in the referenced Bitnami Magento 2.4.7 container. Trace the missing Magento\ThemeSampleData\Plugin\View\Page\Config from vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php and verify the class shown as present on disk. Done means the application runs after sample-data deployment without this class-loading error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.