I have written a simple extension for Magento 2 which I want to publish at the Marketplace.
But I am stuck for months to get it through the technical review process. While the CodeSniffer passes, the 2 other tests fail. This is my error message:
Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock for module Magento_InventorySales. Original exception message: The default website isn't defined. Set the website and try again.
I tested various PHP-Versions in the composer-file, various patches I found on the Internet, and various dependencies. Everything failed. Since this is a black-box I really have no idea.
If somebody has a hint or an idea, please let me know! BTW the source code is free and can be found here: https://gitlab.bounce-experts.com/bounce-experts-plugins/magento-2-bounce-experts-and-recombee-power-pack
I have some newer versions which should work with Magento 2.3. and 2.4 together, but since the error message in the review has never changed, I have not committed it yet.
The changes are related to the
now it's extending
Magento\CatalogWidget\Block\Product\ProductsList class but this class has changes in the __construct method for 2.3 and 2.4 and the order of dependencies is different which is causing compilation issues on 2.4 so this class is no longer extending ProductsList class.
Thank you in advance!