Forums

Join
bbPress Support ForumsTroubleshootingPage numbers missing in all paginations

Info

Tags

Page numbers missing in all paginations

  1. 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?

  2. 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['decimal_point'], $bb_locale->number_format['thousands_sep'] );

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

  3. $decimals = ( is_null( $decimals ) ) ? $bb_locale->number_format['decimals'] : 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['decimals'] and not 0 when $decimals aren't set?

  4. You must log in to post.