-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cannot instantiate interface Magento\Store\Api\StoreRepositoryInterface #9
Comments
Update: This error might have been caused by the presence of env.php generated by ddev automatically. I retried by recreating the project inside the container, ensuring no additional files were created by any tools. The installer tries to launch, but I'm facing a constant redirection issue. ddev config:
|
Haven't worked with |
I've done some digging and this error happens when Magento tries to load a store and load the frontend, not the installer. |
Thanks for checking it. I'll try to fix it over the weekend. Sent from my Galaxy
-------- Original message --------From: Jakub Winkler ***@***.***> Date: 21/11/2024 16:23 (GMT+00:00) To: mage-os-lab/web-installer ***@***.***> Cc: Pawel ***@***.***>, Author ***@***.***> Subject: Re: [mage-os-lab/web-installer] Cannot instantiate interface Magento\Store\Api\StoreRepositoryInterface (Issue #9)
I've done some digging and this error happens when Magento tries to load a store and load the frontend, not the installer.
It seems like you are not executing the script under /setup/index.php
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi there,
I tried to test the installer twice today on a ddev environment, once with apache and once with nginx. Each time I got the following error:
[2024-11-21T06:12:30.872279+00:00] main.CRITICAL: Error: Cannot instantiate interface Magento\Store\Api\StoreRepositoryInterface in /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /var/www/html/vendor/mage-os/framework/ObjectManager/ObjectManager.php(73): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\A...') #1 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\A...') #2 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Store\\A...', NULL, 'storeRepository', 'Magento\\Store\\A...') #3 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument('Magento\\Store\\A...', Array, Array) #4 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Store\\A...', Array, Array) #5 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Store\\A...', Array, Array) #6 /var/www/html/vendor/mage-os/framework/ObjectManager/ObjectManager.php(73): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\A...') #7 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\A...') #8 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Store\\A...', NULL, 'storePathInfoVa...', 'Magento\\Store\\A...') #9 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument('Magento\\Store\\A...', Array, Array) #10 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Store\\A...', Array, Array) #11 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Store\\A...', Array, Array) #12 /var/www/html/vendor/mage-os/framework/ObjectManager/ObjectManager.php(73): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\A...') #13 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(170): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\A...') #14 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(276): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Store\\A...', NULL, 'subject', 'Magento\\Backend...') #15 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/AbstractFactory.php(239): Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument('Magento\\Backend...', Array, Array) #16 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Backend...', Array, Array) #17 /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Backend...', Array, Array) #18 /var/www/html/vendor/mage-os/framework/ObjectManager/ObjectManager.php(73): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Backend...') #19 /var/www/html/generated/code/Magento/Backend/App/Request/PathInfoProcessor/Proxy.php(94): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Backend...') #20 /var/www/html/generated/code/Magento/Backend/App/Request/PathInfoProcessor/Proxy.php(105): Magento\Backend\App\Request\PathInfoProcessor\Proxy->_getSubject() #21 /var/www/html/vendor/mage-os/framework/App/Request/Http.php(154): Magento\Backend\App\Request\PathInfoProcessor\Proxy->process(Object(Magento\Framework\App\Request\Http), '') #22 /var/www/html/vendor/mage-os/framework/App/Request/Http.php(169): Magento\Framework\App\Request\Http->getOriginalPathInfo() #23 /var/www/html/vendor/mage-os/framework/App/Request/Http.php(219): Magento\Framework\App\Request\Http->getPathInfo() #24 /var/www/html/vendor/mage-os/framework/App/Http.php(111): Magento\Framework\App\Request\Http->getFrontName() #25 /var/www/html/vendor/mage-os/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch() #26 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #27 {main} {"exception":"[object] (Error(code: 0): Cannot instantiate interface Magento\\Store\\Api\\StoreRepositoryInterface at /var/www/html/vendor/mage-os/framework/ObjectManager/Factory/Dynamic/Developer.php:50)"} []
I followed the installation instruction from the repository
The text was updated successfully, but these errors were encountered: