There seems to be a problem with Commerce Kickstart 2.51 update. I have two sites both of which are running Drupal 7.56. Both have received updates [site one: CK 2.49 to 2.51] and [site two: CK 2.50 to 2.51]. All of a sudden both of the sites are having issues displaying shopping cart items to anonymous users. Besides the regular updates of CK, no other permissions have been changed or modules updated.

If I may add, when an item is added;

  1. Shopping Cart Modal pops up for anonymous user, but no items is listed in pop-up window
  2. When Anonymous user go to the shopping cart page, it says the shopping cart is empty
  3. Despite #1 and #2, when an admin goes to the active order page admin/commerce/orders, one can see the anonymous shopping cart items

I've come across similar post online but here are my take on those solutions;

  1. They suggest; Anonymous user role has not been deleted.
    It is still intact in the database
  2. They suggest: Change permission to allow Anonymous Users to View Any Product Type.
    I'm reluctant to do this as it's a security risk in my opinion
  3. They suggest: Change settings for multiple views, by disabling SQL Rewrite
    This is also a security risk as Drupal tells you this when you try to disable SQL Rewrite

Thanks for your help in advance.

CommentFileSizeAuthor
#13 2937535-13.patch214 bytesmglaman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

npoku created an issue. See original summary.

wernerglinka’s picture

I struggled with the same issue. I tracked it down to a missing plugin folder in /profiles/commerce_kickstart/modules/contrib/commerce/modules/cart/ the missing folder contains plugins/cart_provider/session.inc which I think is needed to hold the session info.

You can find the missing folder in a fresh download from here

npoku’s picture

@wernerglinka. Thanks, I'll give it a shot and let you know the outcome ASAP

wernerglinka’s picture

I am using Pantheon and just checked their upstream kickstart repo and the files are missing in the repo. I'll file an independent issue with that.

npoku’s picture

@wernerglinka. You were correct. That solved the problem. It seems that entire plugin folder /profiles/commerce_kickstart/modules/contrib/commerce/modules/cart/plugins/cart_provider was left out during the version 2.51 update.

I'm also using Pantheon. Maybe that is where the culprit is :)

npoku’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Jon Pollard’s picture

Hi, thought I'd add my experience. Updated to 2.51 yesterday and found the errors that led me here. I had downloaded the latest update and added it to my local development site. Checking the local git repo on my development server it does not have the commerce/cart/plugins directory - even though these files are on the server and not being ignored for any reason that I can see (i.e. .gitignore).

Doing some tests, a text file added anywhere below /profiles/commerce_kickstart/modules/contrib/ does not get picked up by git as a change - which does leave me wondering what else in that branch might be missing.

I'm not a git expert, but it looks like something fishy is going on and if it's happening to Pantheon too then I am in good company!

Jon Pollard’s picture

I think I've found the culprit

/profiles/commerce-kickstart/.gitignore

2.49 version

.*
!.travis.yml
!.gitignore
!.gitmodules
!.htaccess
nbproject/
*.kpf

2.51 has changed to this - 'modules/contrib' now set to be ignored

.*
!.travis.yml
!.gitignore
!.gitmodules
!.htaccess
nbproject/
*.kpf
libraries
modules/contrib
themes/contrib
tests/behat/failures

Is there a good reason for these last 4 entries to be ignored by git?

jphelan’s picture

Same issue, spent about 10 hours trying to figure it out.

bojanz’s picture

Status: Closed (fixed) » Active

Let's figure out why that gitignore was changed, and what we need to do to prevent others from tripping on the same problem.

mglaman’s picture

9334898b (Matt Glaman   2017-10-09 11:18:20 -0500  8) libraries
9334898b (Matt Glaman   2017-10-09 11:18:20 -0500  9) modules/contrib
9334898b (Matt Glaman   2017-10-09 11:18:20 -0500 10) themes/contrib
9334898b (Matt Glaman   2017-10-09 11:18:20 -0500 11) tests/behat/failures
commit 9334898bc7d3dfc3ccc20ecd30cca94097dae010
Author: Matt Glaman <nmd.matt@gmail.com>
Date:   Mon Oct 9 11:18:20 2017 -0500

    Issue #2910668 by mglaman: Fix TravisCI builds

My fault.

mglaman’s picture

Issue tags: -drupal 7, -Commerce, -commerce kickstart, -Empty Cart, -shopping cart, -anonymous user
FileSize
214 bytes

Fix.

  • mglaman committed c8967c7 on 7.x-2.x
    Issue #2937535 by mglaman, npoku, wernerglinka, Jon Pollard, jphelan,...
mglaman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.