WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
the_ratings_results - Undefined indexes (2 posts)

  1. Héctor Cabrera
    Member
    Posted 1 year ago #

    Hi there,

    First of all, thank you for your nice plugin! You've done a great job with it! However, I need a little bit of help here.

    I'm using the the_ratings_results() function to retrieve the current rating of a given post ID (eg. the_ratings_results($post->ID)) and while it seems to work I'm also getting these PHP notices:

    Notice: Undefined index: ratings_users in F:\wp\wp-content\plugins\wp-postratings\wp-postratings.php on line 1095

    Notice: Undefined index: ratings_score in F:\wp\wp-content\plugins\wp-postratings\wp-postratings.php on line 1096

    Notice: Undefined index: ratings_average in F:\wp\wp-content\plugins\wp-postratings\wp-postratings.php on line 1097

    Any ideas?

    http://wordpress.org/extend/plugins/wp-postratings/

  2. Raul Illana
    Member
    Posted 1 year ago #

    Hi.

    I'm running same issue on development environments.

    You can hide 'em with define('WP_DEBUG', false); on wp-config.php, but that's not fair enough. :P

    Can you take a look Lester, please? Thanks!

    Best!
    R

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic