Inactive_user does not delete users

dtabach - August 9, 2006 - 16:44
Project:Inactive User
Version:HEAD
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have configured the module to delete users who don't login for more than 1 year, and report admin about deletion.
But nothing happens, as if the module was turned off. No user were deleted at all (I have a lot whose last access is more than 1 year), and no report sent to admin.

I've been receiving a daily cron mail notification reporting the following error:

Fatal error: Call to undefined function: drupal_mail() in /home/dtabach/public_html/archiclube/modules/modulos_extras/inactive_user/inactive_user.module on line448
.

Is this a bug, or something wrong with my site? Other cron tasks work fine (notify, indexing). I have just upgraded from 4.6.2 to 4.7.3 mainly to be able to use this module...

#1

DriesK - August 9, 2006 - 16:51

You are using the cvs version of the module. This is the development version, which works with Drupal HEAD (the upcoming Drupal 4.8/5.0), and doesn't work with Drupal 4.7.

You should download the 4.7 version of the module here: http://ftp.osuosl.org/pub/drupal/files/projects/inactive_user-4.7.0.tar.gz

#2

dtabach - August 10, 2006 - 15:50

Actually I tried the 4.7.0 version prior to the CVS. As it did nothing, I tested the CVS. It's possible that my anxiety did not allow enough time for the crons to work... But I've learnt something today, I thought I should use the latest - therefore, CVS - versions of modules , since I have the latest Drupal version...

Anyway, I installed the 4.7.0 version yesterday and it did work, but not the way I expected.

It is configured to automatically delete users that haven't logged in for more than 1 year, warning them 1 month before.

According to the report received by email this morning , the last access of deleted users were between July-10-2005 and August-6-2005. What about users whose last access was before this period?

Their accounts remain in database. If the admin/user page is sorted by Last access, you'll see a gap. There are users whose last access is in the range 1year41weeks (which is the age of my site) to 1year3weeks, and another group ranging from 51weeks6days to someseconds. How can I delete the first, older group?

Thanks

#3

dtabach - August 23, 2006 - 16:58

Perhaps I found a possible bug. Considering the module deleted only users whose last access was within 1year and 1year1month, I supposed it had something to do with the notification period. It was not deleting anybody who could not be previously notified, because the notification period (1 month) have expired.

So I temporarily turned off the notification e-mail. And all old users were gone on the following day (except those who have created some content, as expected).

What is the module supposed to do if it's set to 'warn users 1 month before' action is taken, but there are users who should be blocked/deleted more than 1 month ago?

 
 

Drupal is a registered trademark of Dries Buytaert.