setup:di:compile error
Hello,
I'm upgrading my magento website to 2.3.2 version but when I got to step 'setup:di:compile', I got this error:
Warning: Declaration of WeltPixel\OwlCarouselSlider\Block\Product\ImageBuil
der::create() should be compatible with Magento\Catalog\Block\Product\Image
Builder::create(?Magento\Catalog\Model\Product $product = NULL, ?string $im
ageId = NULL, ?array $attributes = NULL) in /web/iface/public_html/vendor/w
eltpixel/m2-weltpixel-owl-carousel-slider-theme-free/Block/Product/ImageBui
lder.php on line 100
the compilation is stopped. How to fix it?
-
It's been 3 months so I imagine OP resolved this. However, it may be useful to someone else.
Had this issue when I attempted to put a 2.3.2 site into production mode which had WeltPixel Banner Slider.
Thankfully, I got there in the end.- Remove the app/code/WeltPixel folder
- Download the latest version (in my case it was 1.9.2)
- Re-upload the zipped file contents (make sure to include the composer.json, for whatever reason I missed that!)
- Re-do compilation, or whatever you need to do.
I was still getting the above error, despite upgrading the plugin. This is why step 1 is key, as it'll still error if ImageBuilder.php is still present. They removed some files from the extension, so removing and re-uploading (as opposed to overwriting) is the way to do this.
Hope this helps. :-) - Remove the app/code/WeltPixel folder
Please sign in to leave a comment.
Comments
2 comments