Skip to:
Content
Pages
Categories
Search
Top
Bottom

CubePoints WordPress MU Fix

Viewing 12 replies - 1 through 12 (of 12 total)
  • Profile photo of Tosh
    Tosh
    Participant

    @xberserker

    Other WP-MU fixes here:

    https://buddypress.org/community/groups/cubepoints-buddypress-integration/forum/topic/version-1-7-beta/?topic_page=5&num=15#post-55450

    Please let me know of any others so we can keep it all in 1 place.

    This is the other fix required for WPMU This fixes the DB prefix for BP Cubepoints so that the two points screens in members accounts return results.

    http://pastebin.com/DMm7bP9n

    Profile photo of josh101
    josh101
    Participant

    @josh101

    @hnla
    I used the fix you posted and both logs now work but the error message is still up.

    Warning: Division by zero in /home4/techtro2/public_html/wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 56

    Warning: Division by zero in /home4/techtro2/public_html/wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 65

    @josh101 you need to follow the steps in the post above my last one, it references giving a hard coded numeric value to the pag_per_page object



    as for a fix on the pagination issue, can you replace the line
    $this->pag_per_page = $per_page;
    with
    $this->pag_per_page = '20';
    on line 29 of bb-cubepoint-templatetags.php
    Profile photo of josh101
    josh101
    Participant

    @josh101

    @hnla Thanks how do we controll how many items are on a page?

    @josh101 I think that part of the plugin hasn’t been written yet? as far as I’m aware. The fix above simply prevents the division error by providing a value that was missing.

    Profile photo of josh101
    josh101
    Participant

    @josh101

    At least it works now.

    Profile photo of PJ
    PJ
    Participant

    @pjnu

    I followed the highlight-and-replace suggestion in the bp-cubepoint-core.php file but the error still occurs. If you could help me out, I’d love to overcome this error. Thanks.

    @pjnu it’s going to help to know what error you are referring to and what versions of everything you are running.

    There are a total of four issues two in cubepoints parent plugin and two in BPCP

    If no points tables returned in a members account then you need to apply the DB fix but this is for WPMU. If you want the pagination working and to kill the division by zero error then you need to apply the fix for pag_per_page fix few posts up; in reality you need both these running WPMU for the moment .

    Profile photo of PJ
    PJ
    Participant

    @pjnu

    WPMU 2.9.2, CubePoints 2.1.3m CP BP Integration 1.7.1. Both activated side wide.

    When I click on a user’s page then click on the “Points” item next to Settings, the following lines of text are draped between the admin bar and the header image and rest of the page:

    Warning: Division by zero in /wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 56

    Warning: Division by zero in /wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 65

    I am not young enough to know everything

    Profile photo of cennoabaas
    cennoabaas
    Member

    @cennoabaas

    Bad beginning makes a bad ending

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘CubePoints WordPress MU Fix’ is closed to new replies.
Skip to toolbar