Updating Pearl Theme for Magento 2 Open Source v1.8.5 (June 7, 2019) Essential Pack on Magento 2.3.2
Updating Pearl Theme for Magento 2 Open Source v1.8.5 (June 7, 2019) Essential Pack on Magento 2.3.2
After running setup:di:compile i get following error
Warning: Declaration of WeltPixel\CategoryPage\Block\Product\ImageBuilder::create() should be compatible with Magento\Catalog\Block\Product\ImageBuilder::create(?Magento\Cat
alog\Model\Product $product = NULL, ?string $imageId = NULL, ?array $attributes = NULL) in /var/www/clients/client5/web33/web/app/code/WeltPixel/CategoryPage/Block/Product/I
mageBuilder.php on line 164
I am able to finish setup:di:compile if replace Magento\Catalog\Block\Product\ImageBuilder class with the one from Magento 2.2.4 but that breaks product page and catalog page.
Any news on when will an update be available that supports the new changes to Magento\Catalog\Block\Product\ImageBuilder class
-
Official comment
This looks like an incompatibility between the theme files you're using and the Magento version that you're running. While upgrading the theme, it's possible that you've used the wrong set of files for the Pearl Theme.
Starting with the release of Magento 2.3.0, we've had to split our code into two separate sets, one for Magento 2.0.x - 2.2.x and one for Magento 2.3.x. Using the wrong set of files can lead to errors such as the one you're experiencing. The solution would be to go ahead and reinstall the theme (remove all theme files from the server and copy over the new ones again), making sure to use the correct set of files for your Magento version.
The instructions for the theme update can be found here: https://support.weltpixel.com/hc/en-us/articles/115004480528-How-can-I-upgrade-update-Pearl-Theme-to-latest-version-
After reinstalling with the correct set of files, the errors should be gone, and the compilation should go through fine! :)
Comment actions
Please sign in to leave a comment.
Comments
1 comment