How did I upgrade blushme.se from Magento 2.2.6 to 2.3.4?

Step 1

Removing garbage files

Step 2

Removing disabled modules:

Step 3

I have moved the Mageplaza’s modules from app/code to vendor and upgraded them

Step 4

bin/magento maintenance:enable

Step 5

DELETE FROM wishlist WHERE 0 = customer_id;

It fixes the issue:
«Duplicate entry ‘0’ for key ‘WISHLIST_CUSTOMER_ID’, query was: ALTER TABLE wishlist ADD CONSTRAINT WISHLIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID FOREIGN KEY (customer_id) REFERENCES customer_entity (entity_id) ON DELETE CASCADE, ADD CONSTRAINT WISHLIST_CUSTOMER_ID UNIQUE KEY (customer_id) ».

Step 6

rm -rf app/code/Mageplaza/Core 
rm -rf app/code/Mageplaza/Smtp

These modules will be installed via Composer.

Step 7

I replaced the the root’s composer.json file with the file from Magento 2.3.4.
Then I declared already installed third-party packages in the require section of the file:

"require": {
	"klarna/checkout": "^4.0",
	"magento/product-community-edition": "2.3.4",
	"mageplaza/module-core": "1.4.1",
	"mageplaza/module-smtp": "*",
	"mirasvit/module-search-elastic-ultimate": "*"
}

Step 8

rm -rf composer.lock
composer update

Step 9

redis-cli flushall

It solves the issue: «Unable to unserialize value. Error: Syntax error».
magento.stackexchange.com/a/196825

Step 10

Step 11

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

Step 12

I disabled the preinstalled Magento’s crapware.

Step 13

Step 14

I removed an empty Less file:

rm -f app/code/Magefan/Blog/view/frontend/web/css/blog-l.css

It fixed the error: «Compilation from source: LESS file is empty: frontend/Magento/blank/en_US/Magefan_Blog/css/blog-l.less».

Step 15

I disabled spam from Mageplaza:

bin/magento config:set mageplaza/general/notice_enable 0
bin/magento cache:clean

Step 16

rm -rf generated/*
bin/magento setup:di:compile

Step 17

rm -rf pub/static/*
bin/magento setup:static-content:deploy \
	--area adminhtml \
	--theme Magento/backend \
	-f en_US sv_SE fi_FI
bin/magento setup:static-content:deploy \
	--area frontend \
	--theme Codazon/fastest_seavus \
	-f en_US sv_SE fi_FI

Step 18

bin/magento maintenance:disable

Step 19

bin/magento config:set catalog/search/min_query_length 1
bin/magento cache:clean

It fixed the error with Mageplaza_LayeredNavigation: «Sorry, something went wrong. You can find out more in the error log.» / «The request query and filters aren’t set. Verify the query and filters and try again.».

Step 20

I have adjusted the etc/view.xml file of the used design theme to fix product images appearance:

<image id='category_page_grid_hover' type='thumbnail'>
	<width>300</width>
	<height>300</height>
	<aspect_ratio>true</aspect_ratio>
	<frame>true</frame>
</image>
1 Like

That’s cool, but it you post your blogs on Youtube, you’ll get more interactions.

Good job!

Does Redis cache static pages as well as Db?