I have been trying to get this to work for hours, it's driving me crazy. No matter what I try, the node access is not granted.

I believe everything is set up properly. I am trying to set up a series of videos that the user is given access to one week at a time. Each video display page was set up as a book page content type. In the product features, I have assigned node access to the toc page as well as the first video with zero delay. Then the second video page's node access is assigned with a one week delay, etc.

In addition, I have added a special role assignment, which does not affect the permissions granted to the node.

I have tried this 17 ways to Sunday and every single time my test user places an order, the node access is NOT granted. The order log shows the payment being received, the order being updated, the role assignment added, the notifications are sent (and received), but no node access is granted. It just doesn't happen.

I am able to grant it manually with no problem.

I am really pulling my hair out here. If someone could please help me I'd be grateful!

Lisa

Comments

LPecunia’s picture

Title: Node Access is Not Granted » Check this other thread if this is happening to you too.

As usual, as soon as I post an issue, a solution comes.

It had to do with the default CA not being set up properly. I used this comment to fix it:
http://drupal.org/node/551340#comment-2754788

However, I did have to make one change because of the delay settings for my product's node access assignment. Instead of the action being Action: Grant node access to customer, I had to change it to Action: Grant node access to customer at a later time.

And thanks to Anthonyjhall, you are a life saver, I was about to give up on this module and start over with something else. (ack!)

webservant316’s picture

Ok I read the link above and tried to do the same thing as you, but I am still frustrated getting this module to work.

I disabled the default CA from uc_node_access which was defined to 'grant node access at a later time' if an order status was not marked 'payment received' and the order balance is now <= $0. I don't know why uc_node_access would grant access 'at a later time' rather than immediately, but regardless this CA would not work for us because in our store we simply mark all orders as completed after checkout whether payment is yet received or not.

So I then created a new CA to just grant node access without any conditions when check out is completed. This seemed to be a brute force means to test this module... but node access is still not granted after I check out!

Hmmm, what am I doing wrong.

akalata’s picture

Title: Check this other thread if this is happening to you too. » Node Access is Not Granted

Sharing solutions is great, just don't change the issue title. :)

jeremy.zerr’s picture

@webservant316

Are you still having this issue?

webservant316’s picture

got it working.

first issue was getting node_access and taxonomy_access to work together. I was using taxonomy_access to control the availability of terms on nodes for particular users as well as for access to the node. it is not recommended to use two permission modules and I couldn't get the two to play together nicely until I quit using taxonomy_access for node access perm. so now I only use node_access to control permission to access the node, but I continue to use taxonomy_access for permission to use terms only. works great.

regarding use of uc_node_access I created an action that marks my order as complete period at the end the sale, even if payment by check hasn't been received. we don't use Ubercart to track order completions anyway. then another uc_node_access CA is used to grant perms for all completed orders.

I did get it working and if I mention a glitch above, I think is was related to trying to use both content_access and taxonomy_access to permission to the node at the same time. as already stated I stopped using taxonomy_access for nor permission, but only term permission.

all seems to work well now. hope you have the same success.

jeremy.zerr’s picture

Status: Active » Closed (fixed)

Glad to hear it.

Closing...