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.
May 13, 2004, 1:45 AM
Novice (12 posts)
May 13, 2004, 1:45 AM
Post #2 of 3
Views: 2642
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.
+++ 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%>
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%>