Support » Plugin: Peter's Post Notes » php error generated by Peter's notes?

  • Resolved Josefus Flavius



    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,

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.