Skip to:
Content
Pages
Categories
Search
Top
Bottom

Page numbers missing in all paginations


  • Daniel Juhl
    Participant

    @danieljuhl

    I’m in a process of moving a bbPress installation from one server to another, and everything seems to work well, even with a switch from ligtthpd to apache2.

    I just found one problem – all the paginations are broken. The “box” is made, and is clickable even to the right destination, but the numbers which should be in the boxes are missing. It seems to be everywhere, even in the administration.

    Anybody have a clue?

Viewing 2 replies - 1 through 2 (of 2 total)

  • Daniel Juhl
    Participant

    @danieljuhl

    I just found the code making the “error”.

    /bb-includes/class.bb-locale.php : Line 445

    $num = number_format( $number, $decimals, $bb_locale->number_format, $bb_locale->number_format );

    I can also tell, that the server is up to date, running the latest PHP 5 etc.


    Daniel Juhl
    Participant

    @danieljuhl

    $decimals = ( is_null( $decimals ) ) ? $bb_locale->number_format : intval( $decimals );

    This line (443) in the same file (/bb-includes/class.bb-locale.php), it returns a comma (,) when $decimals isn’t a number, which isn’t correct according to the PHP manual.

    Why are we setting it to $bb_locale->number_format and not 0 when $decimals aren’t set?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar