So this is odd. Everything works great on my production server. But when I copy the db to a development environment, pages start throwing access denied to anonymous and all other users.

To fix, I have to go into the node_access table and set the node_access perms to "all" for the given node. Then to regain access, I have to visit the "dirty" url (i.e. /?q=node/4427)

Any ideas what could be going on?

Comments

Dave Cohen’s picture

Sounds like you missed something when moving the data. devel_node_access module helps troubleshoot things like this. Enable the block it provides.

Steve Dondley’s picture

Dave, yeah, I enabled the node_access output. It's not telling me anything useful except what I can already see in the node_access table and it's telling me that all users are denied access except for the uid 1 account.

The site on the devel server runs the same code base and the db is copied straight from the production server. I'm left scratching my head on this one. And it probably has nothing to do with TAC and is more of a core issue.

Steve Dondley’s picture

OK, now I'm getting somewhere. I had errors getting printed to logs. So an error is getting generated:

Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /var/www/includes/module.inc on line 483.

So the hook_node_grants function is not even getting called. Must have something to do with a difference in php versions.

Steve Dondley’s picture

Status: Active » Postponed (maintainer needs more info)

OK, this is the issue: http://drupal.org/node/589322

Marking as dup and closing.

damienmckenna’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

Thank you for your contribution to this module. Support for Drupal 6 ended a decade ago, so I'm closing out this issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.