Warning: Division by zero
Warning: Division by zero in /wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 58
upgraded to CubePoints Buddypress Integration 18.104.22.168
went back to the older version for now
Same here, on line 58 and 67. I have deactivated it for now.
wpms3.01 + bp22.214.171.124
$this->pag_per_page = get_option(‘bp_points_logs_per_page_cp_bp’);
to this instead
$this->pag_per_page = ’20′;
Change 20 to whatever number you set per page in the admin
I’ll set up a WPMU test site and see if I can fix this for good.
@xberserker Tried that. Edited line 31 of bp-cubepoint-templatetags.php to: `$this->pag_per_page = ‘20?;` Now I get the following as soon as I activate: “Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/***edited***/***edited***/wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 56″
you forgot the extra ‘ should be this:
`$this->pag_per_page = ’20′;`
I installed a WPMU 2.9.2 and installed buddypress/cubepoints/buddypress-cubepoint and I’m not able to recreate that error yet.. strange.
Funny thought this issue was resolved, at any rate installed new versions recently on WP3.0.1 BP 126.96.36.199 and all was fine
For those with the issue, try replacing your bp-cubepoint-templatetags.php file with this and see if it fixes it and report back.
@xberserker That was a typo, I’m prety sure it was correct in the file edit… Anyways, your updated file resolved the issue for me.
Thanks for the help. Keep up the good work.
@xberserker Um… no.
The problem is solved for the main site, but sub blogs still get the same 2 errors as before
@dubya1337 I haven’t worked with WPMU much so is there a copy of the plugin on each blog? Or does it all point to the same plugin?
On your sub installs & main install do you have a value in the logs per page field in the admin?
I stand corrected. The problem is soved. I had another problematic plugin that was causing a similar error. At first glance, I thought it was your plugin, but I stand corrected. Sorry about that.
Your updated file did fix the problem.
WPMS (as it is being called since 3.0) does things a little differently than regular single site WP. I’m not really qualified to advise you an it as I am just leaning myself.
I used your code update and it fixed the issue for me as well.
- The topic ‘Warning: Division by zero’ is closed to new replies.