Closed (fixed)
Project:
User Prune
Version:
7.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2018 at 13:45 UTC
Updated:
13 Apr 2019 at 22:14 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
ivnishComment #3
ivnishComment #4
Viktor-T commentedcan confirm, something went wrong. will take a look at this on the weekend.
Comment #5
Viktor-T commentedcould you please test this patch. looks like the batch_process call was missing after the user_cancel function. Works on my local, but would be good to have a confirmation.
Comment #6
ivnishAfter patch users deleted, but every run cron get error
In watchdog many errors
Comment #7
Viktor-T commentedHi,
I was unable to reproduce this error. Could you please check if there is anything strange with the user id from the error? Something preventing Drupal's batch script to run on that id. Would be the best testing on a fresh install to be sure it is not a possible issue on the site creating the error.
Regards,
Viktor
Comment #8
ivnishI try fresh install, one user removed without error. But next cron run get the same errors:
Notice: Undefined index: sets in function batch_process()
Warning: Invalid argument supplied for foreach() in function batch_process()
Notice: Undefined index: sets in function _batch_page()
Warning: Invalid argument supplied for foreach() in function _batch_page()
Notice: Undefined index: success in function _batch_process()
Comment #9
ivnishTry my patch, it works without errors (users deleted)
Comment #11
Viktor-T commentedlooks great to me, added to the 1.x branch, will create a release soon
Comment #12
ivnishYeah, thanks!
Comment #13
Viktor-T commentedComment #14
Viktor-T commentedComment #15
joshuautley commentedAfter patching the module I receive the following and am unable to run cron.
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows.
Path: /batch?id=1008&op=do
Status Text: Service unavailable (with message)
ResponseText:
Location /batch?id=1012&op=do
Referrer /batch?op=start&id=1012
Message Error: Call to a member function claimItem() on null in _batch_process() (line 274 of /web/content/includes/batch.inc).
Severity error