vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Can't prune inactive users (https://vborg.vbsupport.ru/showthread.php?t=286213)

Snowhog 08-02-2012 02:03 AM

Can't prune inactive users
 
vBulletin 4.2.0

I'm attempting to prune (delete) inactive members in our forum.

Admin CP > Users > Prune / Move Users

with the following settings:

All usergroups
Has not logged in for 365 days
Join Date is Before August 1, 2012 (I've even left this 'blank')
Posts is less than 1
Order By Name

This results with: Showing Users 1 to 6750 of 6750, and they are all 'checked'. When I select Action: Delete and click Go, vBulletin reports:

Invalid Action Specified followed by No Users Matched your Query

What gives? Why is vBulletin identifying the desired inactive users, but then says I've selected an invalid action and that no users matched my query, when obviously, it did!?

Added: Got it figured out. Apparently there is a limit to the number of records that can be marked for deletion at one time, which seems to be 1,000. I have been able to delete the 6,750 inactive users.

Lynne 08-02-2012 01:05 PM

Quote:

Originally Posted by Snowhog (Post 2353545)
Added: Got it figured out. Apparently there is a limit to the number of records that can be marked for deletion at one time, which seems to be 1,000. I have been able to delete the 6,750 inactive users.

That is a limitation on your server, not vbulletin.

Try Has Not Logged In for 500 days and see if you get a smaller group. Then for 450 days, then ..... just change the number of days until you only have less than 1000 and do it like that.

dougdirac 08-02-2012 01:49 PM

Interesting. I had about 4000 members to purge. It let me do the operation, and I though it was done. But to check, I did the search again, and I still had about 3000 members left to purge. I had to perform the operation a few more times until they were all gone. It never gave me an error message, but still only deleted about 1000 at a time.

Lynne 08-02-2012 02:34 PM

Quote:

Originally Posted by dougdirac (Post 2353692)
Interesting. I had about 4000 members to purge. It let me do the operation, and I though it was done. But to check, I did the search again, and I still had about 3000 members left to purge. I had to perform the operation a few more times until they were all gone. It never gave me an error message, but still only deleted about 1000 at a time.

Your PHP script probably timed out and you didn't know it. If you looked at your error_logs from the time you did this, I'll bet you'll have a PHP timeout error listed.

Nirjonadda 06-11-2013 03:36 PM

It's a php limit in php.ini file.By default the max_input_vars is set to 1000, If you have access to the php.ini file you can add this:

max_input_vars = 5000

Or

Options php.ini file:

max_input_vars = 1000000
suhosin.post.max_vars = 1000000
suhosin.request.max_vars = 1000000

After prune ended must changed all values back to original 1000.

filmking 02-24-2015 03:51 PM

Does pruning a member, delete their posts?

Lynne 02-24-2015 05:54 PM

No, it does not delete the posts.

K-fab 03-17-2016 05:43 PM

What a simple way around the issue. Thank you. Worked like a charm.


All times are GMT. The time now is 11:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01437 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete