Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: feline on September 16, 2008, 04:04:11 PM

Title: Members wait for approve allways 0 [2.0 beta 4]
Post by: feline on September 16, 2008, 04:04:11 PM
On the member management, the number of Awaiting Approval is allways 0.

See attach.

Fel
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: SleePy on September 16, 2008, 04:36:17 PM
It was like this in 1.1 as well. Awaiting activation and awaiting approval always shows if you have that set in registration.
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: feline on September 16, 2008, 06:11:53 PM
I have set "Method of registration employed for new members" to Member Approval.

And at the top box is see:
There is one member awaiting approval.

Not enough ?

Fel
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: SleePy on September 16, 2008, 06:22:03 PM
Yes, but this is how it has always has been :) I have a feeling this was done on purpose.
On my 1.1 board I have "Awaiting Activation" showing up always for members who are awaiting activation, even if there are none.

Most likely I assume this was done so admins would know where to manually approve their members at :)
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: AurielStone on September 24, 2008, 06:52:58 PM
I think what feline is reporting is not that the Activation tab is always showing even if no one is waiting for approval, but rather that with people waiting for approval the Activation tab still shows 0 waiting and no registrations to approve. Even if you go up and click on the "There is one member awaiting approval." link, you are taken to an empty Approval tab. 

There seem to be quite a few people having this problem. I'm having it myself.

In the error log, I see this:

http://.../forum/index.php?action=admin;area=viewmembers;sa=browse;type=approve

8: Undefined index: totalMembers

File: /home/content/.../html/forum/Sources/ManageMembers.php
Line: 113
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: SleePy on September 24, 2008, 06:55:32 PM
Bug #2577: "Undefined index: totalMembers" when viewing members awaiting activation (http://dev.simplemachines.org/mantis/view.php?id=2577)

So it will be fixed with the next release of smf
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: AurielStone on September 24, 2008, 07:00:19 PM
Awesomesauce. Thanks, SleePy!  :D
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Deprecated on September 27, 2008, 01:29:52 PM
I had independently discovered this bug myself, and had intended to post my observations sooner (probably discovered it about the same time). In any case I had already put my fix into a mod package, and tested it out and verified that the fix works, and that the totalMembers errors ceased.

So anybody who wants to patch their ManageMembers.php to stop the errors can download and install the mod package attached to this post. Or just find the one instance of totalMembers and change that to total_members by manual edit.
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: AurielStone on September 29, 2008, 06:38:53 AM
Thank you! :D
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: purper on September 29, 2008, 12:36:31 PM
Registration reply email and waiting for counter works now!  Tnx for the solution!

Regards,

Richard
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: snork13 on September 29, 2008, 03:44:24 PM
Quote from: SleePy on September 24, 2008, 06:55:32 PM
Bug #2577: "Undefined index: totalMembers" when viewing members awaiting activation (http://dev.simplemachines.org/mantis/view.php?id=2577)

So it will be fixed with the next release of smf

Until fixed you will not be able to appove the waiting members, as they never show up. You know how many, but upon clicking the link to appove you see no one. It is a simple fix though. I know I can look at is_activated in the database, and look for "3", but not everyone whould do this.

-snork13
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Deprecated on September 29, 2008, 03:46:43 PM
It's easier than that even. Just go to Search For Members (admin) and uncheck Activation Status "Activated." Hit "Search" and you get your list of unactivated members.

Or apply the fix above.

Or do the manual edit.

Or just let the new members self activate.

Or who needs new members anyway? ;)
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: snork13 on September 29, 2008, 03:51:43 PM
Quote from: Deprecated on September 29, 2008, 03:46:43 PM
It's easier than that even. Just go to Search For Members (admin) and uncheck Activation Status "Activated." Hit "Search" and you get your list of unactivated members.

Or apply the fix above.

Or do the manual edit.

Or just let the new members self activate.

Or who needs new members anyway? ;)

I manually edited the file, and before searching mantis. I of coarse started in the database so I could find the key and searched the querys to find the context. I should have look for help here first..LOL IF there is a hard way I will find it. It did only take 10-15 mins that I will never get back...
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Deprecated on September 29, 2008, 03:56:23 PM
LoL @ Snork :)

I bet both you and I find that sometimes the easiest way to change things is to just go directly to phpMyAdmin and just change the data at it's source. :)

Like when I forget one of my passwords. Who wants to go through the email "forgot password" procedure when you can just open phpMyAdmin and change it in about 30 seconds?
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: JCWohlschlag on October 14, 2008, 07:53:17 PM
Hey, Deprecated. I just wanted to thank you for providing such a quick and easy fix for this bug.

Now to fix the 72 members that have not activated on our site! :P
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Deprecated on October 14, 2008, 11:57:45 PM
Hi JCW and I'm glad I could help you. While I did independently isolate the bug and create the fix, I was not the first to post on the topic and I should have been.

When you are up to your ass in alligators it's hard to remember your original objective was to drain the swamp.
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: jacmoe on November 03, 2008, 05:30:15 PM
Thanks Deprecated!
You're a lifesaver! :)
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Deprecated on November 03, 2008, 07:20:39 PM
Aw shucks, ma'am, I'm just doing what I can to protect the West! ;)

/me gets back on his horse and rides off into the sunset... ;)
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Sudhakar Arjunan on November 14, 2008, 08:41:32 PM
Thank you, i got my issue resolved.
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: ethankcvds on November 14, 2008, 10:46:45 PM
@Deprecated your fix is not working for me at all :(.
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Deprecated on November 14, 2008, 11:11:56 PM
Ethan, please post a support request in our SMF 2.x Support board, and we'll fix you up. Maybe you have a different problem.
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: fatesjoke03 on November 16, 2008, 03:32:18 PM
Awesome, thx Dep. I kept forgetting to look into this and stumbled on this thread. Nicely done.
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: SgtMic on November 27, 2008, 02:07:09 AM
Amazing how much grief by not adding _ and changing the m can cause.  :)
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: BeckzyBoi on November 29, 2008, 10:02:18 AM
Thanks for the solution I have used the package Deprecated posted instead of manually editing because when beta5 or 2.0 is released I would upgrade and probably forget that i edited it
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: spaarks on December 02, 2008, 06:17:23 PM
I manually edited in ManageMembers.php the one instance of totalmembers to total_members, but it did not clear the problem.

I ran the mod in Package Manager but got:
"Error in Package Installation. At least one error was encountered during a test installation of this package."
(Maybe that was because I had already manually edited the file).

I have double checked that ManageMembers.php has no further instance of totalmembers in it, so any ideas what I can do?
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: spaarks on December 02, 2008, 06:23:35 PM
ooops!  Ah yes, the uppercase M.    total_members not total_Members.

Well I'm learning!
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: the leaf on January 25, 2009, 07:19:35 AM
Bingo! well done, thank you. :D
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Akyhne on January 27, 2009, 02:35:35 AM
Quote from: SleePy on September 24, 2008, 06:55:32 PM
Bug #2577: "Undefined index: totalMembers" when viewing members awaiting activation (http://dev.simplemachines.org/mantis/view.php?id=2577)

So it will be fixed with the next release of smf

Didn't work for me, this fix. SMF 2.0 Beta 4..
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: Vagh on March 20, 2009, 08:57:37 AM
We are running beta 4, but for some reasons cannot update it to RC1 by now.
We are approving new members by phone (additional required field), but "Awaiting  for Approval" list is always empty, so we need to approve our members from Members list, which is not so convenient... I'm trying to install the fix from this thread, but it doesn't help.

Question: If I replace ManageMembers.php with new one from RC1, would it fix the problem?

Thanks!
Title: Re: Members wait for approve allways 0 [2.0 beta 4]
Post by: SgtMic on March 20, 2009, 10:37:11 AM
If you update to RC1, you won't need this fix.