WordPress.org

Ready to get started?Download WordPress

Forums

Peter's Post Notes
[resolved] php error generated by Peter's notes? (3 posts)

  1. Josefus Flavius
    Member
    Posted 1 year ago #

    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/

  2. Ed Gray
    Member
    Posted 1 year ago #

    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.

  3. Josefus Flavius
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic