Announcement

Collapse
No announcement yet.

Import from PHPBB 3.0.6 to VB 4 userstats error.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Import from PHPBB 3.0.6 to VB 4 userstats error.

    Hey guys, been having a PHP guru help me with this but he doesn't know Vbulletin or PHPBB very well at all but is great with PHP. Me on the other hand, not so much Let me add this is all on my Xampp server, nothing live, just trying to get it ready to go live.

    This is what I'm doing, I got the VB 4.0.2 suite and I'm importing our current PHPBB3 site to it. Everything is going per expected. Got all info and stuff like that. However, at the top of the forum page, I get this error twice.
    Code:
    Warning: number_format() expects parameter 1 to be  double, string given in [path]\includes\functions.php  on line 451
    With his help, we were able to show what it's calling for and it turns out it receiving "a" as the result. well, this rung a bell as "a" was also showing up as our newest member at the bottom, some how tied in I guess cause we don't have a member called "a". So we tracked it down to these 2 lines of code that are giving us the warning.

    $numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);

    $activemembers = vb_number_format($vbulletin->userstats['activemembers']);

    Any more direction from this point will be appreciated.

    Thank you
    Brian

  • #2
    Ok, I think I figured it out. As I was saying, it was showing up that my newest member was a guy called "a", which was false. I'm guessing it was just a missing field looking for information. So I tried creating a new test member and it show up as "newest member" and the two lines of errors at the top went away.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X