Dear Magento developers,
I am trying to to upgrade Magento 2.1.12 CE To Magento 2.3.2 CE I followed official dev docs instructions https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html until the step :
Update the database schema and data
php bin/magento setup:upgrade
it doesnt seem to work
and it always throws the error message
Cache cleared successfully
File system cleanup:
/var/www/magento2/project/generated/code/Composer
/var/www/magento2/project/generated/code/MSP
/var/www/magento2/project/generated/code/Magento
/var/www/magento2/project/generated/code/Thirdparty1
/var/www/magento2/project/generated/code/Thirdparty2
/var/www/magento2/project/generated/code/Symfony
The directory '/var/www/magento2/project/generated/metadata/' doesn't exist - skipping cleanup
Updating modules:
Schema creation/updates:
PHP Fatal error: Uncaught TypeError: Return value of Magento\Framework\Setup\Declaration\Schema\Declaration\SchemaBuilder::processTable() must be an instance of Magento\Framework\Setup\Declaration\Schema\Dto\Table, boolean returned in /var/www/magento2/project/vendor/magento/framework/Setup/Declaration/Schema/Declaration/SchemaBuilder.php:251
Stack trace:
#0 /var/www/magento2/project/vendor/magento/framework/Setup/Declaration/Schema/Declaration/SchemaBuilder.php(148): Magento\Framework\Setup\Declaration\Schema\Declaration\SchemaBuilder->processTable(Object(Magento\Framework\Setup\Declaration\Schema\Dto\Schema), Array)
#1 /var/www/magento2/project/vendor/magento/framework/Setup/Declaration/Schema/SchemaConfig.php(78): Magento\Framework\Setup\Declaration\Schema\Declaration\SchemaBuilder->build(Object(Magento\Framework\Setup\Declaration\Schema\Dto\Schema))
#2 /var/www/magento2/project/setup/src/Magento/Setup/Model/DeclarationInstaller.php(57): Magento\Framework\Setup\Declaration\Schema\SchemaConfig->getDeclarationConfig()
#3 /var/www/ma in /var/www/magento2/project/vendor/magento/framework/Setup/Declaration/Schema/Declaration/SchemaBuilder.php on line 251
by the way if I remove app/etc/env.php I can bypasse this erreur message in web installer wizard but after that the commande still doesnt work.
thanks in advance
catalog_category_product_index_store1_store1
(category_id
,product_id
,position
,is_parent
,store_id
,visibility
) SELECTcatalog_category_product_index_store1
.* ...