Closed (won't fix)
Project:
User Visits
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 14:48 UTC
Updated:
1 Oct 2015 at 12:58 UTC
Jump to comment: Most recent
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
| Comment | File | Size | Author |
|---|---|---|---|
| patch_hook_exit_node_load_fix.patch | 1.52 KB | jjchinquist |
Comments
Comment #1
sanduhrsThe Drupal 5 version is not support anymore, closing.