Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a user is deleted after being online, its entry in "users online" block remains blank until the online expiry time is reached.
Comment | File | Size | Author |
---|---|---|---|
#7 | no-active-batch.jpg | 127.41 KB | lut4rp |
Comments
Comment #1
(not verified) CreditAttribution: commentedComment #2
moshe weitzman CreditAttribution: moshe weitzman commentedOnce we add a hook at during user_delete(), it will be easy for stats module to delete all logs related to the deleted user.
priority => minor
Comment #3
Kjartan CreditAttribution: Kjartan commentedComment #4
Jose Reyero CreditAttribution: Jose Reyero commentedI think its ok -but not that important- not to show that user on the block.
But deleting logs is a bad policiy.
As a site admin, I want to be able to see what's happened, even if the user who did something has been deleted from the system, the logs may be important.
Comment #5
LAsan CreditAttribution: LAsan commentedComment #6
dawehneri think this is solved .
This looks in the sessions table after logged in users.
and this sessions are removed, when blocking/canceling/delete users so i guess its not a issue any more
Comment #7
lut4rp CreditAttribution: lut4rp commentedTried this out on an updated HEAD a while ago. I am able to easily cancel the account (w00t) and the "Who's Online" block does not show the deleted account.
But, after I visit the link to confirm cancellation, and once the account is canceled successfully, I get a one-time error - "No active batch". This error goes away on a page refresh. Why is that?
Comment #8
dawehneri think this is a caching issue because the content of the block is cached
The block has BLOCK_CACE_PER_ROLE.
Did you tryed to clear the cache once.?
Comment #9
lut4rp CreditAttribution: lut4rp commentedAs discussed on IRC with dereine, this hasn't got anything to do with block caching since the block is working fine. Its *after* the user has successfully canceled his account that the error message appears.
Comment #10
Dave ReidThe who's online block is actually in the user.module and has nothing to do with statistics.module.
Comment #11
sun.core CreditAttribution: sun.core commentedProper title and status.
Comment #12
Jody LynnI could not reproduce this. I enabled the who's online block and cancelled accounts and got no error.
Comment #14
j0rd CreditAttribution: j0rd commentedI just re-produced this 8 year old bug.
I need it fixed. It makes absolutely no sense to the end user.
To produce in Drupal 7, Create an account. Delete account. Visit email to get your cancel link. Click link. See this message.
Not sure if it has to do with "online block", but I do have that enabled in the users profile section. aka user/UID
--
Drupal Commerce Themes & Development
Comment #15
mikran CreditAttribution: mikran commentedError is not only related to user cancel but user_save also. If currently logged in user performs batch operation which does user_save the batch operation is unable to continue. The "online block" has no effect on results.
Example can be found from user import framework module. Related issue with workaround fix: http://drupal.org/node/1221972.
Comment #16
carl.brown CreditAttribution: carl.brown commentedI've got the same problem in D7 - user clicks link in email to cancel/delete their account and sees this message/error - I DONT have the who's online block enabled however, so it would appear to be unrelated. Anyone have ideas on a fix for this?
Comment #17
Rob C CreditAttribution: Rob C commentedcan we mark this as a dupe of
http://drupal.org/node/1034828
and more modules have related issues
http://drupal.org/node/1221972
Comment #18
Devin Carlson CreditAttribution: Devin Carlson commentedWe sure can mark this as a duplicate.
Marking as a duplicate of #1034828: "No active batch" error after user cancelling own account as it seems to have more up-to-date information, even though this issue is older.
Comment #19
jdieter CreditAttribution: jdieter commentedAdmin cannot cancel and delete any users. they never go away. Need them completely deleted. get no active batch. page freezes after "are you sure" in disabled (darkened) mode. Cant delete any user.