CubePoints WordPress MU Fix
Other WP-MU fixes here:
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.
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;
$this->pag_per_page = '20';
on line 29 of bb-cubepoint-templatetags.php
@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.
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 .
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
- The topic ‘CubePoints WordPress MU Fix’ is closed to new replies.