OK, I believe I've fixed this. Here is what I did...
I changed (line 41) of the purgenow script:
Code:
$db->execute_query("TRUNCATE TABLE " . TABLE_PREFIX . "loginlog");
to this:
Code:
$db->query(' TRUNCATE TABLE ' . TABLE_PREFIX . 'loginlog');
Basically all you should need to do is change
execute_query to
query and add a space before and after
TRUNCATE TABLE, after which the purges should start working correctly. In any case, this fix seems to work perfectly here. Now every time I execute a purge, the message "The login log has been purged" is properly displayed and all login entries are gone.