[bbDev] Possible Bug: bb_get_user needs a numeric ID

Harvey Ramer harvey.ramer at designdelineations.com
Fri Apr 28 16:16:40 GMT 2006


There are no non-numeric user IDs. I am running mod_rewrite but not using it
on this application.

It worked when I changed my password and logged in on the main screen as I
suppose normal people will. I logged in from the password reset screen.
That's where the error seems to have come from.

I'll let you know if it happens again.

- Harvey

-----Original Message-----
From: Sean Hayford O'Leary [mailto:sdho at sdho.org]
Sent: Friday, April 28, 2006 11:43 AM
To: bbPress Development
Subject: Re: [bbDev] Possible Bug: bb_get_user needs a numeric ID


Harvey,
Are you running with mod_rewrite on? Does this occur to all users or just
your admin account?

Also, have you popped into phpMyAdmin (or whatever you use) to check to make
sure there aren't any abnormal user IDs?

On 4/28/06, Tom Preuss <tompreuss at gmail.com> wrote:
> Harvey,
>
> bb-includes/functions.php, lines 466 to 475:
>
> function bb_get_user( $user_id, $cache = true ) {
>         global $bb_cache, $bb_user_cache;
>         if ( !is_numeric( $user_id ) )
>                 die('bb_get_user needs a numeric ID');
>         $user_id = (int) $user_id;
>         if ( isset( $bb_user_cache[$user_id] ) && $cache )
>                 return $bb_user_cache[$user_id];
>         else
>                 return  $bb_cache->get_user( $user_id, $cache ); }
>
> Somehow you have a user_id in your database that is not numeric.  Did
> you edit any files in your install that could have done this?
>
> The only other time I've see this error was when Sean had a
> mod_rewrite issue back in January, see
> http://comox.textdrive.com/pipermail/bbdev/2006-January/000481.html
> for his resolution.
>
> Best regards,
>
> Tom Preuss
>
>
>
> On 4/28/06, Harvey Ramer <harvey.ramer at designdelineations.com> wrote:
> > Immediately after password recovery, I logged into my forum and
> > received this error: bb_get_user needs a numeric ID
> >
> > It seems that some part of the password recovery process did not
> > finish before my login?
> >
> > Thanks guys for all your work on this lightweight and powerful piece
> > of software!
> >
> >
> > Harvey Ramer
> >
> > -------------------------------------------------
> > Design Delineations
> > 4 Prospect Street
> > Norwood, NY 13668
> > Toll Free: (866)-874-8710
> > Phone:(315)-262-0469
> > Fax: (315)-262-0448
> >  <http://www.designdelineations.com/>
> > http://www.designdelineations.com Complete Web Solutions. Personal
> > Service.
> > -------------------------------------------------
> >
> > Confidentiality Notice:  This e-mail message, including any
> > attachments, is for the sole use of the intended recipient(s) and
> > may contain confidential and privileged information.  Any
> > unauthorized review, use, disclosure, or distribution is prohibited.
> > If you are not the intended recipient, please contact the sender by
> > reply e-mail and destroy all copies of the original message.
> >
> >
> >
> > _______________________________________________
> > bbDev mailing list
> > bbDev at lists.bbpress.org
> > http://lists.bbpress.org/mailman/listinfo/bbdev
> >
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev
>


--
Sean Hayford O'Leary
http://sdho.org

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.0/325 - Release Date: 4/26/2006






More information about the bbDev mailing list