magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

Magento 2.1.3 minicart is showing Blank #8461

Closed iprabhakar closed 6 years ago

iprabhakar commented 7 years ago

Hi, I have created my custom theme using the base theme of M2, but when I add product its not showing into my minicart. In console its showing *Uncaught TypeError: Cannot read property '' of undefined at Object.getAffectedSections (section-config.js:33) at HTMLDocument. (customer-data.js:344) at HTMLDocument.dispatch (jquery.js:4624) at HTMLDocument.elemData.handle (jquery.js:4292) at Object.trigger (jquery.js:4533) at Object.jQuery.event.trigger (jquery-migrate.js:493) at done (jquery.js:9328) at XMLHttpRequest.callback (jquery.js:9720)**

But products are showing on checkout/cart page.

Please, help me out from this issue.

zamson commented 7 years ago

Is the minicart opening at all? had a similar problem after DB import, and it turned out the minicart "sidebar" was disabled in the configuration.

iprabhakar commented 7 years ago

Yes, it is. But showing blank. image

zamson commented 7 years ago

Had similar issues when running developer domain like "localhost:3000" and not "xxx.dev".

iamkerly commented 7 years ago

We have the same console but the error come up when hitting Add to Cart button were using venustheme

untitled

DavidmwCollins commented 7 years ago

Anyone find an answer for this?

RedAtRareCandy commented 7 years ago

Hi @iamkerly

Is the address of your site like this? (examples) http://localhost:30124 or http://127.0.0.1:49544

I'm getting this problem too, so just trying to determine whether it's because I have a :port on the end of my url as well. I wonder if it is doing the blank cart issue because of that...

magento-engcom-team commented 7 years ago

@iprabhakar You screenshot looks like there are customizations present on your installation. Please attempt reproducing issue with a clean Magento installation, with no 3rd-party extensions.

magento-engcom-team commented 6 years ago

@iprabhakar we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.