cancel
Showing results for 
Search instead for 
Did you mean: 

php bin/magento setup:di:compile problem

php bin/magento setup:di:compile problem

hello,  i tried runing that command but shows an error

 

Compilation was started.
Repositories code generation... 1/8 [==>-----------------]  12% < 1 sec 79.0 MiBPHP Fatal error:  Declaration of MGS\Mpanel\Helper\Swatches\Data::getProductMediaGallery(Magento\Catalog\Model\Product $product) must be compatible with Magento\Swatches\Helper\Data::getProductMediaGallery(Magento\Catalog\Model\Product $product): array in /Applications/Ampps/www/magento/app/code/MGS/Mpanel/Helper/Swatches/Data.php on line 316

anyone knows what is the problem?

1 REPLY 1

Re: php bin/magento setup:di:compile problem

Hello @Hankaizhane1bd 

 

It's a theme issue of MGS, either contact them or read this which they have provided patch for this :

https://arrowhitech.ticksy.com/ticket/2327863/

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy