magento 2 disable module from backend

Hi i am new to magento and currently learning custom module for most viewed product and the module works great. now i have added a system.xml file below is the image. system.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Config:etc/system_file.xsd”> <system> <tab id=”netsmartz” translate=”label” sortOrder=”10″> <label>Netsmartz</label> </tab> <section id=”mostviewed” translate=”label” sortOrder=”130″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <class>separator-top</class> <label>Most Viewed</label> <tab>netsmartz</tab>…

magento 2 disable module from backend

Hi i am new to magento and currently learning custom module for most viewed product and the module works great. now i have added a system.xml file below is the image. system.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Config:etc/system_file.xsd”> <system> <tab id=”netsmartz” translate=”label” sortOrder=”10″> <label>Netsmartz</label> </tab> <section id=”mostviewed” translate=”label” sortOrder=”130″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <class>separator-top</class> <label>Most Viewed</label> <tab>netsmartz</tab>…

Extra parameters passed to parent construct error after upgrade

After upgrading Magento from 2.3.1 to 2.3.3, while running di:compile, it throws following error. Extra parameters passed to parent construct: $messageFactory, $emailMessageInterfaceFactory, $mimeMessageInterfaceFactory, $mimePartInterfaceFactory, $addressConverter. File: /var/www/html/aao2/store/vendor/magento/module-newsletter/Model/Queue/TransportBuilder.php Total Errors Count: 1

magento 2 disable module from backend

Hi i am new to magento and currently learning custom module for most viewed product and the module works great. now i have added a system.xml file below is the image. system.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Config:etc/system_file.xsd”> <system> <tab id=”netsmartz” translate=”label” sortOrder=”10″> <label>Netsmartz</label> </tab> <section id=”mostviewed” translate=”label” sortOrder=”130″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <class>separator-top</class> <label>Most Viewed</label> <tab>netsmartz</tab>…

Magento 2 override add wishlist controller?

I tried to override add wishlist controller from the custom module but it’s not working. app/code/Demo/WishlistRestriction/etc/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”Magento\Wishlist\Controller\Index\Add” type=”Demo\WishlistRestriction\Controller\Wishlist\Add”/> </config> app/code/Demo/WishlistRestriction/Controller/Wishlist/Add.php <?php namespace Demo\WishlistRestriction\Controller\Wishlist; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Framework\App\Action; use Magento\Framework\Data\Form\FormKey\Validator; use Magento\Framework\Exception\NotFoundException; use Magento\Framework\Exception\NoSuchEntityException; use Magento\Framework\Controller\ResultFactory; /** * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class Add extends \Magento\Wishlist\Controller\Index\Add { /** * @var \Magento\Wishlist\Controller\WishlistProviderInterface */…