Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Purge Users not working

Quote Reply
Purge Users not working
I just upgraded to 2.2.3 from a 2.1.1 installation and my Purge Users option appears to be broken. It seems to works okay for 10-15 users, but when it pops open a window to do 800 users, the progress bar doesn't move at all. I check the mysql query list and there is no activity whatsoever. Is anyone aware of any breakage that might have occured between 2.1.1 and now? I know my Purge Users was working fine in 2.1.1.
Quote Reply
Re: [grid] Purge Users not working In reply to
Well, I did a little digging in the code and it appears there's a bug when Payment is disabled. It looks for purge_type and fails because user_purge_confirm.html doesn't pass purge_type properly.

Here is the patch.

Code:
--- user_purge_confirm.html.orig 2004-05-13 01:37:59.000000000 -0700
+++ user_purge_confirm.html 2004-05-13 01:38:14.000000000 -0700
@@ -8,7 +8,7 @@
<script language="JavaScript" type="text/javascript">

function purge () {
- chkwin = window.open('admin.cgi?page=progress.html;progress_do=action%3DGMail::Admin::Purge::users_purge_progress%3Bpurge_days=<%purge_days%>;purge_type=<%purge_type%>;rand=' + Math.random(), 'status', 'scrollbars=no,width=330,height=150');
+ chkwin = window.open('admin.cgi?page=progress.html;progress_do=action%3DGMail::Admin::Purge::users_purge_progress%3Bpurge_days=<%purge_days%>%3Bpurge_type=<%purge_type%>;rand=' + Math.random(), 'status', 'scrollbars=no,width=330,height=150');
}
</script>
<%endif%>

Last edited by:

grid: May 13, 2004, 1:46 AM
Quote Reply
Re: [grid] Purge Users not working In reply to
Thanks, I've commited this change into cvs.

Adrian