Title: php error generated by Peter&#039;s notes?
Last modified: August 20, 2016

---

# php error generated by Peter's notes?

 *  Resolved [Josefus Flavius](https://wordpress.org/support/users/josefus-flavius/)
 * (@josefus-flavius)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-error-generated-by-peters-notes/)
 * Hi,
 * I’ve been getting the following php error on the hosting service log for one 
   of my sites:
 * PHP Warning: Division by zero in /home1/…/public_html/…/wp-content/plugins/peters-
   post-notes/peters_post_notes.php on line 651
 * There are other issues on this installation and I’m not sure what’s causing what…
 * Any idea how to resolve this?
 * Thank you,
    JF
 * [http://wordpress.org/extend/plugins/peters-post-notes/](http://wordpress.org/extend/plugins/peters-post-notes/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Ed Gray](https://wordpress.org/support/users/graynotgrey/)
 * (@graynotgrey)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-error-generated-by-peters-notes/#post-3608349)
 * I also have Peters Post Notes installed but cannot replicate your errors.
 * The line of code being referenced is:
 *     ```
       // How many pages of content are there?
           $ppn_total_pages = ceil($ppn_num_newest_posts / $ppn_num_notes_limit);
       ```
   
 * The ppn_num_notes_limit refers to the number of note sto display on the dashboard
   which can be set to zero for unlimited display. I usually have it set to 5, but
   tried 0 or nothing at all which resulted in 0.However, I could not produce the
   errors.
 * What version of WordPress are you running? What version of PHP is installed on
   your server? Have you tried troubleshooting to see if there is a plugin or theme
   conflict, meaning deactivating all plugins except peter’s post notes and seing
   the error is still generated? If not, reactivate one plugin at a time and see
   which plugin is the culprit. If you have a lot of plugins it could be a tedious
   process, but it is an effective method.
 *  Thread Starter [Josefus Flavius](https://wordpress.org/support/users/josefus-flavius/)
 * (@josefus-flavius)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-error-generated-by-peters-notes/#post-3608368)
 * Thank you very much, ED!
 * The problem was solved – it was definitely not created by Peter’s post notes,
   a plugin I’ve been using on several websites for a few years now. There were 
   some WP setup and database problems which caused this.
 * Much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php error generated by Peter's notes?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/peters-post-notes.svg)
 * [Peter's Post Notes](https://wordpress.org/plugins/peters-post-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/peters-post-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/peters-post-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/peters-post-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/peters-post-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/peters-post-notes/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Josefus Flavius](https://wordpress.org/support/users/josefus-flavius/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/php-error-generated-by-peters-notes/#post-3608368)
 * Status: resolved