Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2012, 03:03 AM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
Благодарность от:
Macsee
  #2  
Old 08-02-2012, 02:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
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.
Reply With Quote
  #3  
Old 08-02-2012, 02:49 PM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-02-2012, 03:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dougdirac View Post
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.
Reply With Quote
  #5  
Old 06-11-2013, 04:36 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-24-2015, 03:51 PM
filmking filmking is offline
 
Join Date: Apr 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does pruning a member, delete their posts?
Reply With Quote
  #7  
Old 02-24-2015, 05:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it does not delete the posts.
Reply With Quote
  #8  
Old 03-17-2016, 05:43 PM
K-fab's Avatar
K-fab K-fab is offline
 
Join Date: Jan 2014
Location: Scottsdale, AZ - Eden!
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03957 seconds
  • Memory Usage 2,238KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete