-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Unable to install Magento 2 if a console command depends on ProductRepositoryInterface #22777
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
Comments
Hi @marcusirgens. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @marcusirgens do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
More specifically, it seems to occur when the install/date key exists in the app/etc/env.php file |
Duplicate of #16173 I think. |
Hi @stoleksiy. Thank you for working on this issue.
|
Hi @marcusirgens, thank you for you report, i'm closing this as duplicate to this -> #16173 |
Uh oh!
There was an error while loading. Please reload this page.
Preconditions (*)
Steps to reproduce (*)
Magento\Catalog\Api\ProductRepositoryInterface
into its constructorExpected result (*)
Magento will be installed
Actual result (*)
Magento is not installed. At step 4,
Installing database schema
, the installer will fail with the exception:Base table or view not found: 1146 Table 'YOUR_DATABASE_NAME.store_website' doesn't exist
The exception occurs because
Magento\Framework\Locale\Resolver
has logic in its constructor that ends up making a database query. The "creation stack" goes down through\Magento\Framework\Stdlib\DateTime\Timezone
->Magento\Framework\Stdlib\DateTime\Filter\Date
->Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper
->\Magento\Catalog\Model\ProductRepository
.The text was updated successfully, but these errors were encountered: