Closed (outdated)
Project:
Activity
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2011 at 20:11 UTC
Updated:
29 Oct 2025 at 14:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
JGonzalez commentedAdditional information:
This is being caused by adding the 'Activity:Node' relationship to my view.
Comment #2
aacraig commentedAny update on this? I see the same error on a fresh installation of Activity.
Comment #3
selfsimilar commentedI'm also seeing this, but with a different line number.
Notice: Undefined index: table in _node_query_node_access_alter() (line 3195 of modules/node/node.module).And I'm seeing one notice for each activity entry that won't show up, which are events with hooks to User Login and User Logout. But the messages for "Node Insert" is showing fine, w/o error.
Same version of Activity as above, running on Drupal 7.10
Comment #4
krisgraham commentedSame issue here - subscribing
Comment #5
Snakey_P commentedI am getting the same. I think it is mainly due to the log out hook, as I got six of these, representing six logouts. I have now deleted the logout activity and have not had anny more errors appear, but the ones that are there are not going away.
Any help would be greatly appreciated.
Comment #6
javdich commentedAlso having this error. Agree it may be a problem with adding the 'Activity:Node' relationship to a view.
Comment #7
Routh commentedHaving the same issue. Only with anonymous users, and another line number: 3228
Notice: Undefined index: table in _node_query_node_access_alter() (line 3228 of /var/www/drupal7/modules/node/node.module).Comment #8
adf1969 commentedThe issue is that activity is not implementing the foreign keys setting correctly in schema. (see: http://api.drupal.org/api/drupal/includes%21database%21schema.inc/group/...)
The attached patch fixes it for me.
Comment #10
raphaelhuefner commentedRe-roll patch from #1292760-8: Causes undefined index _node_query_node_access_alter with the better foreign key definition format, but now for all tables defined in
activity_schema()Comment #11
_shyD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.
Thanks!