Important
- For the pre-sale question, please feel free to contact us via live chat on Landofcoder.com ( From Monday to Friday 8:30 am - 5:30 pm GMT+7 ) or leave an offline message, we will give you a response asap.
- For technical questions, please submit a ticket below (recommended option) or send us an email via [email protected]. Our dev will support you within 24 hours since the submitted time (DO NOT support free extensions)
We are trying to upgrade from Magento 2.1.9 to 2.2.2 with the "command line upgrade" method. At the setup:di:compile phase, I am getting this error:
We are using 3 VES extensions:
I am not sure which one of these is responsible for the error on BaseWidget/Model/Config/Reader.php
To finish the 2.2.2 core upgrade, I would like to download the latest versions of all these 3 extensions. However, the downloads are NOT available when I logged in to my account page on your web site.
Please provide the latest versions. If there is a download page, please let me know.
Hello,
Thanks to the updated codes from the latest versions of VES Megamenu and VES PageBuilde, the PHP error on the Reader.php got solved.
Then, I had to manually fix one line of VES ProductSlider file.
The setup:di:compile command showed layout XML errors. I had to modify line# 39 of app/code/Ves/Productlist/view/frontend/layout/default.xml
From:
To:
I had to remove the "\\" from the beginning of the attribute value for the "class" attribute. After this change, the setup:di:compile completed without any errors, and I could finish all the rest of the bin/magento commands for Magento core upgrade process.
Now, when I open my home page, this text message is displayed where the MegaMenu used to be displayed:
Also, on the admin page, I see this Notice: unserialize() errors, when I go to [CONTENT] => [Widgets] under Elements section => and click any of the widget listed.
The error message this:
Is there a way to fix this error?
Thank you,
Yasuhiro Nakano
Let me attach the screenshots of the reported bugs on my previous post.
Hello Yasuhiro,
Have a nice day!
The problem of product list extension, please resolve it by edit the file "app/code/Ves/Productlist/etc/di.xml" then find code:
<preference for="Magento\Widget\Model\Widget\Instance" type="Ves\Productlist\Model\Magento\Widget\Instance" />
comment or remove it.
Then run commands:
php bin/magento setup:upgrade --keep-generated
php bin/magento cache:clean
Hello,
Thank you for the update on "app/code/Ves/Productlist/etc/di.xml", the PHP error on the Widget admin page is fixed now.
I figured out the error on the MegaMenu showing this error message:
It was NOT from the code. It was caused by values in the DB.
It was the first menu item on the MegaMenu. It was [New Arrivals] menu, and it had the Catalog Products List widget on the Main Content. I guess the Catalog Products List widget got changed along the Magento core upgrades, and it was causing the template filtering error.
When I deleted [New Arrivals] menu item and re-created, the menu started to work normally.
Thank you for the support,
Yasuhiro Nakano
Hello Yasuhiro,
Have a nice day!
The problem because magento 2.2.2 was changed the serialize data of widget shortcodes. The old widget shortcodes which have serialize data from old magento 2 can not use on magento 2.2.x. We should delete the widget shortcode and add it again to resolve issue.