User Visits uses the hook_exit to log a user visit.
Problem: When any module fires "drupal_goto" to foward a visitor to a different node, the user receives an error (in Firefox, the drupal_goto still fires becasue Firefox can handle it, in IE 7 & 8 the page will die with "page cannot be loaded").

Answer: Function user_visits_exit uses the node_load command, which creates an infinite loop when "drupal_goto" is called by any module inside of hook_nodeapi. node_load is removed and a simple db_query(SELECT * FROM {node} WHERE ... ) is inserted.

Please review the patch and commit it if accepted.

- Jeremy

CommentFileSizeAuthor
patch_hook_exit_node_load_fix.patch1.52 KBjjchinquist

Comments

sanduhrs’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

The Drupal 5 version is not support anymore, closing.