Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minicart is always empty with luma theme #5554

Closed
kfaer opened this issue Jul 8, 2016 · 19 comments
Closed

Minicart is always empty with luma theme #5554

kfaer opened this issue Jul 8, 2016 · 19 comments

Comments

@kfaer
Copy link

kfaer commented Jul 8, 2016

bought items added to cart but it is not showing in the minicart, how i can trust M2 to sell my products to my customers with such issue.
@antboiko
m2-minicart

@commcad
Copy link

commcad commented Jul 9, 2016

Are you 'freely' complaining mate!? M2 is new and still in dev - if you can't fix it or make it better/faster than Magento Inc then by all means buy yourself a mature ecommerce platform. Lucky you; those retail more or less $100k~$500k.

Note that I've had that same issue on M2.1.0 RC3 to find out that my permissions weren't set properly on my /root when I've initially installed it.

@kfaer
Copy link
Author

kfaer commented Jul 9, 2016

OK.. so do you think it is still too early to use M2.1 in production?

@commcad
Copy link

commcad commented Jul 9, 2016

Happily in prod with M2.1.0GA here bud. Just make sure you install it correctly with properly set and maintained permissions. The only true "operational" issue I came across was the dB schema (#4785) and (less operational related) some email templates that weren't loading correctly (#5101).

Both offering quick fixes. Of course there are few other bugs but nothing in the lines that would make you and/or your customers to fail. So I'd say yes, good enough for prod.

Other than that, the thing is flying at 100mph and selling days & nights here.

@kfaer
Copy link
Author

kfaer commented Jul 9, 2016

ok.. can you test my site from your side and check if you can add a product/s to cart? herara.com

@commcad
Copy link

commcad commented Jul 9, 2016

Run below first and I'll give it a try:

(replace: m2user as in your login account and www-data as your nginx/apache group)

cd /your m2 root/

sudo usermod -g www-data m2user
sudo chown -R m2user:www-data .
find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} ;
find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} ;
chown -R :www-data .
chmod u+x bin/magento

Once you've set perms, run below to bring it back to an ootb stance.

rm -rf /var/www/mydomain.com/var/di
rm -rf /var/www/mydomain.com/pub/static/frontend/
rm -rf /var/www/mydomain.com/var/view_preprocessed/*
rm -rf /var/www/mydomain.com/var/page_cache/*
rm -rf /var/www/mydomain.com/var/generation/*
php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy && php bin/magento indexer:reindex && php bin/magento cache:clean && php bin/magento cache:flush

Let me know and I'll give it a go

@kfaer
Copy link
Author

kfaer commented Jul 9, 2016

I'm using centos 7 with plesk

@commcad
Copy link

commcad commented Jul 9, 2016

Just adjust so centos doesn't complain. Should be the same or similar.

Tried your site and you are correct, minicart does not increment :/

@kfaer
Copy link
Author

kfaer commented Jul 9, 2016

it will increment if you visit the checkout/cart page then wait for the summary to load (i do not know why it takes time to load) only at that time the minicart works....!

@stevekem
Copy link

#5144 (comment)

@stevekem
Copy link

Might be a different issue than what your having, but thought I would share.

@kfaer
Copy link
Author

kfaer commented Jul 10, 2016

@stevekem thank you, I think that solve the issue, testing , @commcad could you please test it, thank you

@commcad
Copy link

commcad commented Jul 10, 2016

No, not working. If not perms related then it looks as if you have 'session' issues. Does not checkin nor increment your minicart and the green banner trails for a few pages.

I see that you have tried to reinstall everything. How are you managing your sessions? use M2's cache, Opcache, memcache, others? redis?

@kfaer
Copy link
Author

kfaer commented Jul 11, 2016

I'm using M2's cache but php opcashe is enabled

@antboiko antboiko self-assigned this Jul 11, 2016
@hgpit
Copy link

hgpit commented Jul 12, 2016

@commcad. How can M2.1 still be officially considered "in dev" when they're offering it in the official downloads area for corporate/enterprise customers and charging ~£18k/year for the privilege?
There are ZERO "beta"/"in dev" disclaimers via the corporate portal and whenever I have contacted their corporate support regarding M2.x they've never told me to go back to M1. Simply go to https://magento.com - does that look like they're pushing an "in dev" product?

That being said, Magento 2.x is a sorry excuse for a business-ready solution. If it was free across the board (CE & EE) I could accept it, but instead it's quite laughable how Magento have the cheek to charge such amounts for such poorly developed software. I work with a lot of open source software, and most of it is great; amazing feats of software engineering in fact. But M2.x is nothing more than a train wreck in its current state. I truly hope it "matures" into a great platform, because the potential is there, but right now I wouldn't recommend it to any serious merchant - despite what Magento corporate would have you believe.

@commcad
Copy link

commcad commented Jul 12, 2016

Always had in mind that open source meant WIP. Regardless of the little adds and fancy pics (and all that CSS Three point Ohh)

Broader view; would you agree that modern technologies as a whole are a train wreck on its own? Investing in those sectors is pretty similar to gambling my friend, last time I’ve checked (looking at it from a board member’s perspective, mind you). Magento aside; there is a new programing language/library born every single weeks some having their name and purpose possibly ported to a random maiden’s name, who f n knows. That perfect eco-tech world you dream of is not going to get any better. Calls on the IEEE and the like.

My point is even if XYZ Corp is doing better now does not explicitly mean that they will in a 24months. In these circumstances, what then constitutes a serious online merchant in your opinion?!

Side note; we make products and excel in our areas of expertise (SME). Little experience in the Magento core engine myself (couldn’t care less maybe) but quite familiar with their newly established corporate product life cycle “and transparencies”. That’s what makes us feel integrated in all honesty. Meaningless bugs or not, at the end of the day Magento works for us and does/did for quite a few other retailers (correct me if I’m wrong).

@hgpit

@vkorotun vkorotun added Area: Frontend and removed CS labels Aug 3, 2016
@kfaer
Copy link
Author

kfaer commented Aug 15, 2016

@vkorotun, seriously it is something Confusing, same installation, same files, same DB different domains, one is working fine the other is not, check herara.com (M2 mini cart not function) & the other yahbee.com working fine......?! installation is M2.1

@commcad
Copy link

commcad commented Aug 17, 2016

The yah domain loads up so much faster btw, from Los Angeles anyway. Time to get stuff listed my friend ;)

Some ref for you to dig in

#5807
#5854
https://github.com/magento/magento2/issues?utf8=%E2%9C%93&q=minicart%20fix

@veloraven
Copy link
Contributor

@kfaer thank you for reporting.
Is this issue still actual?
If it is please specify exact Magento version you use.
Please also specify if it was clear install or upgrade from previous version.
And please, format this issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result.
If the issue is not actual for you now, please close it.

@veloraven
Copy link
Contributor

According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.

mmansoor-magento pushed a commit that referenced this issue Oct 15, 2020
[TSG] Fixes for 2.3 (pr120) (2.3.6-develop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants