[buddypress-trac] [BuddyPress] #914: Division by zero error in \buddypress\bp-activity\bp-activity-templatetags.php on line 56

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Aug 7 16:07:39 UTC 2009


#914: Division by zero error in \buddypress\bp-activity\bp-activity-
templatetags.php on line 56
--------------------+-------------------------------------------------------
Reporter:  jacobwg  |       Owner:     
    Type:  defect   |      Status:  new
Priority:  major    |   Milestone:     
Keywords:           |  
--------------------+-------------------------------------------------------
 The error seems to be coming from the code:


 {{{
 $this->pag_links = paginate_links( array(
         'base' => add_query_arg( 'acpage', '%#%' ),
         'format' => '',
         'total' => ceil( (int)$this->total_activity_count /
 (int)$this->pag_num ),
         'current' => (int)$this->pag_page,
         'prev_text' => '«',
         'next_text' => '»',
         'mid_size' => 1
 ));
 }}}

 It seems that $this->pag_num is set to 0, thus the div by 0 error.  I'll
 be looking into this.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/914>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list