Magento\Catalog\Model\Product $product = NULL, ?string $imageId = NULL, ?array $attributes = NULL
Exception #0 (Exception): Warning: Declaration of WeltPixel\OwlCarouselSlider\Block\Product\ImageBuilder::create() should be compatible with Magento\Catalog\Block\Product\ImageBuilder::create(?Magento\Catalog\Model\Product $product = NULL, ?string $imageId = NULL, ?array $attributes = NULL) in /public_html/app/code/WeltPixel/OwlCarouselSlider/Block/Product/ImageBuilder.php on line 0
I am getting this error message, How to fix this.
-
Official comment
This error is most likely caused by using the wrong set of extension files relative to the Magento version you're running. Each one of our modules comes with two sets of files:
- One for Magento 2.4.x
- One for Magento 2.3.x
You need to ensure that, when installing or upgrading one of our extensions, you use the set of files that corresponds to your Magento version. If you're unsure which set of files you used, remove the extension code completely from app/code/WeltPixel/YourExtension and copy it over to the server again, paying close attention to the Magento version requirements.
Comment actions -
bin/magento setup:di:compile -- Run this command and get below error #
Warning: Declaration of WeltPixel\OwlCarouselSlider\Block\Product\ImageBuilder::create() should be compatible with Magento\Catalog\Block\Product\ImageBuilder::create(?Magen
to\Catalog\Model\Product $product = NULL, ?string $imageId = NULL, ?array $attributes = NULL) in /home/silgo.in/web/silgo.in/public_html/app/code/WeltPixel/OwlCarouselSlide
r/Block/Product/ImageBuilder.php on line 100
Please sign in to leave a comment.
Comments
2 comments