Timeline for How can I debug why user_save() is being called twice?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:47 | history | edited | CommunityBot |
replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
|
|
Jun 25, 2013 at 12:53 | vote | accept | Patrick Kenny | ||
Jun 25, 2013 at 12:53 | answer | added | Patrick Kenny | timeline score: 1 | |
Jan 16, 2013 at 14:28 | comment | added | Patrick Kenny |
@Clive Thanks, I was able to add the call to watchdog in hook_user_update() . However, I had to enable syslog because it overloaded the watchdog reports screen; a single save of a user profile generated 685033 lines of text in the syslog file. Is there some way to look at the file and get meaningful information, because there's no way I can read a half million lines of text...
|
|
Jan 10, 2013 at 14:55 | answer | added | Jeremy French | timeline score: 0 | |
Jan 10, 2013 at 13:28 | comment | added | Clive♦ |
Adding watchdog('debug', '<pre>' . print_r(debug_backtrace(), TRUE) . '</pre>'); into an implementation of hook_user_insert() and/or hook_user_update() might be a good start, it should give you a trace of what functions were called for each run up to user_save() . Analysing that should give you an idea of what's instigating the calls at least
|
|
Jan 10, 2013 at 13:23 | history | asked | Patrick Kenny | CC BY-SA 3.0 |