• Getting lots of these in a clients debug.log file:

    PHP Warning: Attempt to read property "ID" on null in .../wp-postratings/wp-postratings.php on line 90

    Would suggest a check if $post is valid before using $post->ID, thanks.

    line 90:       $ratings_id = $post->ID;

    Bug is triggered in /wp-admin/admin-ajax.php calls when wp_doing_ajax() returns true.

    WP-PostRatings 1.91.1 (also reported for 1.90, no response, closed)

  • The topic ‘PHP Warning: Attempt to read property “ID” on null’ is closed to new replies.