cancel
Showing results for 
Search instead for 
Did you mean: 

After disable Magento_wishlist category and product not loading in 2.2.6

After disable Magento_wishlist category and product not loading in 2.2.6

 Hi,

      I am new to Magento and our store at present uses Magento 2.1.10. While building our site,  we noticed our product page loading is very slow and got update from one of the plugin supplier, the issue is due to the wishlist and asked to disable the same.After disable the wishlist through admin page. After we disable wishlist in 2.1.10,  page loading is faster. 

 

Now we thought of upgrading our site to Magento 2.2.6 and we don't have any option to disable wishlist from admin page. We tried disable the wishlist with command line (force option) / modify config.php. After disabling, both catalog and product page is not loading results error. 

HTTP ERROR 500

 

After disabling, we did ran

setup:upgrade

setup:di:compile

cache:clean

cache:flush

 

Above didn't help.

 

In the apache error.log, we see the below error:

[Sun Sep 30 18:53:04.094645 2018] [proxy_fcgi:error] [pid 3177:tid 140679673984768] [client 127.0.0.1:53758] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\\Wishlist\\Controller\\WishlistProviderInterface in /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111\nStack trace:\n#0 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Wishlis...', Array)\n#1 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\\Framework\\ObjectManager\\Factory\\Compiled->create('Magento\\\\Wishlis...')\n#2 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\\Framework\\ObjectManager\\Factory\\Compiled->get('Magento\\\\Wishlis...')\n#3 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\\Framework\\ObjectManager\\Factory\\Compiled->create('Magento\\\\Wishlis...')\n#4 /opt/bitnami/apps/magen...\n', referer: http://192.168.56.101/

 

Any help on how to get wishlist disable on Magento 2.2.6 is much appreciated.  

 

Thanks in advance for your response and help.

 

Thanks,

Muthu.

 

5 REPLIES 5

Re: After disable Magento_wishlist category and product not loading in 2.2.6

Hello @muthubills

 

Clear generated and var/cache, var/di enable Magento modules (bin/magento module:enable --all), compile DI (bin/magento setup:di:compile), and then try again.

Manish Mittal
https://www.manishmittal.com/

Re: After disable Magento_wishlist category and product not loading in 2.2.6


Hello @muthubills,

 

Yes, You can not disable Magento_Wishlist module by config.php or by command becasue that module depends on other modules, you can check here https://www.screencast.com/t/SamNVmoT
2018-10-01_10-26-35.jpg

 

To Enable/Disable Magento 2 Add to Wish List you need to do the following:

  1. On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.
  2. In the panel on the left under Customers, choose Wish List.
  3. Expand the General Options section. Then, verify that Enabled/Disable is set to "Yes/No" https://www.screencast.com/t/1KCcpcI5
    2016-02-22_16-08-46.png

You can check frontend view in which Wishlist is removed on product view and listing page also. https://www.screencast.com/t/bJpr3xoqR
2018-10-01_10-28-22.jpg

--
If my answer is useful, please Accept as Solution & give Kudos

Re: After disable Magento_wishlist category and product not loading in 2.2.6

Thanks for your response Manish. We dont' want to enable wishlist. We want the module to be disabled. The steps you have provided is to enable the module back which we don't want.

 

Thanks,

Muthu.

Re: After disable Magento_wishlist category and product not loading in 2.2.6

Hi gelanivishal,

Thanks for your response. The reason we disabled the wishlist module in config.php because we are not able to disable through cli due to dependencies.

 

Just disable the wishlist under admin panel -> Customer -> wishlist is not helping our need. 

 

Our product page (https://www.enaams.com/vbc0276-mtm-v.html) has multiple options if we enable wishlist what we noticed it takes long time for our page to load so we need to disable wishlist in 2.1.10.

Disable the below 2 places (Admin panel)

Stores Configuration -> customer -> wishlist

Stores Configuration ->  advanced -> Advanced

 

Now in 2.2.x, advanced -> advanced section was removed we are not sure how to get the wishlist module disable completely. 

 

Thanks,

Muthu.

 

 

 

 

 

Re: After disable Magento_wishlist category and product not loading in 2.2.6

Hello @muthubills,

 

Yes. I can see that your product view page take ~11 second to take load. You can check here https://gtmetrix.com/reports/www.enaams.com/6W7yZT7t

You can decrease load time by optimizing images, enable cache and set production mode on the server.

 

--
If my answer is useful, please Accept as Solution & give Kudos