How did I upgrade shiftsst.com from Magento 2.2.8 to 2.3.2?

Step 1

bin/magento module:enable Magento_Review

It fixes the issues:

Step 2

I removed all sample data packages and the magento/data-migration-tool package:
I deleted the following block from the root’s composer.json file:

"magento/module-bundle-sample-data": "100.2.*",
"magento/module-sales-sample-data": "100.2.*",
"magento/module-customer-sample-data": "100.2.*",
"magento/module-catalog-sample-data": "100.2.*",
"magento/module-theme-sample-data": "100.2.*",
"magento/module-cms-sample-data": "100.2.*",
"magento/module-widget-sample-data": "100.2.*",
"magento/module-tax-sample-data": "100.2.*",
"magento/module-catalog-rule-sample-data": "100.2.*",
"magento/module-review-sample-data": "100.2.*",
"magento/module-sales-rule-sample-data": "100.2.*",
"magento/module-downloadable-sample-data": "100.2.*",
"magento/module-msrp-sample-data": "100.2.*",
"magento/module-wishlist-sample-data": "100.2.*",
"magento/module-configurable-sample-data": "100.2.*",
"magento/module-product-links-sample-data": "100.2.*",
"magento/module-grouped-product-sample-data": "100.2.*",
"magento/module-offline-shipping-sample-data": "100.2.*",
"magento/module-swatches-sample-data": "100.2.*",
"magento/sample-data-media": "100.2.*",
"magento/data-migration-tool": "2.2.7",

Step 3

bin/magento maintenance:enable
rm -rf composer.lock
composer update

Step 4

I temporary swiched Magento to the developer mode in the app/etc/env.php file.
It fixed the issue «Cannot instantiate interface Magento\Framework\MessageQueue\ConfigInterface» on bin/magento setup:upgrade.

Step 5

bin/magento setup:upgrade
bin/magento cache:enable

Step 6

«Parse error: syntax error, unexpected ‘}’, expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in app/code/Amasty/Finder/Block/Inlineform.php on line 258»

Step 7

rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy \
	--area adminhtml \
	--theme Magento/backend \
	-f en_US
bin/magento setup:static-content:deploy \
	--area frontend \
	--theme Sm/autostore \
	-f en_US
bin/magento maintenance:disable

Step 8

I replaced the root’s composer.json with the file from Magento 2.3.2.
Then I added the 2 third-party packages to it:

"mageplaza/magento-2-seo-extension": "*",
"mageplaza/module-sitemap": "*"		

Step 9

bin/magento maintenance:enable
rm -rf composer.lock
composer update
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy \
	--area adminhtml \
	--theme Magento/backend \
	-f en_US
bin/magento setup:static-content:deploy \
	--area frontend \
	--theme Sm/autostore \
	-f en_US
bin/magento maintenance:disable

Step 10

How to restore the «Check out with PayPal» button in Magento ≥ 2.3.1?

Step 11

The /amfinder?find=<...> products lists show some images with a wrong height in Magento 2.3.2

Step 12

Install the shiftsst/core module: github.com/shiftsst/core#how-to-install
It contains a lot of custom modifications which were direct hacks of the Magento 2.2.8 core of the shiftsst.com website.
Also, it fixes the issue: How to remove the «PayPal CREDIT» button in Magento ≥ 2.3.1?

Step 13

Disable the Magento_Review module’s output (as the module was disabled in Magento 2.2.8).
Do it in app/etc/env.php:

'system' => [
	<...>
	,'websites' => [
		'base' => [
			'advanced' => [
				'modules_disable_output' => [
					'Magento_Review' => '1',
				],
			],
		],
	]
]

Then run:

bin/magento app:config:import

Step 14

The “Shipping Methods” block does not show rates in Magento 2.3.2

Step 15

chown -R -v www-data /var/www && chgrp -R -v www-data /var/www

Step 16

I switched Magento back to the production mode.

1 Like

This is fantastic! Very thorough and great information. Thanks, Dmitry!